[PROBLEM] phocagallery sh404sef

Phoca Gallery - image gallery extension
sebelec
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Oct 2008, 22:44

[PROBLEM] phocagallery sh404sef

Post 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.
sebelec
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Oct 2008, 22:44

Re: [PROBLEM] phocagallery sh404sef

Post 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
User avatar
Datatonic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Jan 2009, 16:31
Location: Edinburgh
Contact:

Re: [PROBLEM] phocagallery sh404sef

Post by Datatonic »

Just to clear this up

All you need to do is change

Line 37 from

Code: Select all

global $database;
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();
Opt-Bot - the Google Website Optimizer (GWO) Plugin for Joomla.
ReallyEasyReader Instant Speed Reading Software - Double your reading speed guaranteed.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [PROBLEM] phocagallery sh404sef

Post by Jan »

Great thank you for this information. Jan
If you find Phoca extensions useful, please support the project
jamfx
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 08 Mar 2009, 09:26
Contact:

Re: [PROBLEM] phocagallery sh404sef

Post 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
http://www.nik-o-mat.de - JoomlaTipps, Translations and Hints, also for other computerstuff.
http://www.twitter.com/nikomatoriginal - nik-o-mat - Twitter
Post Reply