The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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:
|