View Full Version : Who Voted? -- Popup Option Version
TWTCommish
02-14-2002, 10:00 PM
This hack is not completely original, but not stolen, either. I decided to write it not long ago, thanks to the Who voted? (http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=123) written by Konqueror. I decided I wanted the same sort of functionality, but with less queries, and in a different format. I love making numbers on my board clickable links that bring up popup windows full of useful information. So, in hopes that someone else might want this stuff in the same format, I'm posting it here.
WHAT DOES IT DO?
Simply: when viewing poll results, each vote total (for each option) will be clickable. Clicking on it will bring up a popup window similar to the Who Posted? window containing all of the users who voted for that option. If the number is 0, of course, a "No votes found" message will be displayed.
HOW DO I INSTALL IT?
I've attached the instructions.
GOT A DEMO?
Sure: http://www.movieforums.net/showthread.php?threadid=1810
Enjoy. :) I dunno if I've tested this properly, so let me know if you have any problems.
TheComputerGuy
02-15-2002, 11:42 PM
Thanks
web+++++forums.com will have it soon
Great hack and I like it!
Tim Wheatley
02-16-2002, 01:28 AM
"That's all. You scrolled down here for nothing." LOL
TWTCommish
02-16-2002, 01:35 AM
LOL. We geeks could use a little more humor, other than "C++" :D
TheComputerGuy
02-16-2002, 02:57 AM
<a href="http://www.web+++++forums.com/showthread.php?s=&threadid=89" target="_blank">http://www.web+++++forums.com/showth...s=&threadid=89</a>
I am getting an error
TWTCommish
02-16-2002, 03:00 AM
D'oh. My bad. Add the below code to your headinclude template:
<script language="JavaScript">
function whovoted(pollid, optionid) { window.open
("poll.php?s=$session[sessionhash]&action=whovoted&pollid="+pollid+"&optionid="+optionid,
"whovoted", "toolbar=no,scrollbars=yes,resizable=no,width=240,h eight=300, top=50, left=50"); }
</script>
I'll go update the archive file. :) Thanks.
Thanks TWTCommish
I have now another great hack installed you provided us.
This way we have a honest poll system, where my members can see that the mods don't cheat and if they do I can retrace it a little easier ;)
TWTCommish
03-04-2002, 05:34 AM
Yeah, I kinda like the fact that you hold people "accountable" for their votes. :D
is there a possibility for the voting user, to be invisible, if he/she doesn't like to be shown?
TWTCommish
03-04-2002, 11:31 AM
I suppose...but I'm not sure how this option would be presented/accomplished/whatever...and it'd probably require some sort of major reworking of the system. What'd you have in mind?
Smoothie
04-28-2002, 09:22 PM
Excellent hack. Installed today. Nice job!
o0oKARo0o
05-12-2002, 03:48 AM
Really good one, thanks for it :laugh:
josh929
06-04-2002, 08:13 PM
awesome hack
Heineken77
07-16-2002, 08:16 PM
Sweet hack! :) Is there any way that I can make those who voted viewable only to the Admin user group?
yxboom
04-29-2003, 08:51 PM
03-04-02 at 06:31 AM TWTCommish said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=225677#post225677)
I suppose...but I'm not sure how this option would be presented/accomplished/whatever...and it'd probably require some sort of major reworking of the system. What'd you have in mind?
I have the same request but more along the lines of having 2 buttons you can check next to the poll answer. You can push the poll button on the left and it will show up as voted or you can push the button on the right if you prefer to remain anynomous. So when you click on the Totals it only show those who elected to have their vote visible.
Intex
05-20-2003, 08:08 PM
Sweet hack. Installed - works great :).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.