View Full Version : How to remove Poll Icon completely?
kurti
12-27-2008, 11:57 PM
Hi,
(i have vB 3.7.4)
i'd like to remove the automatic appearing Poll Icon.
so that there can be a normal post icon instead.
i've tried removing this:
308 // show poll icon
309 if ($thread['pollid'] != 0)
310 {
311 $show['threadicon'] = true;
312 $thread['threadiconpath'] = "$stylevar[imgdir_misc]/poll_posticon.gif";
313 $thread['threadicontitle'] = $vbphrase['poll'];
314 }
from:
includes/functions_forumdisplay.php
but that made also all normal post icons disappear. (no idea why)
then i tried only removing line 312 and 313.
that worked fine in Firefox3...
but in Explorer7 the Poll icon is replaced with a little placeholder image (red x).
Can you please tell me what to change in this php file
to get rid of the Poll icon and the placeholder? :)
Lynne
12-28-2008, 12:29 AM
How about:
$show['threadicon'] = false;
Not sure if that works, but try it and see.
kurti
12-28-2008, 06:13 PM
thank you Lynne.
thats it. :)
boggseric
01-12-2010, 06:56 PM
Sorry for bumping an old thread, but as a note to this if you just replace true with false it won't show the normal thread icon or the poll icon (we have thread's that MUST show the selected thread icon for posts, NWS posts for users at work)
However, if you change it to this it will never show the poll thread icon and only show the normal thread icon (if any were selected).
// show poll icon
if (0 != 0)
{
$show['threadicon'] = true;
$thread['threadiconpath'] = "$stylevar[imgdir_misc]/poll_posticon.gif";
$thread['threadicontitle'] = $vbphrase['poll'];
}
Lynne
01-12-2010, 08:15 PM
It isn't:
if (0 != 0)
it is literally:
if ($thread['pollid'] != 0)
And, of course, don't put in the line numbers.
boggseric
02-10-2010, 12:27 AM
It isn't:
if (0 != 0)
it is literally:
if ($thread['pollid'] != 0)
And, of course, don't put in the line numbers.
You are correct on the line numbers (whoops)
but my IF statement was correct, it is an always false statement so it skips that section of the code. I don't EVER want it to be true and have the poll icon overwrite the thread icon (which will happen when that IF clause returns true). This basically disables the poll icon completely and shows the thread icon if one was selected.
Lynne
02-10-2010, 07:34 PM
If you want it to always be true, why bother with an if statement at all?
SBlueman
09-18-2011, 05:49 AM
Can someone recap the exact change that needs to be made for us novices?
Lynne
09-18-2011, 04:31 PM
Just find that code in functions_forumdisplay.php and change it to false:
// show poll icon
if ($thread['pollid'] != 0)
{
$show['threadicon'] = false;
At least, that is what it looks like it was decided was the fix. I've never tried it though.
SBlueman
09-18-2011, 05:25 PM
Doesn't do what I want it to do that way. I want to display the post icon and not have the default poll icon come up over it.
Lynne
09-18-2011, 08:49 PM
Doesn't do what I want it to do that way. I want to display the post icon and not have the default poll icon come up over it.
Well, that isn't what this thread was about. It was about removing the poll icon completely.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.