vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Easy Form - Choose Prefix (https://vborg.vbsupport.ru/showthread.php?t=276838)

|Jordan| 01-12-2012 07:21 AM

Easy Form - Choose Prefix
 
I'm using Easy Form (vb 3.8 version) and i want users to be able to choose a thread prefix when they fill out a form. As it is now, forms can only be locked to a specific thread prefix (users cant choose).

I've tried adding the thread prefix dropdown code as an additional custom question, but it doesnt display the dropdown.

Code:

<select name="prefixid" id="prefixid" class="bginput">
<option value="">$vbphrase[no_prefix_meta]</option>
$prefix_options
</select>

Anyone know how i can accomplish this?

kh99 01-16-2012 10:49 AM

It doesn't display anything at all? Do you know if $vbphrase[no_prefix_meta] and $prefix_options are actually set to anything?

hpidriver 03-21-2012 03:16 PM

This code should display the dropdown of available prefixes, although for me it doesn't seem to register whatever choice is made...
Quote:

Originally Posted by bananalive (Post 1803542)
You could use custom question for this:

PHP Code:

require_once(DIR '/includes/functions_prefix.php');
$prefix_options fetch_prefix_html($form['forumid'], $q["$formbit[id]"], true);
$answer '<select name="q_' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>'




All times are GMT. The time now is 03:17 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.00931 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete