Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Poll Results Details »»
Hide Poll Results
Version: 1.0.3, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-20-2005 Last Update: 10-21-2005 Installs: 126
Uses Plugins Template Edits
 
No support by the author.

[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Click [high]INSTALL[/high]

Requested by: https://vborg.vbsupport.ru/showthread.php?t=95019 (mrsbuzzy, 68 Z-28 & 1996 328ti)

[high]What does this Plugin do?[/high]

Basically, this will disable poll results from showing from everyone :devious:

[high]Are there any screenshots?[/high]

See my next post

[high]Version History:[/high]

1.0.0: First release
1.0.1: Added more functionality (Results shown when poll is closed, hidden while open); Corrected 3 bugs (2 phrases in the added template, pollresult_voted now cached in cache_templates) ; 1 template edit / overwrite required (pollresult_voted) to add new phrases;
1.0.2: Fixed another bug - Should allow you to vote on unvoted polls now
1.0.3: Fixed bug that unregistered users can see poll results

Chris

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-22-2005, 01:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad it's working Next are forum-specific permissions - When I do usergroups it'll be an Extension, meh

Chris
Reply With Quote
  #23  
Old 10-25-2005, 02:22 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about hiding from unregistered guests.
Right now someone not logged in sees 'Thanks for Voting '
Reply With Quote
  #24  
Old 10-25-2005, 02:35 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the [high]showthread_post_start[/high] plugin, change:
PHP Code:
if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
    }

to:
PHP Code:
if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        if (
$vbulletin->userinfo['userid']) {
            eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
        } else {
            
$poll '';
        }
    }

That should work

Chris
Reply With Quote
  #25  
Old 10-25-2005, 02:46 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris M
That should work
Certainly did, thanks!
Reply With Quote
  #26  
Old 10-25-2005, 02:48 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome

Chris
Reply With Quote
  #27  
Old 10-26-2005, 06:53 AM
68 Z-28 68 Z-28 is offline
 
Join Date: Jul 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will be good for now. For the board I admin on the hide polls in specific forums would be AWESOME. This way I could just turn off the poll results in the "Truck of the month" forum where polls and voting take place.

Also, is it possible to add it where the poll starter can choose to hide the results or not? In previous versions, you'd just click a box, and the results would be hidden, reguardless of forum or usergroup(only forum mod, super mod, or admin could see results).

Thanks for gettin this done.
Reply With Quote
  #28  
Old 10-28-2005, 05:38 PM
msgotit msgotit is offline
 
Join Date: May 2005
Location: Idaho, US
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awesome! Another thing to look at is having the option to turn it off. I know that takes a little more and probably a table edit, but sometimes I would like to hide it, others I would like to show it.

Great job!!
Reply With Quote
  #29  
Old 10-30-2005, 05:06 PM
Simms Simms is offline
 
Join Date: Feb 2002
Location: Woodbridge, VA
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome...been waiting for this. Installed and working, but like those above, I would *love* to have the option of whether I wanted the results hidden or not depending on the thread.

Either way, thanks!
Reply With Quote
  #30  
Old 10-31-2005, 01:21 PM
Hurricane Hurricane is offline
 
Join Date: Feb 2002
Location: Central Florida
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris M, for hints and ideas, see my old (3.0.X) hack or even look back to the 2.X by Firefly and Scott MacVicar.

https://vborg.vbsupport.ru/showthread.php?p=496898

It may give you ideas on how to add the ability to select the hide.
Reply With Quote
  #31  
Old 11-07-2005, 03:07 AM
68 Z-28 68 Z-28 is offline
 
Join Date: Jul 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates?
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 09:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04793 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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