Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

free google sitemap

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 09-05-2010, 10:48 PM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: free google sitemap

Thanks
Great that works fine
Now is there anyway of stopping it putting these and any un needed lines
Quote:
- <url>
<loc>http://www.qualitechnic.co.uk/help.php?section=business</loc>

<lastmod>2010-09-06</lastmod>

<changefreq>monthly</changefreq>

<priority>0.6</priority>

</url>


- <url>
<loc>http://www.qualitechnic.co.uk/help.php?section=conditions</loc>

<lastmod>2010-09-06</lastmod>

<changefreq>monthly</changefreq>

<priority>0.6</priority>

</url>


- <url>
<loc>http://www.qualitechnic.co.uk/register.php</loc>

<lastmod>2010-09-06</lastmod>

<changefreq>monthly</changefreq>

<priority>0.6</priority>

</url>


- <url>
<loc>http://www.qualitechnic.co.uk/help.php?section=Password_Recovery</loc>

<lastmod>2010-09-06</lastmod>

<changefreq>monthly</changefreq>

<priority>0.6</priority>

</url>


thanks Lewis

Quote:
Originally Posted by cflsystems
Actually the code I posted fixes the code you are reffering to. But you can still use the code you have just replace
Code:
if (is_array($cats[0])) foreach($cats as $ca) { if ($ca["clean_url"] == "") $url = $http_location.'/home.php?cat='.$ca["categoryid"]; else $url = $http_location.'/'.$ca["clean_url"]; $xml .= '<url> <loc>'.$url.'</loc> <lastmod>'.$today.'</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url>'; } if (is_array($mans[0])) foreach($mans as $ma) { if ($ca["clean_url"] == "") $url = $http_location.'/manufacturers.php?manufacturerid='.$ma["manufacturerid"]; else $url = $http_location.'/'.$ma["clean_url"]; $xml .= '<url> <loc>'.$url.'</loc> <lastmod>'.$today.'</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url>'; } if (is_array($prods[0])) foreach($prods as $pr) { if ($pr["clean_url"] == "") $url = $http_location.'/product.php?productid='.$pr["productid"]; else $url = $http_location.'/'.$pr["clean_url"]; $xml .= '<url> <loc>'.$url.'</loc> <lastmod>'.$today.'</lastmod> <changefreq>monthly</changefreq> <priority>0.6</priority> </url>'; } if (is_array($pages[0])) foreach($pages as $pa) { if ($pa["clean_url"] == "") $url = $http_location.'/pages.php?pageid='.$pa["pageid"]; else $url = $http_location.'/'.$pa["clean_url"]; $xml .= '<url> <loc>'.$url.'</loc> <lastmod>'.$today.'</lastmod> <changefreq>monthly</changefreq> <priority>0.6</priority> </url>'; }
with this
Code:
if (is_array($cats[0])) foreach($cats as $ca) { if ($ca["clean_url"] == "") $url = $http_location.'/home.php?cat='.$ca["categoryid"]; else $url = $http_location.'/'.$ca["clean_url"].$config['SEO']['clean_urls_ext_c']; $xml .= '<url><loc>'.$url.'</loc><lastmod>'.$today.'</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url> '; } if (is_array($mans[0])) foreach($mans as $ma) { if ($ca["clean_url"] == "") $url = $http_location.'/manufacturers.php?manufacturerid='.$ma["manufacturerid"]; else $url = $http_location.'/'.$ma["clean_url"].$config['SEO']['clean_urls_ext_m']; $xml .= '<url><loc>'.$url.'</loc><lastmod>'.$today.'</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url> '; } if (is_array($prods[0])) foreach($prods as $pr) { if ($pr["clean_url"] == "") $url = $http_location.'/product.php?productid='.$pr["productid"]; else $url = $http_location.'/'.$pr["clean_url"].$config['SEO']['clean_urls_ext_p']; $xml .= '<url><loc>'.$url.'</loc><lastmod>'.$today.'</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url> '; } if (is_array($pages[0])) foreach($pages as $pa) { if ($pa["clean_url"] == "") $url = $http_location.'/pages.php?pageid='.$pa["pageid"]; else $url = $http_location.'/'.$pa["clean_url"].$config['SEO']['clean_urls_ext_s']; $xml .= '<url><loc>'.$url.'</loc><lastmod>'.$today.'</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url> '; }
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #32  
Old 09-05-2010, 11:23 PM
 
jones jones is offline
Banned
 

Advanced Member
  
Join Date: Aug 2008
Posts: 36
 

Default Re: free google sitemap

Thank you Steve,

I have added changes to module


Quote:
Originally Posted by lewaff
Thanks
Great that works fine
Now is there anyway of stopping it putting these and any un needed lines

thanks Lewis

You can remove/change these URLs from admin area on Genaral Settings/Google SiteMap options -> "Additional URLs." field.

Alex

UPDATED: forgot file with new version.
Attached Files
File Type: zip IronShop_Google_Sitemap3.zip (2.9 KB, 28 views)
Reply With Quote
  #33  
Old 09-05-2010, 11:26 PM
 
jones jones is offline
Banned
 

Advanced Member
  
Join Date: Aug 2008
Posts: 36
 

Default Re: free google sitemap

Lewis,

Can you confirm that you see text "Google SiteMap options" in admin area on General Settings page under "General options" link ?

Thank you,
Alex
Reply With Quote
  #34  
Old 09-05-2010, 11:43 PM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: free google sitemap

OOOPS
Silly Me
I seen that earlier
thanks again
lewis
Quote:
Originally Posted by jones
Lewis,

Can you confirm that you see text "Google SiteMap options" in admin area on General Settings page under "General options" link ?

Thank you,
Alex
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #35  
Old 09-07-2010, 01:04 AM
 
sdfjlsdfsdf sdfjlsdfsdf is offline
 

Member
  
Join Date: May 2010
Location: Upholland
Posts: 12
 

Default Re: free google sitemap

Just like to thank-you for all the hard work you guys put into this, was extremely useful. Your a credit to the community
__________________
xcart 4.3.1
Reply With Quote
  #36  
Old 10-18-2010, 05:36 PM
  DisCost's Avatar 
DisCost DisCost is offline
 

Member
  
Join Date: Sep 2006
Location: 11201 Roosevelt Way NE, Seattle WA 98125 USA
Posts: 11
 

Default Re: free google sitemap

I am having the empty sitemap.xml problem, and when I comment out the "if ($xm_today..." browsing to /admin just gives me an empty page.
__________________
www.displaycostume.com
X-Cart Ver 4.3.1
Reply With Quote
  #37  
Old 10-19-2010, 04:33 AM
 
fou fou is offline
 

Member
  
Join Date: Sep 2010
Posts: 18
 

Default Re: free google sitemap

Do you have last verion of module?

Quote:
Originally Posted by DisCost
I am having the empty sitemap.xml problem, and when I comment out the "if ($xm_today..." browsing to /admin just gives me an empty page.
__________________
IronShop.fr - custom work, integrations, design
Contact email - alex@ironshop.fr
Reply With Quote
  #38  
Old 10-19-2010, 12:37 PM
  betty4's Avatar 
betty4 betty4 is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 75
 

Default Re: free google sitemap

Will this work on 4.0.x?
__________________
Was 4.0.17 Gold w/3rd party modules
Now 4.5.5 Gold with core modules
Reply With Quote
  #39  
Old 10-19-2010, 01:35 PM
 
fou fou is offline
 

Member
  
Join Date: Sep 2010
Posts: 18
 

Default Re: free google sitemap

Quote:
Originally Posted by betty4
Will this work on 4.0.x?

Yes, it should work with 4.0.x

Alex
__________________
IronShop.fr - custom work, integrations, design
Contact email - alex@ironshop.fr
Reply With Quote
  #40  
Old 10-19-2010, 06:08 PM
  DisCost's Avatar 
DisCost DisCost is offline
 

Member
  
Join Date: Sep 2006
Location: 11201 Roosevelt Way NE, Seattle WA 98125 USA
Posts: 11
 

Default Re: free google sitemap

I'm using the file from post#32, it could be that the file is timing out because I have ~5k products
__________________
www.displaycostume.com
X-Cart Ver 4.3.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:38 AM.

   

 
X-Cart forums © 2001-2020