PDA

View Full Version : Show Thread Enhancements - Prevent users from viewing poll results before voting.


Pyrix
03-01-2007, 10:00 PM
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
Upload product-pyrix_hidepoll.xml as a product in your admin control panel
Click Install.
???
PROFIT!!!Notes

I used Chris M's 'Hide Poll Results (https://vborg.vbsupport.ru/showthread.php?t=98957)' 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

Pyrix
03-02-2007, 10:23 AM
<font size="3">Screenshots</font>

concepts
03-02-2007, 11:58 AM
Great Work! this is very much needed for my board!

Pyrix
03-02-2007, 12:04 PM
You're quite welcome! Let me know if you have any problems with it all!

bigsbydapicka
03-12-2007, 12:27 AM
Problem....Tried it out and the problem that arose was once the users voted they could not see the results? kept getting the "ya have to vote before you can look at the results" message??

Using 3.6.5

Pyrix
03-13-2007, 10:41 AM
Do you know what type of vote it was?

I'll look into it for you!

Ollie

tanyeri24
04-08-2007, 12:07 AM
doesnt work for me, 3.6.5

tschai
06-04-2007, 08:22 AM
Is tehere anything to be set-up-ed or to be configured, beside just installing it?
I dont see any results with 3.6.4...

This one should be a very usefull mod...!

gforce75
06-04-2007, 02:06 PM
Sounds like you guys don't have it working? In concept, it's a great idea. Hope to see an update or successful story

olympist
06-29-2007, 07:05 AM
Problem....Tried it out and the problem that arose was once the users voted they could not see the results? kept getting the "ya have to vote before you can look at the results" message??

Using 3.6.5

Same problem arises for me too. I use 3.6.7.

tschai
09-05-2007, 06:24 AM
Any updates with this one?
It's very promissing, but couldn't get it to work either...

Ba$im
09-05-2007, 09:26 AM
Great Work!

yoyoyoyo
11-03-2007, 02:33 AM
is this working for 3.6.8?

giotmuadong
11-03-2007, 06:03 AM
do you have an update for 3.6.8?

Bill Thebert
01-17-2008, 12:26 AM
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.

WreckRman2
02-10-2008, 06:52 PM
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?

Bill Thebert
02-11-2008, 12:09 PM
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.

vithorius
04-29-2008, 01:01 PM
I hired the work done.

Does it works in 3.6.8? (and what about 3.7?)


Thank you! :up:

webghey
05-25-2008, 05:58 PM
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?

EagleNick
05-28-2008, 04:09 PM
I cannot find where to change settings or permissions...?

Thanks in advance for any help.

Bill Thebert
08-14-2008, 04:29 AM
Does it works in 3.6.8? (and what about 3.7?)


Thank you! :up:

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.