Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Who voted? Details »
Who voted?
Mod Version: 1.00, by Konqueror (Member) Konqueror is offline
Developer Last Online: Dec 2002 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 17
Released: 18 Dec 2001 Last Update: Never Downloads: 5
Not Supported  

Who voted? v1.1b

1.1b:
-----
Important bugfix thanks to kypdurron:
Votes did show up even when the voter chose not to make it public.
Added seperate instructions if you want all votes to be public.

1.1:
----
The hack now also works with multiple choice polls.
Displays a message when no public votes are found.

1.0a:
-----
Important bugfix. Somehow I forgot to include the database changes in the instructions.
If you've already installed version 1.0 please just run this MySQL query:
ALTER TABLE pollvote ADD showvote TINYINT(1) DEFAULT "0" NOT NULL;

1.0:
----
Initial release

This hack was requested at http://www.vbulletin.org/forum/showt...threadid=33239
Basically what this hack does is that it gives voters the option to select if their vote is to be made public. If they select yes, everyone can see what they voted for.
I'm not good at writing descriptions, so just go and have a look here:







Have fun!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 18 Dec 2001, 21:48
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Both me and my members thank you very much! Great hack!
Reply With Quote
  #3  
Old 18 Dec 2001, 22:00
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Real name: Maurice
Thumbs up

Thanks for the great hack Konqueror.
Reply With Quote
  #4  
Old 18 Dec 2001, 22:04
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Excellent!
Reply With Quote
  #5  
Old 19 Dec 2001, 01:00
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
it's great!!

thankz~
Reply With Quote
  #6  
Old 19 Dec 2001, 10:09
Konqueror Konqueror is offline
 
Join Date: Dec 2001
Updated! Please everyone download the new instructions...
Reply With Quote
  #7  
Old 19 Dec 2001, 19:11
phase1 phase1 is offline
 
Join Date: Dec 2001
Problem

When I install this script and try to use it I get this error:
Fatal error: Call to undefined function: updateuserforum() in /hsphere/local/home/phase1/networking.phase1design.com/forums/poll.php on line 43

Anyone have a suggestion on how to fix, or does this script not work with old polls????
Reply With Quote
  #8  
Old 20 Dec 2001, 10:09
Konqueror Konqueror is offline
 
Join Date: Dec 2001
Updated version posted. This should also work for you now, phase1.
Reply With Quote
  #9  
Old 28 Dec 2001, 20:57
kypdurron's Avatar
kypdurron kypdurron is offline
 
Join Date: Dec 2001
Great hack! one problem, however is that it doesn't work correctly.
It is displaying all votes, regardless of whether they are public or not.
I made the following additions to poll.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by kypdurron; 04 Jan 2002 at 19:14.
Reply With Quote
  #10  
Old 29 Dec 2001, 02:57
atrl's Avatar
atrl atrl is offline
 
Join Date: Nov 2001
I cant get the My SQL DB change right can anyone help by showing me a pic of what it should look like, im not sure of all the values? Please Help?
Reply With Quote
  #11  
Old 29 Dec 2001, 03:36
kypdurron's Avatar
kypdurron kypdurron is offline
 
Join Date: Dec 2001
you mean the changes to Mysql DB?
I guess..do the following(prompt in limegreen,type commands in skyblue):

WARNING! TRY AT YOUR OWN RISK!

$mysql (you may have to do mysql -u <userid> -p, then type the admin password)
mysql>connect vbulletin; (or whatever the database is called)
mysql>TABLE pollvote ADD showvote TINYINT(1) DEFAULT "0" NOT NULL;

To verify it worked, do
mysql>select * from pollvote;
you should see something like:
+------------+--------+--------+---------------+--------------+-------------+
| pollvoteid | pollid | userid | votedate | voteoption | showvote |
+------------+--------+--------+----------------+----------+----------+
| 1 | 1 | 1 | 1009029051 | 3 | 0 |
+------------+--------+--------+------------+------------+----------+
mysql>exit;
__________________
Kyp Durron, The DarkSide days.

Last edited by kypdurron; 29 Dec 2001 at 03:44.
Reply With Quote
  #12  
Old 02 Jan 2002, 22:05
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Good hack, Konqueror. And nice catch, kypdurron!

BTW: I think you forgot to modify the "pollresults" template as well...

Last edited by Tommy Boy; 02 Jan 2002 at 23:30.
Reply With Quote
  #13  
Old 12 Jan 2002, 16:09
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Not sure why but if you choose not to make your vote public, it still shows up as if you choose yes...
Reply With Quote
  #14  
Old 12 Jan 2002, 23:55
kypdurron's Avatar
kypdurron kypdurron is offline
 
Join Date: Dec 2001
SirSteve: make the modifications I suggested to fix this.

Basically, I added "AND SHOWVOTE=1" to the two lines shown above.
__________________
Kyp Durron, The DarkSide days.

Last edited by kypdurron; 12 Jan 2002 at 23:58.
Reply With Quote
  #15  
Old 13 Jan 2002, 01:55
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Thanks. That worked. However, look here:

http://www.sirstevesguide.com/vbport...oted&pollid=23

You don't have to be registered to vote so I think it's not showing the text because of that. Can you display the # of guests that votes? Like:

It was OK, but distribution continued to be a problem for me.:
JediTricks master jedi The Eradicator Guests (25 votes)

or something like that.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:32.

Layout Options | Width: Wide Color: