View Full Version : e-steki Unvote
Lea Verou
24 Mar 2006, 08:06
I was surprised that nobody had made a similar hack, so I decided to make it myself as I missed that feature a lot (SMF had it by default). :)
I think it's purpose is quite obvious: It allows a user to withdraw his vote from a poll. Very useful when somebody clicks the wrong choice, when more options are added in a poll or simply when somebody changes his mind! ;)
Installation is very easy. Just import the product XML and make a simple template edit (more detailed instructions in the zip file).
My apologies for the greek lang in the screenshot, my english language is right to left due to the upcoming april fools.
Updates
---------
Bug fixed thanks to Psionic Vision :D
hotwheels
24 Mar 2006, 08:09
Hotwheels clicks install
Lea Verou
24 Mar 2006, 08:16
Tell me how it goes :)
hotwheels
24 Mar 2006, 09:42
Its installed and working perfectly...........thanks so much for this addition....
projectego
24 Mar 2006, 10:20
Good idea, should be very handy. :)
Odysseus
24 Mar 2006, 11:29
Ah, that sounds good.
Installed & thank you!
Thanks Michelle .. useful .. clicked install.
MrZeropage
24 Mar 2006, 13:10
Users should only be able to reverse their vote once, otherwise this could lead into total chaos ;)
Or this option should only be possible within 24h after first vote...
nice idea anyway !
Users should only be able to reverse their vote once, otherwise this could lead into total chaos ;)
Or this option should only be possible within 24h after first vote...
nice idea anyway !
I was just about to suggest similar
admin can set time expire limit: allow to change within 5 minutes ( thats enough time if they made a MISTAKE in voting ) , or 30 minutes, or 1440 minutes
( admin decides how long )
Thanks Michelle for the hack tho
< still installs >
Lea Verou
24 Mar 2006, 15:01
I am planning to add options to it, this is a quite basic version that I put together in about half an hour :)
AdminNation
24 Mar 2006, 16:12
I am planning to add options to it, this is a quite basic version that I put together in about half an hour :)
In terms of those options, could you add settings by forum and usergroup?
COBRAws
24 Mar 2006, 17:22
I am planning to add options to it, this is a quite basic version that I put together in about half an hour :)
It would be great if that admincp option would be placed within the New Postiongs menu under the options panel in the ACP.
Ill click install but ill wait for the "vote change only allowed within X hours"
Thanks!
yinyang
24 Mar 2006, 18:37
*clicks install* this should be a standard vB option. great work!
Lea Verou
25 Mar 2006, 03:20
So suggest features :)
1. Vote change only allowed within X hours
2. ...?
Barakat
25 Mar 2006, 15:25
great man . installed
Lea Verou
29 Mar 2006, 08:27
Warning!!! Important bug found!!!
If somebody unvotes and votes again then the number of votes is incremented by one! I suggest all of you to uninstall until I fix the bug.
My sincere apologies :(
Lea Verou
29 Mar 2006, 08:28
I will not remove the attachment in case someone else fixes it and shares the solution...
Exitilus
29 Mar 2006, 22:19
awkk!!!
Well i hope a fix is found soon ... heh :)
Thanks for the heads up
Warning!!! Important bug found!!!
If somebody unvotes and votes again then the number of votes is incremented by one! I suggest all of you to uninstall until I fix the bug.
My sincere apologies :(
Just wanted to say that :rolleyes:
Psionic Vision
09 Apr 2006, 18:32
Nice hack.
Tip on how to fix the "serious bug":
Using "voteoption" column from "pollvote" table, update the appropriate part of the "votes" column (need to use explode and then implode).
EDIT: Too easy, I'll post a fix in a minute.
Psionic Vision
09 Apr 2006, 18:57
Here we go. Fixed Version Attached. :)
Feature Suggestions:
- Per-Poll Enable / Disable
- Per-Poll Vote Change Time Limit
- Have it Display The Link Here Too: poll.php?do=showresults
Exitilus
09 Apr 2006, 21:56
Awesome Thanks Psionic!!!
Lea Verou
10 Apr 2006, 07:57
Woah thanks Psionic!! :D
Psionic Rocks!
does work with Multple Vote?
Psionic Vision
10 Apr 2006, 12:55
Multiple Vote - no. Only single vote. But this can be adjusted. :)
Lea Verou
10 Apr 2006, 13:00
It will cause the same problem with multiple votes? :(
Psionic Vision
10 Apr 2006, 13:27
It will only decrease the very first of the votes. However, the fix is easy once again, I'll post it today. :)
Psionic Vision
10 Apr 2006, 16:00
Is it ok if I add some more features to this hack? (since you are not coding for a month)
Lea Verou
10 Apr 2006, 18:41
Is it ok if I add some more features to this hack? (since you are not coding for a month)
You are free to do whatever you believe will benefit the community. :)
Nathan2006
10 Apr 2006, 23:36
Thank you Michelle :cool:
This is great!:D
Install
Psionic Vision
11 Apr 2006, 00:28
Ok, I'll see whether I implement my own suggestion or not, but for now - here is a fix (once again).
Ronin Storm
11 Apr 2006, 18:17
Marvelous. I was having an issue with the lack of this feature over this weekend just past.
By the by, Psionic Vision's feature list sounds ideal. :)
Thanks! Installed.
This hack should be to install of origin in the next version of vBulletin :) (team vb.com ???)
Click Install ;)
Psionic Vision
13 Apr 2006, 21:45
This hack should be to install of origin in the next version of vBulletin :) (team vb.com ???)
Click Install ;)
Yes, it def. should.
Lea Verou
13 Apr 2006, 22:00
What feature did you add Psionic? I am asking to decide whether I'll upgrade it on my board now or later :)
Psionic Vision
13 Apr 2006, 22:03
I only fixed the bugs, did not add any features .. yet. :)
Any way to make this so only Admins can use it to change votes for users? And does it work on polls that are there before the install? ;)
Lea Verou
28 Apr 2006, 15:38
Any way to make this so only Admins can use it to change votes for users? And does it work on polls that are there before the install? ;)
Of course there is a way but I have no time to do it :(
Maybe during summer :/
Yes, it works for all polls. :)
Psionic Vision
29 Apr 2006, 03:14
Sorry for not making the updates as I offered, haven't had time to. :(
Lea Verou
29 Apr 2006, 03:46
Sorry for not making the updates as I offered, haven't had time to. :(
Neither had I :(
bada_bing
12 May 2006, 14:30
excellant hack thank you both of you..
bada_bing
24 May 2006, 20:37
I had a question are both Psionic Vision fixed in the zip download or do I need to get them from his post replies?
I'm having no joy trying to import the product-unvote.xml file -- I get an "Invalid File Specified" message on vBulletin 3.6.0. Any suggestions?
ta,
sean
I'm an idiot, needed to use the "Plugins and Product" | "Manage Products" screens. Thanks for a great addition.
Exitilus
13 Sep 2006, 02:42
Use the XML from this post
http://www.vbulletin.org/forum/showpost.php?p=946391&postcount=31
Installed Psionic's fixed version, works like a charm :)
I'm not much of a coder so I humbly await the update that allows multiple vote polls to be 'unvoted' :)
PoetJA-1975
08 Oct 2006, 07:53
Great stuff - thanx for sharing /me CLICKS INSTALL
Jacquii
chrisvonc
11 Oct 2006, 20:23
Nice, thank you! A very welcome mod! SHould be a standard option.
This is great... this simple fix make VB complete in my opinion.. again, Thanks!
Chris-777
18 Oct 2006, 15:47
/me clicks install
I've got a bit of an odd problem with unvote... the 'Withdraw vote' option is not showing up for one of my members. He's running Firefox 2 and tried it under IE as well, so it's probably not a plugin parsing the page and removing that line.
I've added a test account to the same four usergroups that he's in, and for this one 'Withdraw vote' *does* appear in the exact same poll, just like for the standard usergroup - all working fine.
Any suggestions as to where the problem might lie?
Great mod. However, I can still unvote after the poll has been closed. I can't seem to find the 'if-code' to not show the link after it had been closed.
Found it! What you should do is open showthread.php and poll.php and look for this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace it with this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Then, in the template pollresults_table you look for:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and ADD behind it:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
What feature did you add Psionic? I am asking to decide whether I'll upgrade it on my board now or later :)
I just D/L'd and installed the v1.01 zip file into my vB3.64 and everything seems to work fine. Is v1.01 bugfree -or- are we supposed to be D/L'ing one of Psionic Vision's xml files instead and installing it?
Btw, GREAT MOD! Many Thanxx for creating it.
dcpaq2xx
02 Apr 2007, 00:27
Is v1.01 bugfree -or- are we supposed to be D/L'ing one of Psionic Vision's xml files instead and installing it?
Yes what is the difference between this one and Psionic's version?
Which one 'should' we be using?
Thanks
Doug
Exitilus
02 Apr 2007, 03:19
Use Psionics
dcpaq2xx
02 Apr 2007, 03:22
Use Psionics
Ok, but why and what is the difference between the two?
Doug
Exitilus
02 Apr 2007, 04:54
Psionic tweaked it to work better if I remember. It's been a while.
dcpaq2xx
02 Apr 2007, 04:57
Oh I see.
I was just wondering but that link to his file, is there anything else on that post that would be helpful reading about his hack? The link only takes me to that one post, and I cant figure out how to access all the replys on that post.
Doug
Exitilus
02 Apr 2007, 17:30
use the product that he posted (most current one) .... then use the instructions in the zip file for the mod.
dcpaq2xx
02 Apr 2007, 18:03
That "Who" posted, please be more specific. thank you.
Doug
Exitilus
02 Apr 2007, 21:17
Psionic
dcpaq2xx
03 Apr 2007, 11:09
Ok, Thank you.
Doug
manofphat
19 Apr 2008, 14:25
Does this work in 3.6.8 and will it work in 3.7?
Exitilus
30 Apr 2008, 02:13
Using a XML that was posted later on in this Thread, and the standard Template Edit. It seems to work perfectly fine on 3.7. The only thing I didn't verify is what happens when you edit / change aspects of the Poll after someone has voted.
The number of voters isn't updated after you withdraw your vote.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.