Quote:
Originally Posted by rokked
is there a way to display the post icons in a list on the forumdisplay?
|
PHP Code:
$icons = $vbulletin->db->query_read_slave("
SELECT iconid, iconpath, title, imagecategoryid
FROM " . TABLE_PREFIX . "icon AS icon
WHERE imagecategoryid NOT IN (0$badcategories)
ORDER BY title
");
if (!$vbulletin->db->num_rows($icons))
{
return false;
}
$show['posticons'] = false;
while ($icon = $vbulletin->db->fetch_array($icons))
{
$show['posticons'] = true;
eval('$posticonbits .="' . fetch_template('topicbits') . '";');
}
That's how I did it with a plugin on forumdisplay_start