CeleronXL |
04-10-2002 06:45 PM |
Nice response time, man! That area of the code now looks like this:
PHP Code:
$findwords = array(
0 => '{bbusername}',
2 => '{getmicrostats}'
);
$replacewords = array(
0 => $bbuserinfo['username'],
1 => $microstats
);
$i = 2;
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,$newtext);
So the Microstats works again, but the {bbusername} just shows up as a blank space in the post..... =/ Is there anything I need to change in the lower portion of the code (beginning with "while ($var=.....").
Btw, I also had to get rid of one of the $'s before microstats....
|