![]() |
Forum Site Map for Search Engines
Just a very quick hack that will print a static php page listing your categories and topics.
Search engines like Google wont index a dynamic URL off a dynamic URL so by providing a static page listing your topics dynamic URL's you will get a deeper crawl. I know there are different approaches on this board to optimizing for Google, but try this as well. It works :) I then just create a link from the home page to the this file (you should try and name it sitemap.php or something similar. Please note that I have deliberately not used any vbulletin templates etc... the goal of this page is to be as simple and clean as possible for crawlers like Google and AlltheWeb to index as much as possible. Example of output here: http://www.sizematters.com.au/forums/sitemap.php Just cut and paste the code and play. In another version I made it so the first 100 characters of the first post in each topic was created, but I dont think it helps much. PHP Code:
NOTE: This version WILL show contents of private forums if you have them. If you have certain forums you dont want to have their content listed - see the revised code a couple of posts below. |
Nice idea, ofcourse for a larger forum the listing of threads can get very long ;)
One thing though, the use of mysql_query could have been replaced with $DB_site->query, since it's specified for vBulletin. |
Excellent hack, and you did a nifty job in the CSS of it as well.
Here is another demo for anybody wondering: http://www.diffusion4.com/sitemap.php |
Spankyou :)
If the topics get too long it wouldnt be too hard to put in a previous / next link - but that would again run into the problem of dunamic url off a dynamic url :) |
this shows the topics of private forums, is it suppose to?
|
Shows everything. I hadnt thought about pvt forums. Could add a bit of code where it wouldnt.
|
I dont have any pvt forums so not sure how they are flagged so cant see anything obvious to edit for now.
|
You have a small in the listing of the top 20 recent-threads, as you forgot to order it by dateline.
#1. Find: PHP Code:
PHP Code:
|
Thanks - I initially had it for some reason but took it out...
If you want to EXCLUDE some categories - eg private areas use this code: PHP Code:
|
Because it uses the same code layout - heres a REALLY quick and dodgy hack to display Private Messages
PHP Code:
|
All times are GMT. The time now is 07:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|