GET Latest Version Below ( 0.3) This php script will generate a url list (in a text file) of a vb forum, that you can feed to the google sitemap creator. It currently list all forums and all treads urls + the base url of the site and base url of the forum. All the variables needed are explained on the file. Next version will hopefuly add an url to the file everytime a thread is created. Also I plan to make it generate itself the goole sitemap file. Suggest any other improvements. Let me know if somebody uses it, and how it works. Tested on vb version 3.0.7. Is you use it and make improvements share them!! First atachment is the php file, the second is an example of the generated file P.S. It just reads from the database but I'm not responsable for anything and its provided as it is.
That is a great resource! I don't run vbulletin, but if you want to create one for php-nuke, that would be great
Looks good. Just ran it. Was wondering if there was also a way to get the vb archive included into this list? Thanks.
I'll look into the archive part, It shouldn't be too complicated. Afterhim.com: I don't know anything about php-nuke, can't help with that one.
I can read the code handily. Even with no comments. It was understandable too. One worry is scalability in that query. That may need addressing for larger forums.
Thanks noppid I know that, I will look into that later, after the auto add when a new tread is created is done. I'm really just a php noob, The only other script I have done is this golf shop, Its just a datafeed script with reviews that works with all(or most) shareasele datafeeds.(the layout sucks need to work on that soon)
I've got a site I work with that just has the forum so I changed your code to this version... and I call includes/config.php to get the database info. It needs a clean up to check the variables and it doesn't handle the forum index pages (I took that out, need to add it back in) but will assist Google in getting round the site. change line 101 to $url = $base."showthread.php?".$threadq.$row[0]; See it in action at: http://www.assetmagazine.co.nz/vbsitemap-02.php Sarah
Great sarahk k Here is version 0.3. Changelog: Merged Sarahk changes more cleanly with the old code. Added the functionality sarahk removed on her version with improvements. Fixed an error on Sarahk version. Result is a valid Sitemap xml file (thanks Sarahk!!!) Result file is now a GZ file, No more need for Googles Python Script. (no ping feature yet, add the sitemap manaually to google sitemaps). Working version: here Thanks for the reputation guys/girls.
Question, <url> <loc>http://www.aeforums.net/forum/forumdisplay.php?f=84</loc> <lastmod>[B]1969-12-31T14:58:58Z[/B]</lastmod> <changefreq>changefreq=daily</changefreq> <priority>priority=0.8</priority> </url> Code (markup): lastmod date is 1969, but changefreq is daily - would this confuse google?
Nice to see other people wrapping their heads around this one. Hopefully it'll work its way into a nice sitemap hack that can be shared at www.vbulletin.org.
Infiniterb I will post it there soon, It looks like its getting to be way more that the original plan.
If I understand this correctly: $fchange ='daily' ; $tchange ='weekly'; The code is saying that the fourm display is changing daily, while the show thread is changed weekly. Is this correct or am I missing something?
Thanks fixing..... Sarahk: Last post is the last post ID not the time. Some dates (the base and forum home) are generated from the servers current time.. I guess my host don't have the time right
kinda: Each forum changes daily, each tread changes weekly is what it says. Those are variables, they are examples, you can change them to whatever you want withing the google sitemap rules.
Here's something that may need to be considered for those with large forums (I have one with over 1 million threads):
Infiniterb: I Know right now it's not very functional for people with large forums, but I'm planning on working on it. Sorry i'm not a php guru so I'm a little slow. I posted it here this morning to share something back to the DP community that has taught me a lot of stuff.