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 |
#592
|
|||
|
|||
working thanks!!!
|
#593
|
|||
|
|||
what is the link to the plug in that will let you change where the new post page? So i can use my form.
|
#594
|
||||
|
||||
Hi, thanks for this great hack, it will help immensely as I set up volunteers for various jobs at an upcoming event.
The default form has questions that ask for "email address" and "real name" but email addresses are already in the member logs obviously and one of my custom fields ($post[field5]) has already been set up to request and gather real names upon initial forum registration. So, is there any way for these forms to pull the data from those as the default entry, so the users don't need to type the same answers in again? (If not as a default answer that could be edited, how about a way to include that data in the emailed formresults, sort of like how the "username" is already automatically included?) |
#595
|
||||
|
||||
Quote:
Tralala go back 2 page {18 } of this mod,,, I think what you're asking about my be there... ***************************************** Shanevas2 if U want 2 make changes to your form, goto Admincp { plugin mgr }... from there open your form and U will C code that allows changes and then save it... I hope this helps all |
#596
|
||||
|
||||
Quote:
But I only have 6 pages (100 posts per page,) not 18. Can you please be more specific and tell me what post # to look for? Much appreciated. |
#597
|
||||
|
||||
Also, is there a way (perhaps via a companion add-on) to "force" users to fill this form out? IE: make it come up automatically the next time they login... and they can't do anything else until they complete the questionnaire, or something along those lines...
any tips/suggestions for this much appreciated. |
#598
|
|||
|
|||
Quote:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $formtitle</title> <style> .radio button class { background: #FFFFFF; } </style> </head> <body> $header $navbar <!-- main --> <if condition="$preview"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> Preview </td> </tr> <tr> <td class="alt1"> $preview </td> </tr> </table> </if> <br /> <form name="vbform" action="newthread.php" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>> <input type="hidden" value="$formname" name="do" /> <input type="hidden" value="submit" name="action" /> <input type="hidden" name="posthash" value="$posthash" /> <input type="hidden" name="poststarttime" value="$poststarttime" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3"> $vboptions[bbtitle] - $formtitle </td> </tr> <tr> <td class="panelsurround" align="center" colspan="3"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]"> <fieldset class="fieldset" style="margin:0px"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> $formpurpose </td> </tr> </table> </fieldset> </td> </tr> </table> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$normalquestion1</b> </td> </tr> <tr> <td class="alt2" colspan="3"> <input type="text" size="30" value="$normalanswer1" name="normalanswer1" /> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$radioquestion1</b> </td> </tr><tr> <td><input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a </td> <td><input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b </td> <td> </td> </tr> <tr> <td class="alt2" colspan="3"> <b>$radioquestion2</b> </td></tr><tr> <td><input type="radio" name="radioanswer2" value="$radiochoice2a" <if condition="$radiochoice2a == $radioanswer2">checked="checked"</if> /> $radiochoice2a </td> <td><input type="radio" name="radioanswer2" value="$radiochoice2b" <if condition="$radiochoice2b == $radioanswer2">checked="checked"</if> /> $radiochoice2b </td> <td><input type="radio" name="radioanswer2" value="$radiochoice2c" <if condition="$radiochoice2c == $radioanswer2">checked="checked"</if> /> $radiochoice2c </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$radioquestion3</b> </td> </tr><tr> <td><input type="radio" name="radioanswer3" value="$radiochoice3a" <if condition="$radiochoice3a == $radioanswer3">checked="checked"</if> /> $radiochoice3a </td> <td><input type="radio" name="radioanswer3" value="$radiochoice3b" <if condition="$radiochoice3b == $radioanswer3">checked="checked"</if> /> $radiochoice3b </td> <td>If $radiochoice3a, please explain: <input type="text" value="$radioanswer3other" name="radioanswer3other" /></td> </tr> <tr> <td class="alt1" valign="middle"> <b>Username</b>:<br /> Your Username.</td> <td class="alt1" valign="middle" colspan="2"> <b>$bbuserinfo[username]</b></td> </tr> <tr> <td class="alt2" valign="middle"> <b>$question1</b>:<br /> $explain1</td> <td class="alt2" valign="middle" colspan="2"> <input type="text" size="30" value="$answer1" name="answer1" /></td> </tr> <tr> <td class="alt1" valign="middle"> <b>$question2</b>:<br /> $explain2</td> <td class="alt1" valign="middle" colspan="2"> <input type="text" size="30" value="$answer2" name="answer2" /></td> </tr> <tr> <td class="alt2" valign="middle"> <b>$question3</b>:<br /> $explain3</td> <td class="alt2" valign="middle" colspan="2"> <input type="text" size="30" value="$answer3" name="answer3" /></td> </tr> <tr> <td class="alt1" valign="middle"> <b>$dropdownquestion1</b>: </td> <td class="alt1" 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> <option value="$dropdownchoice1c" <if condition="$dropdownchoice1c == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1c</option> </select></td> </tr> <tr> <td class="alt2" valign="middle"> <b>$checkboxquestion1</b>: </td> <td class="alt2" valign="middle" colspan="2"> <input type="checkbox" name="checkboxanswer1_1" value="$checkboxchoice1_1" <if condition="$checkboxchoice1_1 == $checkboxanswer1_1">checked="checked"</if> /> $checkboxchoice1_1<br /> <input type="checkbox" name="checkboxanswer1_2" value="$checkboxchoice1_2" <if condition="$checkboxchoice1_2 == $checkboxanswer1_2">checked="checked"</if> /> $checkboxchoice1_2<br /> <input type="checkbox" name="checkboxanswer1_3" value="$checkboxchoice1_3" <if condition="$checkboxchoice1_3 == $checkboxanswer1_3">checked="checked"</if> /> $checkboxchoice1_3 </td> </tr> <tr> <td class="alt1" valign="middle"> <b>$longquestion1</b><br /> $longexplain1</td> <td class="alt1" valign="middle" colspan="2"> <textarea rows="20" cols="70" name="longanswer1">$longanswer1</textarea> </td> </tr> <tr> <td class="alt2" valign="middle" colspan="3"> <b>$vbtextquestion</b><br /> $vbtextexplain <div align="center"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> $messagearea </td> </tr> </table> </div> </td> </tr> <if condition="$attachmentoption"> <tr> <td class="alt1" colspan="3" align="center"> <div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div> </td> </tr> </if> <tr> <td valign="top" colspan="3"> <p align="center"> <input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" /> <input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" /> <input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" /> </p></td></tr> </table> </form> $footer </body> </html> |
#599
|
|||
|
|||
No i am looking for the plug in to change what page the new thread button goes to. EX. you click new thread and my form comes up.
|
#600
|
|||
|
|||
Quote:
|
#601
|
||||
|
||||
Quote:
Sure U should be able 2 do all of that, by making a few modifications using conditionals... Check some of the conditional mods here... Do a search on conditionals here and over at vBulletin.com... I hope that helps U ********************************************* SuthernKumfort Im working on your form and I have a Q???... bkgd color? ********************************************* shanevas2 im still not sure what you're asking 4, but maybe its this...>>> http://www.yoursite/forum/newthread.php?do=name of your form here ??? :erm: |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|