PDA

View Full Version : Miscellaneous Hacks - Limit Poll Option Choices


Andreas
10-27-2005, 10:00 PM
<font size="3">Limit Poll Option Choices</font>

Description
This Hack allows a poll creator to specify how many options users can choose to vote on for multiple choice polls.

Details
1 Product XML (6 Plugins, 3 Phrases)
2 Template Edits

History
1.0.0 Initial Version
1.0.1 Packaged with TMS data for vBulletin 3.6, 3.7 and 3.8

Compatibility
This modification is compatible with vBulletin 3.6.X, 3.7.X and 3.8.X

MrNase
10-28-2005, 02:51 PM
Damned.. Too late :(

Andreas
10-28-2005, 02:59 PM
Uh? What do you mean?

MrNase
10-28-2005, 03:18 PM
I made a poll which needed this one week ago :D

Odysseus
10-28-2005, 09:31 PM
Interesting -- I will install this.
Thanks, Andreas.

Gray Matter
11-13-2005, 05:57 PM
Hey! Great modification. :D

You should edit the template thing a little bit though. :)

This:

<div><label for"ip_maxoptions">$vbphrase[max_options_multiple_poll]&nbsp;<input name="maxoptions" id="ip_maxoptions" value="$maxoptions" size="2" /></label>

should become:

<div><label for"ip_maxoptions">$vbphrase[max_options_multiple_poll]&nbsp;<input name="maxoptions" id="ip_maxoptions" value="$maxoptions" size="2" class="bginput" /></label></div>

This way, it will recognize any custom CSS for input fields, as well as close the <div> tag unless there's a reason you didn't close it. :)

Andreas
11-13-2005, 07:42 PM
The reason I didn't close it was simply a copy-paste error ;)
Thanks, will update the instructions.

mtha
11-15-2005, 07:30 PM
:) Great one, Andreas. Will try to see how this neat one work.


I had a quick one for my forum sometime ago, for vB3.0, which just do the same thing. gotta check to see if table conflict :)


--
btw, you didnt fix your instruction (close </div>)

dan35
12-17-2005, 10:20 PM
Would you please make vote count dependent on usergroups?

For instance, vote count of usergroup 1 is worth twice of usergroup 2.

Andreas
01-30-2006, 10:37 PM
btw, you didnt fix your instruction (close </div>)
Yeah, I just noticed that I forgot to do that when I posted a link to this Hack :D

Fixed now.

MorrisMcD
02-12-2006, 02:34 AM
Works great.. coulda used this a few times... Thanks!

Djamil
06-18-2006, 09:35 PM
Hi Andreas,

did you want the percentages show up like this ? It's quite irritating for users that expect "% of all votes for this option" instead of "% of Users that gave this option a vote" like you did it, since most other BB-Software does it the way I described first.

At least it would be nice to have this configurable and as a stock feature of vB :-)

Djamil

RaZor Edge
09-18-2006, 04:32 AM
Note: I have tested this plugin on my 3.6.1 board and it work! :D

dmsride
03-08-2007, 10:00 PM
Works on 3.6.4 wonderfully. This should be included by default. Great hack! Maybe add a template edit for "edit poll" template?

MorbidatDD
04-30-2007, 11:12 AM
Love the mod, it is working great. Is there a way to get this to work with polls that have already been created? Via editpoll or something?

I have a few polls that this mod would work great with and I was wondering how you would go about changing the limit number if the creator decides to raise or lower it.

dartho
05-06-2007, 10:44 AM
How can I have missed this for so long?!?!!

MoMan
05-27-2007, 12:21 AM
Works on 3.6.4 wonderfully. This should be included by default. Great hack! Maybe add a template edit for "edit poll" template?

Yeah, that would be nice (should we just copy in the same edit done to the regular poll templace?). With the current hack, as soon as you edit a multiple-choice poll that has a limited number of options, the limit disappears.

Djamil
11-18-2007, 01:29 PM
Just tested on 3.6.8 Patch Level 2 - works like a charm.

Djamil

Ingress
06-29-2008, 01:12 PM
Just verified it's working on 3.7.2.

Ingress

Deriel
05-08-2009, 06:59 PM
Working in 3.8.2

Guest20210415
12-02-2009, 12:11 PM
After editing the first post of a poll the maximum poll number is gone.

Any fixes on this problem?

mgurain
01-02-2010, 08:25 AM
Hi,
This is useful,
Can you make another hacks:
1. User ability to change his selections after has been submitted (before close of poll).
2. Each option can be selected by only one user.
Thanks,,

taylorpiano
01-13-2010, 06:30 PM
assuming this works with 3.84?
Since polls do not have the option to create categories in one poll, its the only way I can think is to use multiple.

I just placed code into the poll window and on the 4th, 8th, and 12, placed a link to the graphic I created that makes them look like its definitely a separate vote count.

http://www.bytephoto.com/forums/showthread.php?threadid=7053

taylorpiano
01-19-2010, 07:11 AM
Guess what, this does not work. I set my polls for people to only be allowed to choose 4.
One person was allowed to choose 6. I'm sure there could be more that chose beyond 4 but I'm only half way through double checking the results.

taylorpiano
01-23-2010, 06:06 AM
I actually dont think its a good idea to have someone change their mind when it comes to photo contests. Possibly what you are using it for, it may be ok, but for me, not at all :)

piratenmax
05-31-2010, 11:50 AM
Hi,

is there a version for 4.0.3?

Thank you!

Michlerish
06-15-2010, 01:40 AM
I also want to know!

taylorpiano
06-24-2010, 10:29 PM
After editing the first post of a poll the maximum poll number is gone.

Any fixes on this problem?

I'm with Roland. As you can see, on our website, I place code instead of just text for my options. This way the users can click to see a picture large before voting.

http://www.bytephoto.com/forums/showthread.php?threadid=7274

sometimes I mess up while pasting the code and leave out something that I have to fix.
Once I even click on edit poll, even if I don't make modifications and exit out without clicking save, the poll reverts and lets members vote more than 6.

Is there a way I can set it that members have to choose the number I allow?
I don't want members coming in to vote and only vote for say 1 or 2 pictures.
I want them to vote for 6, 1 in each category.

Guest20210415
07-14-2010, 08:06 AM
Any planned update or alternative addon for vb4?

mgurain
07-16-2010, 11:34 PM
This seems what I am looking for,
that is a way to make like a reservation system, where each user may select only one choice "for specific polls only".

Could you make it without manual "Template Edits" ?

Mr GRiM
08-24-2012, 02:30 AM
You can one that works with 4.2 here https://vborg.vbsupport.ru/showthread.php?t=255455