vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   e-steki Unvote (https://vborg.vbsupport.ru/showthread.php?t=111228)

Lea Verou 03-23-2006 10:00 PM

e-steki Unvote
 
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!

TTG 03-24-2006 10:33 AM

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

Quote:

Originally Posted by MrZeropage
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

Quote:

Originally Posted by Michelle
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

Quote:

Originally Posted by Michelle
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

Ziki 04-02-2006 04:08 PM

Quote:

Originally Posted by Michelle
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

IrPr 04-10-2006 09:08 AM

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

Quote:

Originally Posted by Psionic Vision
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

Quote:

Originally Posted by Allan
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

Quote:

Originally Posted by Boofo
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. :(


All times are GMT. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01405 seconds
  • Memory Usage 1,786KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete