Page 1 of 1

Search Plugin

Posted: 29 Sep 2008, 01:33
by munkeeworks
The Search Plugin
https://www.phoca.cz/phocagallery-search-plugin/
doesn't work if you have your site search engine friendly.
It will display the gallery, but once you click the image you get an error page.

I have modify the code to work with my site
on line
108 $list2[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $item->id );
with $list2[$key]->href = JRoute::_('/galleries/category/'. $item->id );
and line
165 $list1[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='.$item->catslug );
with $list1[$key]->href = JRoute::_('/galleries/category/'.$item->catslug );

The site that I am using this on is http://www.munkeeworks.com

Re: Search Plugin

Posted: 29 Sep 2008, 14:46
by Jan
hi, yes it is a known issue, I must find time to add the sef hack here (find the menu item and paste itemid to correctly displaying by JRoute)

Jan

Re: Search Plugin

Posted: 11 Mar 2009, 22:43
by orangesparkz
What file have you made these changes to? I need to have the search work, but would like to keep my site search engine friendly.
Thanks

Re: Search Plugin

Posted: 11 Mar 2009, 23:10
by Jan
Such hack I am using in e.g. Phoca Gallery tree menu, but the search plugin I didn't do, so I need to take a look at it, but don't know when I find time for it :-(

Jan

Re: Search Plugin

Posted: 13 Mar 2009, 19:44
by orangesparkz
I found the file:
plugins/search/phocagallery.php

I tried to turn on SEF and use his hack, but unfortunately nothing works then, It appears to not read style sheets in this mode. So I turned it off and will leave it off. I do not have the skills or the time to figure out what when wrong.

Re: Search Plugin

Posted: 14 Mar 2009, 19:39
by Jan
:( I hope I will fix the search plugin soon.

Jan