MisterWebNet

<<< Coding for the future >>>

Home Coding PHP Xmap for JoomGallery 1.5.6
Xmap for JoomGallery 1.5.6 PDF Print E-mail
Written by Administrator   
Friday, 10 December 2010 00:01

xmapUpdated JoomGallery to 1.5.6 and ran into trouble with the old urls, especially in the xmap sitemap - they all pointed to the gallery homepage as the new url structure is different. Couldn't find an update to the xmap for JoomGallery 1.5.6 so thought I'd post something here as a quick fixer.

To fix the urls in xmap, open up the file:

/administrator/components/com_xmap/extensions/com_joomgallery.php

We need to fix two things - the category urls and the picture urls. First the category urls. Look for (around 86)

$node->link = 'index.php?option=com_joomgallery&amp;task=viewcategory&amp;catid='.$cat->cid;

Change to:

$node->link = 'index.php?view=category&catid='.$cat->cid;

 

 

Now for the picture urls. Look for (around line 104)

$node->link = 'index.php?option=com_joomgallery&amp;func=detail&amp;id='.$file->id;

Change to:

$node->link='index.php?view=detail&id='.$file->id;

 

 

Clear the cache in the xmap options, and regenerate the sitemap - i.e. just load up your sitemap page. The urls for your joomgallery should be correct in the sitemap. If not, then blame Obama.

 

Last Updated on Friday, 10 December 2010 00:10
 

Comments  

 
0 #3 2011-09-29 09:08
Thanks Buddy
Quote
 
 
0 #2 2011-02-25 22:28
Bookmarked your site thanks again, I was looking for this solution.
Quote
 
 
0 #1 2011-02-16 11:01
Yep it works for me !

Thanks for the tip

M
Quote
 

Add comment

We reserve the right to remove comments without notice. Users are responsible for their own comments and the contents contained within.


Security code
Refresh

ThugVillage.com
Mens Entertainment Magazine with girls, gadgets, indepth analysis, videos and much more
Best Flash Games
The best flash games on the net - 100% free!
HiredMedia
Off beat, deep-web, alternative videos