Random Image does not work with SEF

Phoca Gallery modules - modules for Phoca Gallery extension
nk111
Phoca Member
Phoca Member
Posts: 14
Joined: 05 Aug 2008, 14:11

Random Image does not work with SEF

Post by nk111 »

Hi,

i'm using joomla 1.5.4, phoca gallery 1.8.8 and random image module 1.8.1

Everything works fine with SEF turned OFF. But with SEF turned ON the module is not working on the startpage. I say "on the startpage" because IT IS working on a page where "normal" gallery output exists...

If I am on the startpage the path generated from the plugin looks like this:

Code: Select all

http://path/to/my/joomla/component/phocagallery/1/detail/18-p1020050.html?tmpl=component&detail=0&buttons=1 
Which results in 404 errors

If I am on a page where I have standard gallery output in my content, the same random image module generates the path like this:

Code: Select all

http://path/to/my/joomla/bilder/1/detail/15-dsc01918.html?tmpl=component&detail=0&buttons=1
Which works correct.

any ideas?
nk111
Phoca Member
Phoca Member
Posts: 14
Joined: 05 Aug 2008, 14:11

Re: Random Image does not work with SEF

Post by nk111 »

update:

additionally there seem to be some typos in 1.8.1..

In the file mod_phocagallery_module_random_image.php contained in the download you can find some of these:

Code: Select all

...phocagallery_module_random_images...
notice the additional "s" at the end!

which should be

Code: Select all

phocagallery_module_random_image
otherwise the css files will not be found which leads to a not vertically centered image in the random image image module!

This only happens if no other gallery content but the random image module is displayed on your page because otherwise the stylesheet will be included by the gallery component.

I will try if this also fixes that strange SEF bug but I'm afraid it won't.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Random Image does not work with SEF

Post by Jan »

hi, the 's' should be fixed now.

Jan
If you find Phoca extensions useful, please support the project
Post Reply