![]() |
Voter Turnout
This hack displays, as a percentage, the voter turnout in a poll. 0% means nobody participated, 100% means everybody voted. It assumes that only registered users can vote.
This hack adds a single query to showthread for threads where the poll results are being shown and there is at least one vote. |
Screenshot:
|
Very nice :)
|
very nice indeed. Will install. :D
PHP Code:
|
Interesting hack -- still thinking whether I should use it but nice none the less
|
Quote:
It's in my mostly stock 2.3.0 showthread.php. |
good work filburt1, seems that not all Evil Shelled Dictator relese crap hacks, anyway, good work.
*marzas installs this great hack |
Well I searched in my 2.3.0 vbtesting software and it's not even there either. =S Oh well. =/
|
Filburt1, I show 11.76% on 2 polls and one of them has 5 voters in it and the other one has 4. Also, you need to clarify that the code goes after the first instance of if ($showresults OR $uservoted OR $cantvote) {. There are 2 of them.
|
Nice hack
:nervous: |
All times are GMT. The time now is 11:17 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|