Back to vBulletin 3.6 Add-ons

Prevent users from viewing poll results before voting.
Mod Version: 1.00, by Pyrix

This modification is in the archives.
vB Version: 3.6.4 Rating: (3 votes - 4.33 average) Installs: 52
Released: 02 Mar 2007 Last Update: 02 Mar 2007 Downloads: 232
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

This modification is archived, downloads are still allowed.

File Type: %1$s product-pyrix_hidepoll.xml (2.5 KB, 273 downloads)


vblts.ru supports vBulletin®, 2022-2025