Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Prevent users from viewing poll results before voting. Details »»
Prevent users from viewing poll results before voting.
Version: 1.00, by Pyrix Pyrix is offline
Developer Last Online: Mar 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 03-01-2007 Last Update: 03-01-2007 Installs: 52
Uses Plugins
 
No support by the author.

This seems to be a popular request, and one that I needed, so I've chosen to release it here.

Please note that I've only tested this on 3.6.4, and haven't yet tried all poll combinations (eg multiple, etc.). However I see no reason why this wouldn't work with them. This is also my first publicly released mod, so be kind!

Features
  • Hides poll results until a user has voted on said poll.
  • Results are shown once said poll is closed.
  • Moderators and admin are exempt and can view results of all polls at all times.
  • Unregistered, Users awaiting Email Confirmation, etc are shown 'Please register to view poll.' message.
Installation
  1. Upload product-pyrix_hidepoll.xml as a product in your admin control panel
  2. Click Install.
  3. ???
  4. PROFIT!!!
Notes

I used Chris M's 'Hide Poll Results' as a reference, as that's what we had before (but it was a bit too aggressive and kept everything hidden whether you'd voted or not). So apologies to him if some of the code looks a bit familiar in places, but there are only so many ways of doing it.

Please also note that the code isn't particularly efficient, as it does a lot of processing that it doesn't need to. However this should have a very small impact and means that there are no file or template edits involved with this mod. Basically, I'm lazy.

Ollie

Show Your Support

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

Comments
  #12  
Old 09-05-2007, 06:24 AM
tschai's Avatar
tschai tschai is offline
 
Join Date: Nov 2006
Location: Netherlands
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates with this one?
It's very promissing, but couldn't get it to work either...
Reply With Quote
  #13  
Old 09-05-2007, 09:26 AM
Ba$im Ba$im is offline
 
Join Date: Apr 2007
Location: Saudi Arabia
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Work!
Reply With Quote
  #14  
Old 11-03-2007, 02:33 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this working for 3.6.8?
Reply With Quote
  #15  
Old 11-03-2007, 06:03 AM
giotmuadong's Avatar
giotmuadong giotmuadong is offline
 
Join Date: Feb 2007
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have an update for 3.6.8?
Reply With Quote
  #16  
Old 01-17-2008, 12:26 AM
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm interested in preventing ALL users, whether they've voted or not, from seeing the results until the poll is CLOSED.

Example, a week-long online election, where votes are private, and the results are only visible to ALL users after the voting is closed.

Can your code be made to do this? Or is there some other mod that would fit the bill? Have looked but come up empty.
Reply With Quote
  #17  
Old 02-10-2008, 06:52 PM
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Location: Indianapolis, IN
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bill Thebert View Post
I'm interested in preventing ALL users, whether they've voted or not, from seeing the results until the poll is CLOSED.

Example, a week-long online election, where votes are private, and the results are only visible to ALL users after the voting is closed.

Can your code be made to do this? Or is there some other mod that would fit the bill? Have looked but come up empty.
That's exactly what I am looking for... any luck yet?
Reply With Quote
  #18  
Old 02-11-2008, 12:09 PM
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IndyWebDesign View Post
That's exactly what I am looking for... any luck yet?
I hired the work done.

There is now a new "property" for each poll created, with four possible values:
  • Don't hide results (current default)
  • Hide results till user votes
  • Hide results from all users till poll closes
  • Hide results forever
The ability/permission to CREATE polls with hidden results is configurable by usergroup.

So is the ability/permission to VIEW hidden results (presuming one doesn't meet the other criteria established).

It's working really well for "secret ballot" type votes, where we don't wish to reveal the results till the voting is closed.
Reply With Quote
  #19  
Old 04-29-2008, 01:01 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bill Thebert View Post
I hired the work done.
Does it works in 3.6.8? (and what about 3.7?)


Thank you! :up:
Reply With Quote
  #20  
Old 05-25-2008, 05:58 PM
webghey webghey is offline
 
Join Date: May 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bill Thebert View Post
I hired the work done.

There is now a new "property" for each poll created, with four possible values:
  • Don't hide results (current default)
  • Hide results till user votes
  • Hide results from all users till poll closes
  • Hide results forever
The ability/permission to CREATE polls with hidden results is configurable by usergroup.

So is the ability/permission to VIEW hidden results (presuming one doesn't meet the other criteria established).

It's working really well for "secret ballot" type votes, where we don't wish to reveal the results till the voting is closed.

working on 3.7? Willing to release the code for others to test?
or others know of something that will achieve this on 3.7?
Reply With Quote
  #21  
Old 05-28-2008, 04:09 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot find where to change settings or permissions...?

Thanks in advance for any help.
Reply With Quote
Reply

Thread Tools

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 12:49 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.06034 seconds
  • Memory Usage 2,296KB
  • 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
  • (4)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
  • (2)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