The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Poll Write-In & Change Vote Hack Details »» | |||||||||||||||||||||||||
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;
Located in vBulletin Options "Poll and Thread Rating Options" section.
1. Install the Product (Download the XML file) 2. Edit Template polloptions_tableFIND 3. Edit Template pollresults_tableFIND 4. Edit Template editpollFIND REPLACE WITH
5. Enjoy!Version Info: Version 1.0:
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:
Show Your Support
|
Comments |
#12
|
|||
|
|||
I couldn't find the two (2) poll templates to edit....
|
#13
|
|||
|
|||
They are both under the "category" Poll Templates << in your style manager.
|
#14
|
|||
|
|||
What about my suggestion on seeing who added the option. I think it could get out of hand with people adding random crap if they were anonymous. Is is possible? Thanks for the mod, I love it.
|
#15
|
|||
|
|||
Quote:
Let me look into adding something like this, if this would work for you:
|
#16
|
|||
|
|||
That's exactly what I'm looking for. Thanks
|
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
Quote:
Thanks |
#19
|
|||
|
|||
Thanks! I'm going to donate today or tomorrow. I appreciate the work.
|
#20
|
||||
|
||||
Does this hack allow users to change their votes on any poll (if the correct options are selected)? If so that would be fabulous! It would be good if vote-change feature could selected without the write in option.
Strongly considering installing! |
#21
|
|||
|
|||
Quote:
In the template pollresults_table Code:
<td class="tfoot" colspan="4" align="center"><span class="smallfont"><if condition="$show['multiple']">$vbphrase[multiple_choice_poll] </if>$vbphrase[voters]: <strong>$pollinfo[numbervotes]</strong>. $pollstatus<if condition="$pollinfo[writein]"><if condition="$uservoted"> <a href="poll.php?$session[sessionurl]do=changevote&pollid=$pollinfo[pollid]">$vbphrase[change_vote]</a></if></if></span></td> FIND Code:
//check if poll is closed if (!$pollinfo['active'] OR !$threadinfo['open'] OR ($pollinfo['dateline'] + ($pollinfo['timeout'] * 86400) < TIMENOW AND $pollinfo['timeout'] != 0)) { //poll closed eval(standard_error(fetch_error('pollclosed'))); } Code:
if (!$pollinfo['writein']) { print_no_permission(); } The permission check is definitely there for adding write ins so again no one can add a write-in vote to a non-write-in poll. Finally I may consider making the change vote an option (for write-in's only or for all polls). |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|