View Single Post
  #8 (permalink)  
Old 04-21-2008, 01:43 AM
nzbullet's Avatar
nzbullet nzbullet is offline
Constant Pligger
 
Join Date: Jun 2007
Location: New Zealand
Posts: 133
Thanks: 17
Thanked 19 Times in 14 Posts
I can confirm that this version also works on 9.8.2

EDIT: There seems to be an error with the time in that Google tells me there is anerror with my date format. I have tried all number of different formats, but am unable to fix it.

The only thing I can do to fix this is to remove the time and change the single quote to double quotes. If you are having this same problem go into xml_sitemaps_main.php

Around line 92 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s',strtotime($r[0]))."</lastmod>";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d",strtotime($r[0]))."</lastmod>";
Around Line 147 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s', $link->modified)."</lastmod>\n";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d", $link->modified)."</lastmod>\n";
and around line 257 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s', $m_time)."</lastmod>\n";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d", $m_time)."</lastmod>\n";
__________________
Cheers

Dan

Last edited by nzbullet; 04-21-2008 at 04:33 PM..
Reply With Quote
The Following 2 Users Say Thank You to nzbullet For This Useful Post: