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.


All times are GMT. The time now is 06:43 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.01083 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete