Plugin to show last poster avatar instead the thread starter
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>BT - Avatar CMPS Recent Thread STARTERS</title>
<hookname>vba_cmps_module_recthreadsbits</hookname>
<phpcode><![CDATA[require_once('./includes/functions_user.php');
if($thread[lastposterid])
{
$thread[avatarurl] = fetch_avatar_url($thread[lastposterid]);
if (!$thread[avatarurl]) {
$thread[avatarurl] = $stylevar['imgdir_misc'] . 'images/misc/unknown.gif';
} else {
$thread[avatarurl] = $vbulletin->options['bburl'] . '/' . $thread[avatarurl][0];
}
}]]></phpcode>
</plugin>
</plugins>