Hold on, for some reason the change that took place in 1.2.9 didn't carry over to 1.3.0.
Go to ACP->Forums & Moderators->Forum Blocks Manager. Locate the Active Raffle Block and click 'Edit'.
Copy and paste this code into the Content box, completely overwriting the code that's already in there...
Code:
global $vbulletin;
if ($vbulletin->options['raffle_mode'] && $vbulletin->options['raffle_showsidebar'] && !is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['raffle_perms'])))
{
$timenow = TIMENOW;
$allow_view = true;
$raffle_getactive = $vbulletin->db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "raffle
WHERE enddate > $timenow AND startdate <= $timenow
ORDER BY id DESC
");
if ($vbulletin->db->num_rows($raffle_getactive))
{
while($raffle = $vbulletin->db->fetch_array($raffle_getactive))
{
($hook = vBulletinHook::fetch_hook('raffle_active')) ? eval($hook) : false;
if($allow_view == true)
{
if($raffle_list) $raffle_list .= '<br />';
$raffle_list .= '<a href="raffles.php?' . $session[sessionurl] . 'do=raffle&id=' . $raffle[id] . '" title="' . $raffle[name] . '" />' . $raffle[name];
if($raffle['showimage'])
{
if(empty($raffle['prizeimg'])) $raffle['prizeimg'] = 'images/raffles/default.gif';
$target = $vbulletin->options['raffle_sidebar_maxpicture'];
$picturesize = getimagesize($raffle['prizeimg']);
$percentage = ($target / $picturesize[0]);
$picture_width = round($picturesize[0] * $percentage);
$picture_height = round($picturesize[1] * $percentage);
$raffle_list .= '<br /><center><img class="display" src="' . $raffle['prizeimg'] . '" width="' . $picture_width . '" height="' . $picture_height . '" alt="' . $raffle['name'] . '" border="0" /></center>';
}
$raffle_list .= '</a><br />';
}
}
}
unset($raffle_getactive);
$statsarray = array('currentraffles' => $raffle_list,);
return $statsarray;
}
EDIT: I re-uploaded 1.3.0 with the proper sideblock in the install file. There was no change in version numbers.