View Full Version : e-steki Unvote
Lea Verou
03-23-2006, 10:00 PM
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
03-24-2006, 06:09 AM
Hotwheels clicks install
Lea Verou
03-24-2006, 06:16 AM
Tell me how it goes :)
hotwheels
03-24-2006, 07:42 AM
Its installed and working perfectly...........thanks so much for this addition....
projectego
03-24-2006, 08:20 AM
Good idea, should be very handy. :)
Odysseus
03-24-2006, 09:29 AM
Ah, that sounds good.
Installed & thank you!
Thanks Michelle .. useful .. clicked install.
MrZeropage
03-24-2006, 11:10 AM
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 !
hiiped
03-24-2006, 12:11 PM
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
03-24-2006, 01:01 PM
I am planning to add options to it, this is a quite basic version that I put together in about half an hour :)
AdminNation
03-24-2006, 02:12 PM
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
03-24-2006, 03:22 PM
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
03-24-2006, 04:37 PM
*clicks install* this should be a standard vB option. great work!
Lea Verou
03-25-2006, 01:20 AM
So suggest features :)
1. Vote change only allowed within X hours
2. ...?
Barakat
03-25-2006, 01:25 PM
great man . installed
Lea Verou
03-29-2006, 06:27 AM
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
03-29-2006, 06:28 AM
I will not remove the attachment in case someone else fixes it and shares the solution...
Exitilus
03-29-2006, 08:19 PM
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:
akanevsky
04-09-2006, 04:32 PM
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.
akanevsky
04-09-2006, 04:57 PM
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
04-09-2006, 07:56 PM
Awesome Thanks Psionic!!!
Lea Verou
04-10-2006, 05:57 AM
Woah thanks Psionic!! :D
Psionic Rocks!
does work with Multple Vote?
akanevsky
04-10-2006, 10:55 AM
Multiple Vote - no. Only single vote. But this can be adjusted. :)
Lea Verou
04-10-2006, 11:00 AM
It will cause the same problem with multiple votes? :(
akanevsky
04-10-2006, 11:27 AM
It will only decrease the very first of the votes. However, the fix is easy once again, I'll post it today. :)
akanevsky
04-10-2006, 02:00 PM
Is it ok if I add some more features to this hack? (since you are not coding for a month)
Lea Verou
04-10-2006, 04:41 PM
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
04-10-2006, 09:36 PM
Thank you Michelle :cool:
This is great!:D
Install
akanevsky
04-10-2006, 10:28 PM
Ok, I'll see whether I implement my own suggestion or not, but for now - here is a fix (once again).
Ronin Storm
04-11-2006, 04:17 PM
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.
Allan
04-13-2006, 07:42 PM
This hack should be to install of origin in the next version of vBulletin :) (team vb.com ???)
Click Install ;)
akanevsky
04-13-2006, 07:45 PM
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
04-13-2006, 08:00 PM
What feature did you add Psionic? I am asking to decide whether I'll upgrade it on my board now or later :)
akanevsky
04-13-2006, 08:03 PM
I only fixed the bugs, did not add any features .. yet. :)
Boofo
04-28-2006, 10:17 AM
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? ;)
Snake
04-28-2006, 01:05 PM
Very nice idea!
Lea Verou
04-28-2006, 01:38 PM
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. :)
akanevsky
04-29-2006, 01:14 AM
Sorry for not making the updates as I offered, haven't had time to. :(
Lea Verou
04-29-2006, 01:46 AM
Sorry for not making the updates as I offered, haven't had time to. :(
Neither had I :(
DWard
05-11-2006, 02:41 PM
Very useful.
bada_bing
05-12-2006, 12:30 PM
excellant hack thank you both of you..
bada_bing
05-24-2006, 06:37 PM
I had a question are both Psionic Vision fixed in the zip download or do I need to get them from his post replies?
SeanS
09-12-2006, 11:28 PM
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
SeanS
09-12-2006, 11:54 PM
I'm an idiot, needed to use the "Plugins and Product" | "Manage Products" screens. Thanks for a great addition.
Exitilus
09-13-2006, 12:42 AM
Use the XML from this post
https://vborg.vbsupport.ru/showpost.php?p=946391&postcount=31
Barteh
09-16-2006, 09:31 AM
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
10-08-2006, 05:53 AM
Great stuff - thanx for sharing /me CLICKS INSTALL
Jacquii
chrisvonc
10-11-2006, 06:23 PM
Nice, thank you! A very welcome mod! SHould be a standard option.
Mellow
10-18-2006, 12:14 PM
This is great... this simple fix make VB complete in my opinion.. again, Thanks!
Guest210212002
10-18-2006, 01:47 PM
/me clicks install
Barteh
10-29-2006, 11:17 PM
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?
deeoo
12-10-2006, 11:47 AM
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.
deeoo
12-11-2006, 07:13 AM
Found it! What you should do is open showthread.php and poll.php and look for this:
if ($nopermission)
{
$pollstatus = $vbphrase['you_may_not_vote_on_this_poll'];
}
else if ($showresults)
{
$pollstatus = $vbphrase['this_poll_is_closed'];
}
else if ($uservoted)
{
$pollstatus = $vbphrase['you_have_already_voted_on_this_poll'];
}
and replace it with this:
$unvote = false;
if ($nopermission)
{
$pollstatus = $vbphrase['you_may_not_vote_on_this_poll'];
$unvote = false;
}
else if ($showresults)
{
$pollstatus = $vbphrase['this_poll_is_closed'];
$unvote = false;
}
else if ($uservoted)
{
$pollstatus = $vbphrase['you_have_already_voted_on_this_poll'];
$unvote = true;
}
Then, in the template pollresults_table you look for:
$pollstatus
and ADD behind it:
<if condition="$unvote"> | <a href="poll.php?$session[sessionurl]do=unvote&pollid=$pollinfo[pollid]">$vbphrase[unvote_unvote]</a></if>
adwade
03-21-2007, 12:11 AM
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
04-01-2007, 10:27 PM
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
04-02-2007, 01:19 AM
Use Psionics
dcpaq2xx
04-02-2007, 01:22 AM
Use Psionics
Ok, but why and what is the difference between the two?
Doug
Exitilus
04-02-2007, 02:54 AM
Psionic tweaked it to work better if I remember. It's been a while.
dcpaq2xx
04-02-2007, 02:57 AM
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
04-02-2007, 03:30 PM
use the product that he posted (most current one) .... then use the instructions in the zip file for the mod.
dcpaq2xx
04-02-2007, 04:03 PM
That "Who" posted, please be more specific. thank you.
Doug
Exitilus
04-02-2007, 07:17 PM
Psionic
dcpaq2xx
04-03-2007, 09:09 AM
Ok, Thank you.
Doug
manofphat
04-19-2008, 12:25 PM
Does this work in 3.6.8 and will it work in 3.7?
Exitilus
04-30-2008, 12:13 AM
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.
aidler
05-17-2008, 09:39 AM
The number of voters isn't updated after you withdraw your vote.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.