Log in

View Full Version : poll image conditional


ericgtr
02-09-2005, 04:39 PM
FYI.. I tried to bump my original post in here "poll_thread_prefix?" but when I replied it only 'modified' my original post, it would not bump it. I tried several times.

I would like to add a condition to functions_forumdisplay that will show image B in a specified forum. It looks like here is where I would add the conditional:


// show poll icon
if ($thread['pollid'] != 0)
{
$show['threadicon'] = true;
$thread['threadiconpath'] = "$stylevar[imgdir_misc]/poll_posticon.gif";
$thread['threadicontitle'] = $vbphrase['poll'];
}
// show specified icon
else if ($thread['threadiconpath'])
{
$show['threadicon'] = true;
}
// show default icon
else if (!empty($vboptions['showdeficon']))
{
$show['threadicon'] = true;
$thread['threadiconpath'] = $vboptions['showdeficon'];
$thread['threadicontitle'] = '';
}
// do not show icon


So basically, IF forumid=106 THEN show [imgdir_misc]/B.gif"; Any ideas?

Marco van Herwaarden
02-09-2005, 07:53 PM
If you post 2 consequtive replies in less then 24 hours, they are automatcially merged, to avoid bumpers :(

ericgtr
02-09-2005, 07:58 PM
Sneaky! :)