Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Prevent users from viewing poll results before voting. Details »
Prevent users from viewing poll results before voting.
Mod Version: 1.00, by Pyrix (Member) Pyrix is offline
Developer Last Online: Mar 2020 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (3 votes - 4.33 average) Installs: 51
Released: 02 Mar 2007 Last Update: 02 Mar 2007 Downloads: 225
Not Supported Uses Plugins  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 10 Feb 2008, 20:52
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Real name: David Smith
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
  #17  
Old 11 Feb 2008, 14:09
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
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
  #18  
Old 29 Apr 2008, 15:01
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Question

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!
Reply With Quote
  #19  
Old 25 May 2008, 19:58
webghey webghey is offline
 
Join Date: May 2005
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
  #20  
Old 28 May 2008, 18:09
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Real name: Nick
I cannot find where to change settings or permissions...?

Thanks in advance for any help.
Reply With Quote
  #21  
Old 14 Aug 2008, 06:29
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Originally Posted by vithorius View Post
Does it works in 3.6.8? (and what about 3.7?)


Thank you!
Originally Posted by webghey View Post
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?
I've been running the mod I described (above) since January on 3.6.8 with great satisfaction.

I just tested it tonight on 3.7.2 and it doesn't *quite* work. Most functionality is there, but there is one significant deal-buster. I suspect it will be a comparatively simple fix.

Moreover, there is some ambiguity over who owns this code. I wrote the functional specifications of how the mod should work. I hired the work done. I did the comprehensive testing prior to acceptance. But I did not write a formal contract that addressed the issue of who owns the product. For that reason I'm not comfortable sharing the code just yet.

I've attempted to re-establish contact with the author of the code about updating it for 3.7.2, and we'll discuss that issue. That's about all I can say for now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 11:18.

Layout Options | Width: Wide Color: