Quote:
Originally Posted by teach1st
OK...give me four minutes, cause I have to enable guests to see the sidebar, too.
|
Quote:
Originally Posted by teach1st
It's ready
The image shows in the raffle
|
Ok, you can kill guests now. I've seen what I needed to see.
I can't see the image in IE8 on your site either. I'm not sure what the problem is.
Try replacing the block code with this..
Code:
global $vbulletin;
if ($vbulletin->options['raffle_mode'] && $vbulletin->options['raffle_showsidebar'] && !is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['raffle_perms'])))
{
$timenow = TIMENOW;
$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))
{
if (is_member_of($vbulletin->userinfo, explode(',', $raffle['groupperm'])))
{
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;
}
That code is direct from my test server and it does display that exact image in the default vBulletin template.
That is one other thing you can try.. try changing to the default vB template and see if it shows that way. If it does, then there's a problem with your site template.