Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Poll Write-In & Change Vote Hack Details »
Poll Write-In & Change Vote Hack
Mod Version: 1.5, by TomasDR (Member) TomasDR is offline
Developer Last Online: Oct 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (13 votes - 4.69 average) Installs: 94
Released: 24 Mar 2007 Last Update: 15 Dec 2007 Downloads: 310
Supported DB Changes Uses Plugins Template Edits  

Poll Write-In Vote Hack

This is only for 3.6.x, you can find my 3.7.x version here.

About this hack:
I developed this hack for my board after several polls were made by members that were short on options, especially since the poll creators are sometimes biased with the poll options. I am sure you have seen the same on your boards.

This hack allows the poll creator to allow "Write-In Votes" to a poll (single or multiple). I also added the feature to change your vote if the poll is a "write-in vote" poll, you can also allow vote changes on all polls through an admin option (ver 1.2+). This will allow a user to change their vote if they discover a better poll option written in by another user, or if they want to add one or more write-in votes to a multiple choice poll.

An admin/moderator/etc. who has permission to edit a poll can change a poll to make it a write-in poll or not. (ver 1.3+)

The cancel/change vote feature works with single and multiple choice polls.

This is my first hack but please don't let that scare you away, this is a very basic hack.

Permission Overview:

There are very few permission checks with my hack;
  • If you can create a poll, you can make it a write-in vote poll.
  • If you can vote on the poll, you can add a write-in vote to a write-in poll.
  • If the poll is closed you cannot change your vote or add a write-in vote of course.
  • You cannot add a write-in vote to a non write-in vote poll.
Permission Settings:

Located in vBulletin Options "Poll and Thread Rating Options" section.
  • Allow users to change their votes in ANY poll. (Default NO)
  • Show the username after a write-in vote. (Default Yes)
    * If NO a log entry is written to the moderator log as per a request, see pic below
Install Info:
  • Files edited: 0
  • Templates edited: 3
  • Files to install: 1
  • Time to install: 5 minutes max
Install Procedure:
1. Install the Product (Download the XML file)
2. Edit Template polloptions_table
FIND

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ADD ABOVE

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3. Edit Template pollresults_table
FIND

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4. Edit Template editpoll
FIND

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5. Enjoy!
Version Info:


Version 1.0:
  • Initial release of the hack
Version 1.1:
  • Added a requested feature (please see screenshot) so now the username is recorded after a write-in vote.
  • Added an error/permission check for max poll options that is set in vBulletin options by the admin so a write-in poll cannot exceed that number.
  • Added two new error messages reflecting the max poll option error & a specialized error message for entering a blank write-in vote.
Version 1.2:
  • Added the feature (suggested by bchertov) to be able to allow your users to change their vote in all polls. This is now a vBulletin Option located in the Setting Group Poll and Thread Rating Options the option is Allow Users to Change Their Votes in ALL Polls as a Yes/No, if set for 'No' they will still be able to change their vote in Write-in polls as before. NOTE: The template edit has changed for the template pollresults_table with this version!
  • Fixed the bug reported by A_V concerning poll max options being set for zero/unlimited.
  • Added the Write-in permission check along with the vB option for allowing users to change votes in the plugin Change write-in poll vote.
Version 1.3:
  • Added the requested feature to allow changing the Write-In option when Editing Polls. Note: There is an additional template (editpoll) to edit with this new version.
Version 1.4:
  • Added the ability to turn off the username added after a write-in vote.
  • Added logging to the moderator log if the username addition is turned off per a request.
Version 1.5:
  • Found a bug if you allow the "Unregistered / Not Logged In" group to vote in polls. If they change their vote they will change all guest's votes. You only need to upgrade if you allow Unregistered users the ability to vote in polls.
Version 3.6.8:
vBulletin 3.6.8 has the ability to filter by product in the moderator log. This is the only difference between the xml files.

Please post your comments or suggestions for this hack. I will read ALL posts.

PLEASE CLICK INSTALL!
(You will get an email when a new version is released.)


Pictures:
  1. Showing the "Write-In" checkbox under Miscellaneous Options when creating a poll.
  2. Showing the poll with the link to add a write-in vote.
  3. Showing the screen to add a write-in vote.
  4. Showing the new poll with the new write-in vote and the link to Change your vote.
  5. Showing the new feature (ver 1.1) where the username is placed after the write-in vote.
  6. Showing the moderator log entry.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	chkbox.jpg
Views:	903
Size:	13.5 KB
ID:	62232   Click image for larger version

Name:	poll.jpg
Views:	853
Size:	16.3 KB
ID:	62233   Click image for larger version

Name:	addwritein.jpg
Views:	790
Size:	17.7 KB
ID:	62234   Click image for larger version

Name:	change.jpg
Views:	876
Size:	15.5 KB
ID:	62235  

Click image for larger version

Name:	uname.jpg
Views:	747
Size:	21.1 KB
ID:	62274   Click image for larger version

Name:	modlog.jpg
Views:	266
Size:	19.1 KB
ID:	72655  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #61  
Old 07 Jan 2008, 16:25
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Originally Posted by Atwal View Post
does this work with 3.7.0 beta 3??
I have no time to install 3.7, even on a test board, until it's out of beta.

I will be upgrading to 3.7 probably a week or two after it goes live, and will update (if needed) the addon then.
Reply With Quote
  #62  
Old 20 Jan 2008, 05:24
RayStorm RayStorm is offline
 
Join Date: Apr 2006
Hi,

I found a bug (I have 3.6.4 ver)...

If poll is closed and than re-open, "Add Write-In Vote" disappears forever...

Should be nice too, give the possibility to add "Add Write-In Vote" option to a poll that is not created with "Add Write-In Vote" mode.

P.S. Nice mod

Last edited by RayStorm; 20 Jan 2008 at 05:29.
Reply With Quote
  #63  
Old 29 Jan 2008, 00:11
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Originally Posted by RayStorm View Post
Hi,

I found a bug (I have 3.6.4 ver)...

If poll is closed and than re-open, "Add Write-In Vote" disappears forever...

Should be nice too, give the possibility to add "Add Write-In Vote" option to a poll that is not created with "Add Write-In Vote" mode.

P.S. Nice mod
Did you edit the temple "EditPoll"? If you don't edit the template it would change it to a non write-in poll when closing/opening. (note: Make sure you see the checkbox "Allow Write-in votes" when editing a poll, which also will solve the ability to change it to a write-in poll)
Reply With Quote
  #64  
Old 30 Jan 2008, 00:04
RayStorm RayStorm is offline
 
Join Date: Apr 2006
Thanks, I'll try...

Byez
Reply With Quote
  #65  
Old 31 Jan 2008, 17:15
Atwal Atwal is offline
 
Join Date: Feb 2007
will it work with 3.7.0 Beta 4?
Reply With Quote
  #66  
Old 01 Feb 2008, 08:45
dartho dartho is offline
 
Join Date: Sep 2005
Just did a quick test, and it does work under 3.7B4
Reply With Quote
  #67  
Old 01 Feb 2008, 22:15
edytwinky edytwinky is offline
 
Join Date: Sep 2007
Nice mod!!
Reply With Quote
  #68  
Old 23 May 2008, 22:06
Ark del KAOS's Avatar
Ark del KAOS Ark del KAOS is offline
 
Join Date: Sep 2002
For people with the 3.7 or 3.6.10, and the problem of the security token with this mod:
Go to the writeinvote template, seek for
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(its at the beginning), and under it paste
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's all! ^ ^
Reply With Quote
  #69  
Old 10 Jun 2008, 05:06
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Just what I've been looking for!

Seems to be working in vB 3.7.1 PL1
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #70  
Old 10 Jun 2008, 05:23
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
How would I change it so the "Add Write-In Vote" would be a button and not a text link?
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #71  
Old 12 Jun 2008, 09:20
shlomot's Avatar
shlomot shlomot is offline
 
Join Date: Apr 2007
Real name: Shlomo Tommer
Dear TomasDR, can you give us an approximate time frame for the 3.7.x release?

Members push hard Thanks a lot.
__________________
Cheers to all,
Shlomo Tommer

tsConnections | Celebrities Galore
Reply With Quote
  #72  
Old 12 Jun 2008, 23:55
dartho dartho is offline
 
Join Date: Sep 2005
This works under 3.7.1 for me - just need to make the change in post 68 above
Reply With Quote
  #73  
Old 16 Jun 2008, 01:26
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
We've found an issue that might not be good.

What if a user adds a vote to a poll that really isn't suitable?
How can we remove one of the votes?

N/M - Admins can change/remove votes.
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #74  
Old 23 Jun 2008, 13:35
trilogy33 trilogy33 is offline
 
Join Date: Jan 2008
Without installing the hack, is there a quick way of manually editing the database?
A moderator has written to me explaining that they've added an extra option to an open poll, but would like to adjust their vote to the new option.

Is this quite easy to do in the database and if so, what would I be looking to change?

Many thanks

EDIT: No matter now.

Last edited by trilogy33; 27 Jun 2008 at 19:54. Reason: ignore
Reply With Quote
  #75  
Old 26 Jul 2008, 00:40
EricPSF's Avatar
EricPSF EricPSF is offline
 
Join Date: Jan 2007
Hi,

Can it be use for vB 3.7.2?

Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:39.

Layout Options | Width: Wide Color: