Quote:
Originally Posted by Zachariah
Just installed - ver.1.2 show 10 only
re-download and upload the php file ... My upload was trashed. ISP is freaking out.
|
Ok.
I have had a few different outputs.
People that have problems w/ the data filling the table.
Beta Testers Please.
top_posters.php
Code:
<?php
$limit = 20;
// ### TOP STATS ########################################
$top_stats = array();
// TOP POSTERS
$top_posters = $db->query("SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT $limit");
while($top_poster = $db->fetch_array($top_posters))
{
//eval('$top_stats .= "' . fetch_template('adv_portal_topposters_bit') . '";');
eval('$top_stats[\'adv_portal_topposters_bit\'] .= "' . fetch_template('adv_portal_topposters_bit') . '";');
}
unset($top_poster);
$db->free_result($top_posters);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
//eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
?>
Pair 1
Code:
//eval('$top_stats .= "' . fetch_template('adv_portal_topposters_bit') . '";');
eval('$top_stats[\'adv_portal_topposters_bit\'] .= "' . fetch_template('adv_portal_topposters_bit') . '";');
Pair 2
Code:
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
//eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
If you HASH one, Unhash the other. (I think I am mixing CMPS ver.)
Use this in your PHP file and give me some results.
?!?!? Tested on:
EX:
vBulletin 3.5.0
vBadvanced CMPS v2.0.0 (vB 3.5)
Top Posters on your 2.0 CMPS 1.2