Yes, its finally updated. :-)
Directions:
execute the following mysql command: (if you've already done this in previous installation attempts, don't do it again!)
Code:
ALTER TABLE replacement ADD forumid SMALLINT (5) DEFAULT '0' not null;
if you don't know how, then create replacementfid.php: (in /forum, or /forum/admin)
Code:
<?
require ("global.php");
if (mysql_query("ALTER TABLE replacement ADD forumid SMALLINT (5) DEFAULT '0' not null")) {
print "Success!";
} else {
print "Failed!";
}
?>
open global.php: (in /forum, not /forum/admin)
look for:
Code:
// load vars
$vars=$DB_site->query("SELECT * FROM replacement ORDER BY replacementid DESC");
delete up until:
Code:
// ###################### Start standarderror #######################
place in that spot:
Code:
// ###################### Start dovars #######################
function dovars($vartext,$fid=0) {
// parses replacement vars
global $DB_site;
global $forumid;
global $vars;
$forumspec = "";
if ($forumid) {
$cusvars=$DB_site->query("SELECT * FROM replacement where forumid = $forumid ORDER BY replacementid DESC");
$newtext=$vartext;
while ($cusvar=$DB_site->fetch_array($cusvars)) {
$newtext=str_replace($cusvar[findword],$cusvar[replaceword],$newtext);
$forumspec .= "and findword != '$cusvar[findword]' ";
}
}
$replacevars=$DB_site->query("SELECT * FROM replacement where forumid = 0 $forumspec ORDER BY replacementid DESC");
$DB_site->data_seek(0,$replacevars);
while ($var=$DB_site->fetch_array($replacevars)) {
$newtext=str_replace($var[findword],$var[replaceword],$newtext);
}
return $newtext;
}
save and close.
create styles.php: (in /forum/admin, not /forum)
update: it appears, since I'm using replacement variables in the code, that this vBulletin installtion is actually replacing the code on the fly. to get the code for styles.php, please go to the following url:
http://unreal2.net/styles.phps (make sure to refresh, this code has been updated)
new step - open up forum/index.php and look for:
Code:
eval("echo dovars(\"".gettemplate("forumhome")."\");");
directly above it, place:
start forum/admin/styles.php from your web browser
This _should_ fix all of the problems people were having
Please try it out and let me know! Thanks,
[Edited by Stallion on 07-30-2000 at 08:48 PM]