Page 1 of 1
[PROBLEM] phocagallery sh404sef
Posted: 20 Oct 2008, 22:59
by sebelec
hi,
i have a problem, the sh404sef don't rewrite phocagallery. I have download sefPhocaGallery.zip, i unzip phocagallery.php and i upload this file in "components/com_phocagallery/helpers/" but it don't work... the url don't rewrited.
anyone have an idea ?
thank you.
Re: [PROBLEM] phocagallery sh404sef
Posted: 23 Oct 2008, 18:28
by sebelec
thank you for your response but for that
I fixed it introducing this changes in the code inside both functions shPhocaimagenameFromId($id), and shPhocaCategoryNames( $gallery_id ):
What file ?
edit : ok this is com_phocagallery.php, but now i can't enter in the categories, look yourself :
http://www.les10miles.fr/Gallerie-Photos/ all categories dosn't work !
Thank you
Re: [PROBLEM] phocagallery sh404sef
Posted: 20 Jan 2009, 01:38
by Datatonic
Just to clear this up
All you need to do is change
Line 37 from
to
Code: Select all
global $database;
$database = &JFactory::getDBO();
and
Line 55 from
Code: Select all
Ro.
global $database, $sefConfig;
to
Code: Select all
global $sefConfig, $database;
$database = &JFactory::getDBO();
Re: [PROBLEM] phocagallery sh404sef
Posted: 21 Jan 2009, 01:35
by Jan
Great thank you for this information. Jan
Re: [PROBLEM] phocagallery sh404sef
Posted: 04 May 2009, 15:10
by jamfx
Hi Everyone,
i did as written in "Post by Datatonic on 20 Jan 2009, 00:38" and worked perfect! But i do have the same "trouble" with the title-tags as here: "Post by kamchatka on 04 Feb 2009, 19:24"
The Title is written like: subcategory - category but must be vice versa. Is there someone Genious how can fix this? This would be really great!
Thanks
JamFX