Google Sitemap Tool for phpwcms?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
TheMorph
Posts: 3
Joined: Mon 31. Oct 2005, 12:59

Google Sitemap Tool for phpwcms?

Post by TheMorph »

Ich suche nach einem Sitemap.xml Tool für PHPWcms.
mochito
Posts: 35
Joined: Fri 9. Jul 2004, 12:51
Contact:

Post by mochito »

SCNR:
Hallo - Grüss Gott - Bitte - Danke - Auf Wiedersehen ... gehört nicht nur mir allein, auch andere dürfen es benutzen :-)

OnTopic:
Hallo,
ich bin mit diesem "Windows-Tool" recht zufrieden.
GS-SiteCrawler : http://johannesmueller.com/gs/

cu, juergen
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Prinzipiell müsste das Sitemap Tool dafür umstrickbar sein. Aber das macht definitiv Arbeit :)

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

Moin,
ich hab - bis sich jemand mal die Arbeit macht - das Onlinetool unter http://www.xml-sitemaps.com/ genommen und die Datei dann angepasst. Ist erstmal ein guter Start, finde ich.
Auch meine Erfahrungen mit den Sitemaps sind gut, alle URLs im Format /index.php?aliasname wurden prima übernommen.

volkman
pk2000
Posts: 63
Joined: Mon 17. May 2004, 22:43
Location: Tallinn, Estonia
Contact:

Google sitemap for phpwcms

Post by pk2000 »

OK, now! I am not a programmer so feel free to fix, clean up, change the names of variables, functions etc. Here is my hack to make a file containing Google sitemap xml data.

As it is based on RSSWriter (edmundd, slackero, and others) then it only outputs articles but it's a start if anyone would like to add the ability to output structure levels then it would be great.

As I haven't upgraded a long time then I can only verify that this works with "Release 1.1-RC4 27-08-2004" but the changes for newer versions, if any, shouldn't be to complicated.

On this page you can find a zip file that contains sitemap.php and sitemap.inc.php. Put the sitemap.php in your root directory and sitemap.inc.php in include/inc_ext/googlesitemap/ (you need to create it). Change the values in sitemap.php to fit your needs:

"changefreq" => htmlspecialchars("weekly"),
"priority" => htmlspecialchars("0.8")

and the same in sitemap.inc.php:

print " <changefreq>daily</changefreq>\n";
print " <priority>1.0</priority>\n";

Well, that's about it. Submit to Google Sitemaps. If you find any problems with the code please fix them and let us know.

You can see the Google sitemap generated by this code here: Sevenline Google sitemap.
pk2000
Posts: 63
Joined: Mon 17. May 2004, 22:43
Location: Tallinn, Estonia
Contact:

Post by pk2000 »

oh just noticed that the urls it outputs are not regular urls (id=0,article_id,0,0,1,0) so if anyone can fix that it would be great. what needs to be done is to change the row 69 in sitemap.php so that it outputs regular article link (id=cat_id,article_id,0,0,1,0).
---
fixed!

Still it would be great if it would work as a sitemap feature in {SITEMAP} where you can output either structure or structure with articles.

one other thing: cuurently it lists the creation date of the article it should be replaced with last modified
Post Reply