vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Unvote in Polls (Free Version) by BOP5 (Change your vote) (https://vborg.vbsupport.ru/showthread.php?t=281071)

BirdOPrey5 04-02-2012 10:00 PM

Unvote in Polls (Free Version) by BOP5 (Change your vote)
 
1 Attachment(s)
Brought to You By BirdOPrey5
www.BirdOPrey5.com


Version 1.1.1

This is a mod that lets users "unvote" from a poll. After unvoting they are free to vote again so it effectively lets them change their vote.

You can specify whether users are able to unvote from closed polls or not. (By default they are not.)

This is the FREE version. It allows all users to "unvote" from all polls in all forums.

The GOLD version is available here: Unvote in Polls GOLD by BOP5

The GOLD version has 3 additional features:
  • Restrict unvoting to specific usergroups
  • Restrict unvoting to specifc forums
  • Basic integration with points mods to reduce points or reputation after a user unvotes

This mod is compatible with all VB 3.8.x and 4.x.x versions released to date. I expect it will work with earlier VB versions as well but have not tested it.

There are several phrases for easy translation. Exact phrase info is in the info.txt file included in the zip.

Please Note:
If the "Unvote" link is "invisible" in your style (and it probably will be) add this code to your additional.css template:

Code:

#bop5unvote_link {color: blue;}
Where the "color" is any valid HTML or color code. Examples:
red, blue, green, #C0C0C0, #00FF00, etc...


Please Mark as Installed if you use this. :)
Donations Always Appreciated :up:

VB 4.0.3 (and other old versions) See This Post: https://vborg.vbsupport.ru/showpost....8&postcount=31

BirdOPrey5 04-03-2012 03:19 PM

Reserved.

ptceuro 04-03-2012 09:30 PM

Thank you BirdOPrey5 !

Installed

edytwinky 04-03-2012 10:47 PM

Where do we go to change the wording unvote to "change vote"

BirdOPrey5 04-03-2012 11:12 PM

They are all phrases and can be edited via Phrase Manager in Admin CP:

From the info.txt file:

Quote:

This mod uses several phrases.

GLOBAL Phrases:
bop5_ unvote - Unvote (used for the actual link)
bop5_ unvote_ title - This will remove your vote(s) in this poll. (Used for the tool-tip on mouse-over of the link)

Front End Redirect Messages:
bop5_ uv_ unvoted - You have successfully unvoted. (Used to show a message after a user unvotes in a poll)

BirdOPrey5 04-04-2012 12:17 PM

Updated version number to 1.1 to match Gold version number. No need to upgrade free version.

Pandemikk 04-04-2012 12:42 PM

Consider adding an option to make polls private or public along with respective ugp.

Funny how features in the JIRA for years now are so simple to create yourself, isn't it?

BirdOPrey5 04-04-2012 05:02 PM

Quote:

Originally Posted by Pandemikk (Post 2316665)
Consider adding an option to make polls private or public along with respective ugp.


Funny how features in the JIRA for years now are so simple to create yourself, isn't it?

You can already make a public poll private by editing the poll- the opposite doesn't work, I assume for privacy reasons.

I was able to make a mod to let admins (or any usergroups) see who voted even in private polls: https://vborg.vbsupport.ru/showthread.php?t=281116

Pandemikk 04-04-2012 05:07 PM

Well you can see who voted in a private poll in the ACP lol. Just food for thought, would be useful to be able to change a private poll to public without running a query.

GKPet 04-05-2012 01:26 PM

Can you add option to give user the ability to only be able to un-vote once per poll?


All times are GMT. The time now is 02: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.01116 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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