The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Form Hack Details »» | |||||||||||||||||||||||||
Form Hack 4.1 Features: Ever wanted an online form that a user can fill out, which when submitted gets:
Or any combination or all of the above? Well, this is the hack for you! You can use this for:
Or anything you like - this hack is totally customizable via the AdminCP. The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms. Format of the form:
This is customizable via the hook. Also:
INSTALLATION Easy - takes only a few minutes:
Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 4.0: (09/15/2006)
Version 4.1: (04/24/2008)
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Abe1 with rights from Dr Erwin Loh Supporters / CoAuthors Show Your Support
|
Comments |
#1132
|
|||
|
|||
That I don't know, but you might try the programing discussions forum?
|
#1133
|
|||
|
|||
Is there a way to have the dropdown menu selections be a variable? I have a need for a variable length dropdown based on the results of a query so rather than using a drop down for static results like gender, I would like it to be able to return a variable length of options such as all of the members of a particular usergroup.
any ideas? Thanks! |
#1134
|
|||
|
|||
How do I do three drop downs side by side rather than under each other? I want one for Month, Day, year.
If I want the thread title to be the username of the applicant it would be $posttitle = $bbuserinfo ? Also, is there anyway to have the submitted form posted in a section that the user cannot see? I want each application to be submitted to the admin section so we may comment/vote on each one. Is it possible to only allow the person to submit an application once? Lastly, is there a way to automatically reject an application (once it's filled out) if a certain variable is not met (such as age)? |
#1135
|
|||
|
|||
bump, anyone?
|
#1136
|
|||
|
|||
Quote:
Code:
$formtitle $bbuserinfo[username] $question1 $answer1 $question2 $answer2 $question3 $answer3 $question4 $answer4 $dropdownquestion1 $dropdownanswer1 $dropdownquestion2 $dropdownanswer2 $dropdownquestion3 $dropdownanswer3 $dropdownquestion4 $dropdownanswer4 ----------------------------------------------------- $longquestion1 $longanswer1 ------------------------------------------------------ |
#1137
|
|||
|
|||
1.) Make sure each answer is added to the plug-in in the top section.
2.) Make sure each answer is also listed as an option in the form template. (usually as such: <select name="dropdownanswer2">) - you MUST tell the system essentially this: What ever the users pics as their answer to the drop down, that becomes dropdownanswerx. 3.) Make sure each answer is listed in the form answer template. If you have them listed in each, then you should see it showing up. |
#1138
|
|||
|
|||
Quote:
Code:
// Part 1 $vbulletin->input->clean_array_gpc('p', array( //'normalanswer1' => TYPE_STR, //'radioanswer1' => TYPE_STR, //'radioanswer2' => TYPE_STR, //'radioanswer3' => TYPE_STR, //'radioanswer3other' => TYPE_STR, 'answer1' => TYPE_STR, 'answer2' => TYPE_STR, 'dropdownanswer1' => TYPE_STR, 'dropdownanswer2' => TYPE_STR, 'dropdownanswer3' => TYPE_STR, 'dropdownanswer4' => TYPE_STR, 'answer3' => TYPE_STR, 'answer4' => TYPE_STR, //'checkboxanswer1_1' => TYPE_STR, //'checkboxanswer1_2' => TYPE_STR, //'checkboxanswer1_3' => TYPE_STR, 'longanswer1' => TYPE_STR )); // Part 2 //$normalanswer1 = $vbulletin->GPC['normalanswer1']; //$radioanswer1 = $vbulletin->GPC['radioanswer1']; //$radioanswer2 = $vbulletin->GPC['radioanswer2']; //$radioanswer3 = $vbulletin->GPC['radioanswer3']; //$radioanswer3other = $vbulletin->GPC['radioanswer3other']; $answer1 = $vbulletin->GPC['answer1']; $answer2 = $vbulletin->GPC['answer2']; $dropdownanswer1 = $vbulletin->GPC['dropdownanswer1']; $dropdownanswer2 = $vbulletin->GPC['dropdownanswer2']; $dropdownanswer3 = $vbulletin->GPC['dropdownanswer3']; $dropdownanswer4 = $vbulletin->GPC['dropdownanswer4']; $answer3 = $vbulletin->GPC['answer3']; $answer4 = $vbulletin->GPC['answer4']; //$checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1']; //$checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2']; //$checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3']; $longanswer1 = $vbulletin->GPC['longanswer1']; |
#1139
|
|||
|
|||
No, that wouldn't cause the problem.
In your form template, the call for the drop down should look something like this, does it? Code:
<td class="alt1" valign="middle"> <b>$dropdownquestion2</b>: </td> <td class="alt1" valign="middle" colspan="2"> <select name="dropdownanswer2"> <option value="$dropdownchoice2a" <if condition="$dropdownchoice2a == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2a</option> <option value="$dropdownchoice2b" <if condition="$dropdownchoice2b == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2b</option> <option value="$dropdownchoice2c" <if condition="$dropdownchoice2c == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2c</option> </select></td> </tr> |
#1140
|
|||
|
|||
Mine:
Code:
<tr> <td class="alt2" valign="middle"> <b>$dropdownquestion1</b>: </td> <td class="alt2" valign="middle" colspan="2"> <select name="dropdownanswer1"> <option value="$dropdownchoice1a" <if condition="$dropdownchoice1a == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option> <option value="$dropdownchoice1b" <if condition="$dropdownchoice1b == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1b</option> </select></td> </tr> |
#1141
|
|||
|
|||
Quote:
Code:
if ($answerall == "1") { if ($answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $answer4 == '' OR $dropdownanswer1 == '' OR $dropdownanswer2 == '' OR $dropdownanswer3 == '' OR $dropdownanswer4 OR $longanswer1 == '') |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|