Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
e-steki Unvote Details »»
e-steki Unvote
Version: 1.01, by Lea Verou Lea Verou is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-23-2006 Last Update: 04-09-2006 Installs: 42
Uses Plugins Template Edits
 
No support by the author.

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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-18-2006, 12:14 PM
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great... this simple fix make VB complete in my opinion.. again, Thanks!
Reply With Quote
  #53  
Old 10-18-2006, 01:47 PM
Guest210212002
Guest
 
Posts: n/a
Default

/me clicks install
Reply With Quote
  #54  
Old 10-29-2006, 11:17 PM
Barteh Barteh is offline
 
Join Date: Aug 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #55  
Old 12-10-2006, 11:47 AM
deeoo deeoo is offline
 
Join Date: Nov 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #56  
Old 12-11-2006, 07:13 AM
deeoo deeoo is offline
 
Join Date: Nov 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it! What you should do is open showthread.php and poll.php and look for this:
Code:
			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:
Code:
			$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:
Code:
$pollstatus
and ADD behind it:
Code:
<if condition="$unvote"> | <a href="poll.php?$session[sessionurl]do=unvote&amp;pollid=$pollinfo[pollid]">$vbphrase[unvote_unvote]</a></if>
Reply With Quote
  #57  
Old 03-21-2007, 12:11 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle View Post
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.
Reply With Quote
  #58  
Old 04-01-2007, 10:27 PM
dcpaq2xx dcpaq2xx is offline
 
Join Date: Nov 2004
Location: Merrillville, Indiana
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adwade View Post
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
Reply With Quote
  #59  
Old 04-02-2007, 01:19 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use Psionics
Reply With Quote
  #60  
Old 04-02-2007, 01:22 AM
dcpaq2xx dcpaq2xx is offline
 
Join Date: Nov 2004
Location: Merrillville, Indiana
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exitilus View Post
Use Psionics
Ok, but why and what is the difference between the two?

Doug
Reply With Quote
  #61  
Old 04-02-2007, 02:54 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Psionic tweaked it to work better if I remember. It's been a while.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:57 AM.


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.04469 seconds
  • Memory Usage 2,307KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete