Page 1 of 1

Login required for large image view

Posted: 14 Jul 2009, 17:40
by Galatea
hi,

i have the problem, if an unregistered user wants to enlarge the thumbnails the website is requesting a login.

I have an Menu entry that is pointing to the category, it is accessable for unregisted user and working fine also the zoomed view. but if i link a picture with the plugin inside a content page, the zoom is not availaible.
sometimes the zoom is working but on top of the image its shown
Message
* You must log in first
* You must log in first
* You must log in first

menu link to category : http://fusselsoft.de/index.php?option=c ... &Itemid=36
article with link to image of this category: http://fusselsoft.de/index.php?option=c ... &Itemid=35
image showing the message-bug: http://fusselsoft.de/tmp/bug_phoca.jpg

Gallery version 2.2.4
Plugin version 2.2.4
Joomla 1.5.12

i found 2 posts with this problem but both solved by creating a menu link
viewtopic.php?f=9&t=4911
viewtopic.php?f=9&t=4857

Re: Login required for large image view

Posted: 14 Jul 2009, 18:20
by caro84g
Hi,

it has this problem, 'cause it takes itemid=38 instead of itemid=36. So it takes the settings of another menu item, which is for registered users only.

I though that the menu-item with the lowest ordering is taken, but I'm not sure about that... (or it is the categories view which is taken first).

A solution for your problem could be to create a new menu item as category list layout, which you place in a hidden menu item, but published and open to public.

Regards, Carolien

Re: Login required for large image view

Posted: 14 Jul 2009, 23:11
by Galatea
this hidden module is also there, based on the other two threads i tried this, but without success.
i changed the code to overwrite the itemid with 0, this works for me. Thanx for the hint with 36<->38

for what is this id good?

Re: Login required for large image view

Posted: 15 Jul 2009, 08:35
by caro84g
Hi,

it's the menuitem id, so with this Id you could see which menu item it's taking. If you disable the menu-item with id 38, I think your problems are solved (but this menu item isn't visible).

Regards Carolien

Re: Login required for large image view

Posted: 15 Jul 2009, 09:19
by Galatea
i used for the zoomed view the light box, so there is no menu-item needed :)

i think for general solving this bug, it would be better to make this as a parameter (for the plugin)
or in the plugintag {phocagallery|itemid:36|...} or something like that ?