vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Limit Poll Option Choices (https://vborg.vbsupport.ru/showthread.php?t=99511)

Andreas 10-27-2005 10:00 PM

Limit Poll Option Choices
 
1 Attachment(s)
<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:

Code:

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

Code:

<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

Quote:

Originally Posted by mtha
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.


All times are GMT. The time now is 07:18 PM.

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.01109 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (1)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