Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2008, 11:57 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-28-2008, 12:29 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about:
PHP Code:
$show['threadicon'] = false
Not sure if that works, but try it and see.
Reply With Quote
  #3  
Old 12-28-2008, 06:13 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you Lynne.
thats it.
Reply With Quote
  #4  
Old 01-12-2010, 06:56 PM
boggseric's Avatar
boggseric boggseric is offline
 
Join Date: Sep 2009
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'];
  }
Reply With Quote
  #5  
Old 01-12-2010, 08:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-10-2010, 12:27 AM
boggseric's Avatar
boggseric boggseric is offline
 
Join Date: Sep 2009
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #7  
Old 02-10-2010, 07:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want it to always be true, why bother with an if statement at all?
Reply With Quote
  #8  
Old 09-18-2011, 05:49 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone recap the exact change that needs to be made for us novices?
Reply With Quote
  #9  
Old 09-18-2011, 04:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-18-2011, 05:25 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:13 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.04780 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete