vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to remove Poll Icon completely? (https://vborg.vbsupport.ru/showthread.php?t=199942)

kurti 12-27-2008 11:57 PM

How to remove Poll Icon completely?
 
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:
Code:

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:
PHP Code:

$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).

Code:

// 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:
PHP Code:

if (!= 0

it is literally:
PHP Code:

if ($thread['pollid'] != 0

And, of course, don't put in the line numbers.

boggseric 02-10-2010 12:27 AM

Quote:

Originally Posted by Lynne (Post 1953874)
It isn't:
PHP Code:

if (!= 0

it is literally:
PHP Code:

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 04:49 AM

Can someone recap the exact change that needs to be made for us novices?

Lynne 09-18-2011 03:31 PM

Just find that code in functions_forumdisplay.php and change it to false:
PHP Code:

            // 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 04: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.


All times are GMT. The time now is 01:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01702 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete