Version: 1.00, by Webdork
Developer Last Online: Nov 2012
Version: 2.2.x
Rating:
Released: 11-03-2002
Last Update: Never
Installs: 8
Is in Beta Stage
No support by the author.
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.
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:
<?php require('./global.php');
// This file can be saved as any name, but upload to your forum dir.
// Only real variables for you to change. Include the trailing /
If you do make some changes that you think work well - please share
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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
/* Slightly more complicated - if you have forums you dont want shown find this line (it appears 3 times)
WHERE forumid NOT IN ('18')
and replace the 18 with the forum you DONT want displayed. In my case its my forum 18. If you have multiple
topics you dont want shown then the format is like:
WHERE forumid NOT IN ('18', '19','20')
etc...
If you dont have any that you want to hide then delete the code
WHERE forumid NOT IN ('18')
(If anyone wants to make this a variable or IF statement it would be appreciated :)
*/
// You can safely edit the header and footer as well.
?>
<html>
<head>
<title>SizeMatters Forum Site Map</title>
<meta name="description" content="">
<meta name="keywords" content="">
/* REALLY dodgy script that shows pvt messages.
I haven't spent any time refining this so play with it if you will.
Again simply save to your forums directory.
You might like to change it so it adds author id's but I was simply more curious
as to what was being discussed not necessarily by who.
Brought to you by [url]http://www.phphacks.com[/url] ;)
*/
echo "<h1>Private Messages</h1>";
$result = mysql_query("SELECT DISTINCT message, title FROM privatemessage ORDER BY title");
echo "<b>Number of Pvt Messages: </b>".mysql_num_rows($result)."<br><br>\r\n";