The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Have any idea what it might be or what I can do to fix it?
Quote:
|
#12
|
||||
|
||||
hmm, please help: I have this code, the micostats work, but the bbuserinfo doesnt:
// ###################### Start dovars ####################### function dovars($newtext,$sendheader=1) { // parses replacement vars global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm,$bbuserinfo, $microstats; static $vars; if (connection_status()) { exit; } if (!isset($vars)) { $vars=$DB_site->query("SELECT findword,replaceword FROM replacement WHERE replacementsetid IN(-1,'$replacementsetid') ORDER BY replacementsetid DESC,replacementid DESC"); } else { $DB_site->data_seek(0,$vars); } $findwords=array(0 => '{getmicrostats}', 1 => '{bbusername}'); $replacewords=array(0 => $microstats, 1 => "$bbuserinfo[username]<!-- auto name hack -->"); $i=1; while ($var=$DB_site->fetch_array($vars) and $i++) { if ($var['findword']!='') { $findwords[$i]=$var['findword']; $replacewords[$i]=$var['replaceword']; } } $newtext=str_replace($findwords,$replacewords,$new text); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|