Search Plugin

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
munkeeworks
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Aug 2008, 00:02

Search Plugin

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Plugin

Post 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
If you find Phoca extensions useful, please support the project
orangesparkz
Phoca Member
Phoca Member
Posts: 33
Joined: 11 Mar 2009, 22:41

Re: Search Plugin

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Plugin

Post 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
If you find Phoca extensions useful, please support the project
orangesparkz
Phoca Member
Phoca Member
Posts: 33
Joined: 11 Mar 2009, 22:41

Re: Search Plugin

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Plugin

Post by Jan »

:( I hope I will fix the search plugin soon.

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