Page 1 of 1

how to open next image when u click on the current image

Posted: 09 Jun 2010, 04:00
by afatipsy
hi friends.

i have problem with my phoca gallery.

in detail view my theme is no-pop up. i want my visitors can change images by clicking on the current image.
next button is not comfortoble and its hard to see..

can u help me pls.

in /components/com_phocagallery/views/detail folder default.php
i see this rows
.'<a href="#" onclick="'.$this->tmpl['detailwindowclose'].'">'.$this->item->linkimage.'</a>';

if u delete # and enter a url the image goes to that url. but i want it to go next image .

i tried this but it did not work :
<a href="'.JRoute::_('index.php?option=com_phocagallery&view=detail&catid='. $value->catslug.'&id='.$value->slug.$tmplCom.'&Itemid='. JRequest::getVar('Itemid', 1, 'get', 'int')).'"'
.' title="'.JText::_( 'Next image' ).'" id="next" onclick="disableBackAndNext()" >


can u help me pls?

Re: how to open next image when u click on the current image

Posted: 09 Jun 2010, 12:23
by Jan
Did you copy the right "next link" to the Image link?

Re: how to open next image when u click on the current image

Posted: 09 Jun 2010, 21:46
by afatipsy
yes.

this is it.
but it dont work.

Code: Select all

<a href="'.JRoute::_('index.php?option=com_phocagallery&view=detail&catid='. $value->catslug.'&id='.$value->slug.$tmplCom.'&Itemid='. JRequest::getVar('Itemid', 1, 'get', 'int')).'"'
.' title="'.JText::_( 'Next image' ).'" id="next" onclick="disableBackAndNext()" >

Re: how to open next image when u click on the current image

Posted: 10 Jun 2010, 10:15
by afatipsy
no answer??

Re: how to open next image when u click on the current image

Posted: 05 Jul 2010, 18:46
by Jan
Hi, no idea why it does not work (no experiences with it), if you get access login, maybe the image is included in category which is not accessible, or maybe some wrong parameter was added to the url so the script didn't find the right information as has locked the access :idea:

Jan