google sitemap support

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
mtupker
Posts: 3
Joined: Tue Jan 03, 2006 3:38 pm

google sitemap support

Post by mtupker »

I may be alone on this but I think google sitemap support would be very nice. I've been trying to moddify one of the RSS feeds but with little luck. Thanks.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

nice idea. I think about it...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
wolf
Posts: 22
Joined: Tue Jan 11, 2005 10:44 am
Location: Denmark
Contact:

Post by wolf »

I think that's an excellent idea. Here are some issues you may want to consider:
  • The URL of the entry should be easy to generate, since you probably already have a function that creates the proper URL for an entry based on whether mod_rewrite is enabled. The URLs are the only entries in the Google sitemap that are mandatory, so the following three issues are optional.
  • The change frequency could be set globally, but it might be appropriate to have phpMyFaq automatically determine how often each entry is updated, and then set the change frequency accordingly. The "faqchanges" table may already contain the data that can provide these statistics.
  • The last modification date of each entry is already in the database.
  • The priority, if chosen, could be either the number of times an entry has been viewed, or it could be based on the votes results.
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

I just go to http://www.xml-sitemaps.com/ give the the site address and it produces sitemaps in xml, xml.gz, text, and html. Then submit to Google and Yahoo. It picks up every single FAQ and indexes them all.
wolf
Posts: 22
Joined: Tue Jan 11, 2005 10:44 am
Location: Denmark
Contact:

Post by wolf »

david_de wrote:It picks up every single FAQ and indexes them all.
I'm sure it does. However, it's one of those "yet another thing to do" situations; I'd prefer to have phpMyFaq automatically generate the sitemap when a FAQ entry is added or updated rather than have to perform an additional manual task.

- wolf -
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi all,
FYI, in PMF 2.x a Google Sitemap generator will be available (just take a look tomorrow at the nightly built snapshot) through one of these urls:
  • http://[...]/sitemap.google.php
  • http://[...]/sitemap.google.php?gz=1
  • http://[...]/sitemap.xml
  • http://[...]/sitemap.xml.gz
Currently, the priority is set between 0.5 and 1.0 based upon faq visits data whilst the change frequency is fixed to daily, to avoid an increase of load for the on-the-fly generation (we'll investigate if an easy solution with a low load could be achieved).
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply