The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
what am i doing wrong with this code?
PHP Code:
toprep PHP Code:
PHP Code:
|
#2
|
||||
|
||||
Well, your first problem is that you destroy all the data before you try to display it.
Try replacing Code:
$top_rep = $DB_site->query("SELECT * FROM ".TABLE_PREFIX."user ORDER BY reputation DESC LIMIT 10"); while($top_rep = $DB_site->fetch_array($top_rep)) unset($top_rep); $DB_site->free_result($top_rep); eval('$top_stats[\'top_rep\'] .= "' . fetch_template('toprep') . '";'); Code:
$top_rep_res = $DB_site->query("SELECT * FROM ".TABLE_PREFIX."user ORDER BY reputation DESC LIMIT 10"); while($top_rep = $DB_site->fetch_array($top_rep_res)) eval('$top_stats[\'top_rep\'] .= "' . fetch_template('toprep') . '";'); $DB_site->free_result($top_rep_res); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|