cuahangso1
21-09-2012, 08:46 AM
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! http://www.vbulletin.org/forum/images/smilies/smile.gif
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 (http://www.vbulletin.org/forum/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
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! http://www.vbulletin.org/forum/images/smilies/smile.gif
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 (http://www.vbulletin.org/forum/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