phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Google Sitmap Problem with "<lastmod>" Date

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
::  
Author Message
handy1



Joined: 28 Jun 2006
Posts: 17
Location: Appleton, WI

Google Sitmap Problem with "<lastmod>" DatePosted: Thu Jun 29, 2006 2:52 pm    Post subject: Google Sitmap Problem with "<lastmod>" Date

I get Unix epoch time for the following KB sitemap. When you go to this sitemap the KB articles have the correct <lastmod> data and time. I'm assuming Google won't like this time, which never changes!
Code:
<sitemap>
<loc>http://www.handymanxchange.com/sitemap-kbcat.xml</loc>
<lastmod>1970-01-01T00:00:00+00:00</lastmod>
</sitemap>

Anyone have any fix?

If you need to check it out just click my webpage link and then append sitemaps.xml
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Google Sitmap Problem with "<lastmod>" DatePosted: Thu Jun 29, 2006 3:14 pm    Post subject: Re: Google Sitmap Problem with "<lastmod>" Date

Yes I see.

Together with Kb you should be very cautious about security.

You know you need cat and articles to have comments on for this to work.

So looking at the file :

open :


Code:
mx_ggsitemaps/includes/index_kb.php


Find :


Code:
         echo "\t\t" . '<lastmod>' .  gmdate('Y-m-d\TH:i:s'.'+00:00', $last_ever ) . '</lastmod>' . "\n";


Replace with :


Code:
         echo "\t\t" . '<lastmod>' .  gmdate('Y-m-d\TH:i:s'.'+00:00', $last_kb_comment ) . '</lastmod>' . "\n";


and the last comment date for all kb cat should be now used as last mod date, as it should Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche


Last edited by dcz on Thu Jun 29, 2006 9:11 pm; edited 1 time in total
Back to top
Visit poster's website
handy1



Joined: 28 Jun 2006
Posts: 17
Location: Appleton, WI

Google Sitmap Problem with "<lastmod>" DatePosted: Thu Jun 29, 2006 8:11 pm    Post subject: Re: Google Sitmap Problem with "<lastmod>" Date

dcz wrote:
Together with Kb you should be very cautious about security.

What do you mean by this? KB together with what sitemaps or phpbb?

I looked for the code to change in sitemap_kb.php, and it wasn't there. I found it in index_kb.php, changed it, and it seemed to work!

Thanks again!
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Google Sitmap Problem with "<lastmod>" DatePosted: Thu Jun 29, 2006 8:44 pm    Post subject: Re: Google Sitmap Problem with "<lastmod>" Date

handy1 wrote:
dcz wrote:
Together with Kb you should be very cautious about security.

What do you mean by this? KB together with what sitemaps or phpbb?

The mod itself Wink please read this and this.

Here are some more general advises about security.

Adding .htaccess with
Code:
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>


in it in every includes/ db/ and other module's includes folders for those running Apache is a wise advise as well.

As well Options -Indexes can be cool in the root's .htaccess.

For those lucky enough to run a single ip :

Code:
Satisfy any
Order Deny,Allow
Allow from xxx.xxx.xxx.xxx
Deny from all


where xxx.xxx.xxx.xxx is your ip (can be a list)

handy1 wrote:

I looked for the code to change in sitemap_kb.php, and it wasn't there. I found it in index_kb.php, changed it, and it seemed to work!

Thanks again!


Oups I meant index_kb.php you are right Wink

I edited my first post Very Happy

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: