The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
As seen originaly here for v 1.1x ...
Code:
<script language="php"> /* ############################################################################## # vBulletin Static HTML Creator Version 1.06 # # Copyright 2000 Paul Pearson wandrer@glcomputers.com # # Created 6/1/00 Last Modified 6/1/00 # # Scripts Archive at: http://www.glcomputers.com/Wandrer/ # ############################################################################## */ /* ############################################################################## # Randomize # ############################################################################## */ srand((double)microtime()*1000000); /* ############################################################################## # Load Required Variables # ############################################################################## */ include ("admin/config.php"); $filename_prefix = "topic"; $filename_suffix = ".html"; /* ############################################################################## # Lets Setup and Connect to the Database # ############################################################################## */ $db=mysql_connect($servername,$dbusername,$dbpassword); mysql_select_db($dbname); $querythreads = "SELECT threadid FROM thread ORDER BY threadid ASC"; $resultthreads = mysql_query($querythreads,$db); if (mysql_affected_rows($db)==0) { echo "No threads"; exit; } /* ############################################################################## # Lets Find the Threads # ############################################################################## */ $indexfilename = "index-thread" . $filename_suffix; $indexpointer = fopen("$indexfilename", "w"); while ($thread_array = mysql_fetch_array($resultthreads)) { /* ############################################################################## # Go one-by-one through the thread query # ############################################################################## */ $threadfilename = $filename_prefix . $thread_array[threadid] . $filename_suffix; $filepointer = fopen("$threadfilename", "w"); $filedata = '<!--#include virtual='; $filedata .= "\"showthread.php?threadid="; $filedata .= "$thread_array[threadid]" . "\"-->"; fwrite ($filepointer, $filedata); fwrite ($indexpointer, "<p><a href=\"$threadfilename\">$threadfilename</a></p><br>"); fclose($filepointer); echo "$thread_array[threadid] completed...<br>"; } fclose($indexpointer); exit(); </script> |
#2
|
|||
|
|||
yes an update would be nice
i never got the original to work |
#3
|
|||
|
|||
bump? I still cant figure out how to get this to work wtih v2.
|
#4
|
|||
|
|||
pretty please
|
#5
|
|||
|
|||
Is this the one that creates static html files? i don't think you really want to do this for search engines, there are better ways.
The easyiest way can be found at sitepoint forums. It basically makes it so that www.domain.com/forums/showthread.php/4323 is converted to http://www.domain.com/forums/showthr...?threadid=4323 and search engines do index the former. Another option is to use an apache re-write. This can be found in the chit chat forum in a thread started by me on apache rewrite. The code you want is the bit posted by fastfoward. Alternativly, wait until wluke releases his search engine hack (no idea if he has started it yet though). I think he is working on including keyword density, alternative pages for search engines etc so would probably be better but the apache one is probably the best to get you started. INMHO creating static pages is very crude way to do it, server intensive, wastes space and is not dynamically updated. |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
hehe.. me.. nah one of the people here with no infopop hatred as i never had the "fortune" to use their software.
I think even them would agree that having dynamic pages and static pages at the same time is crude.... oh wait... i forgot about ubb6 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|