vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Prevent users from viewing poll results before voting. (https://vborg.vbsupport.ru/showthread.php?t=140887)

Pyrix 03-01-2007 10:00 PM

Prevent users from viewing poll results before voting.
 
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

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

Quote:

Originally Posted by bigsbydapicka (Post 1201242)
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

Quote:

Originally Posted by Bill Thebert (Post 1422795)
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

Quote:

Originally Posted by IndyWebDesign (Post 1440302)
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

Quote:

Originally Posted by Bill Thebert (Post 1440726)
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

Quote:

Originally Posted by Bill Thebert (Post 1440726)
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

Quote:

Originally Posted by vithorius (Post 1502268)
Does it works in 3.6.8? (and what about 3.7?)


Thank you! :up:

Quote:

Originally Posted by webghey (Post 1531153)
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.


All times are GMT. The time now is 05:03 PM.

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.01220 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete