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

Reply
 
Thread Tools
Sakera's Hide Poll Results Details »»
Sakera's Hide Poll Results
Version: 1.2, by Sakera Sakera is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 04-29-2007 Last Update: 11-01-2008 Installs: 236
DB Changes Uses Plugins Template Edits
 
No support by the author.

What is this?

I looked around for a hack to hide poll results, but didn't find any hack that suited my needs, and let users hide results for specific polls.

This Modification lets your users hide poll results for everyone but Moderators and Administrators, and the thread owner himself. They can choose to hide the results forever, or to show them automatically when the thread is closed or hit timeout.

Please see attached screenshots to get an idea on how it works.


Features
- Hide poll results forever
- Hide poll results until poll is closed or poll hits timeout.
- Shows a notice to Users that see the results (Moderators, Admin and thread starter) that the results are hidden.
- Moderators and Admin's can change settings via 'Edit Poll'


Template Edits
All template edits are done automaticly when needed. Hopefully this doesn't break in situations with hacked templates, if so happens please notify me what hack caused the problem.


Version History:[/size]
  • 1.0 BETA - First beta release
  • 1.1 - Fixed bug: "The results are hidden for everyone but ..." text showed for owner and moderators even if the results where not hidden.
  • 1.2 - Fixed bug: Bug showing voters when it was a public poll. Bug with clear.gif revealing poll status.




Please click INSTALL if you use this hack.




Show Your Support

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

Comments
  #62  
Old 11-02-2008, 05:20 PM
Mimirswell Mimirswell is offline
 
Join Date: Mar 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've come across a view bugs with this hack so far. The first is, if you have the pollid and the the poll is set to hidden but is a public poll, you can see everyone who voted and thus can tell what the results are even though the actual number is obscured.

The second one is a bit more interesting:


If you mouse over the poll, you get the reverse order of the results. So Yes in that poll has zero votes (so the bar extends to the end), No has 11 of 14 (and therefore is the shortest) and abstain has 3 votes and therefore is the second shortest. It's not exact but it gives you sufficient information to tell whose winning, how close someone is being second, etc.
Reply With Quote
  #63  
Old 11-02-2008, 05:41 PM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the heads up Mimirswell.

Will fix the errors and upload a new version
Reply With Quote
  #64  
Old 11-02-2008, 06:07 PM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sakera View Post
Thanks for the heads up Mimirswell.

Will fix the errors and upload a new version
I've uploaded a bug fix - v2 to resolve above errors.
Reply With Quote
  #65  
Old 11-02-2008, 06:46 PM
Mimirswell Mimirswell is offline
 
Join Date: Mar 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. I can confirm that the clear.gif fix works.
Reply With Quote
  #66  
Old 11-08-2008, 06:19 PM
Charles_1 Charles_1 is offline
 
Join Date: Jun 2006
Location: Czech Republic, Brno
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Schnee View Post
Installed. I agree with everyone else that if only admins could see results, that would be ?ber cool.
I agree. I installed it and it works great, but restriction only for admins would be really useful. Sakera, please, tell us how to do it ;-).
Reply With Quote
  #67  
Old 11-09-2008, 05:39 PM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to remove mod's ability to edit the poll.

Because even if i remove the result view from moderators, they can edit the poll to get the results that way.

When their access to edit the poll is removed, the results view also will be gone, i believe
Reply With Quote
  #68  
Old 12-04-2008, 05:10 PM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod... 5 stars! Thank you... this was exactly what I was looking for.
Reply With Quote
  #69  
Old 12-04-2008, 06:49 PM
dolphin678 dolphin678 is offline
 
Join Date: Aug 2008
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed in 3.7.3 PL1 and is working OK
Reply With Quote
  #70  
Old 12-08-2008, 07:35 AM
Gemilang Gemilang is offline
 
Join Date: Mar 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to have this mod such as it only allows admins and moderators to use it, and not regular members.

How do I do this?
Reply With Quote
  #71  
Old 12-08-2008, 11:19 PM
Jinovich Jinovich is offline
 
Join Date: Mar 2005
Location: England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How could I make this so only admins can have the option to hide the results? I have tried loads of different ways and no way has worked.
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 03:11 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.09682 seconds
  • Memory Usage 2,308KB
  • 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_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