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 |
#802
|
||||
|
||||
I've d/led the hack again, re-installed it and set everything up again, but with the same result. This time, I didn't change anything in the lower part of the code and removed all html as well as any special symbols but it still doean't work.
PHP Code:
Oh, I now get the error message: PHP Code:
PHP Code:
|
#803
|
||||
|
||||
Quote:
|
#804
|
||||
|
||||
I didn't change anything in there at all. But ever since I've modified the customized plugin, the origianl one doesn't work either and keeps giving me the same error message. I think I'm giving up on this hack.
|
#805
|
||||
|
||||
That could be why it does not work. If you added code in the upper part of the plugin then you also have to make sure you added the variables in the lower part.
|
#806
|
|||
|
|||
does it work with 3.7???
|
#807
|
||||
|
||||
|
#808
|
|||
|
|||
woohoo!!! thanks
|
#809
|
|||
|
|||
Quote:
been trying to figure out how to do it, but still cant get it. |
#810
|
|||
|
|||
Yeah I can't get question 4 to come out on the email or the PM.
I do the website for a gaming clan so here is what I believe to be the relevant code: Code:
<tr> <td class="alt1" valign="middle"> <b>$question4</b><br /> $explain4</td> <td class="alt1" valign="middle" colspan="2"> <input type="text" size="30" value="$answer4" name="answer4" /></td> </tr> Code:
// Part 1 $vbulletin->input->clean_array_gpc('p', array( 'answer1' => TYPE_STR, 'answer2' => TYPE_STR, 'answer3' => TYPE_STR, 'answer4' => TYPE_STR, 'dropdownanswer1' => TYPE_STR, 'checkboxanswer1_1' => TYPE_STR, 'checkboxanswer1_2' => TYPE_STR, 'vbtextquestion' => TYPE_STR )); // Part 2 $answer1 = $vbulletin->GPC['answer1']; $answer2 = $vbulletin->GPC['answer2']; $answer3 = $vbulletin->GPC['answer3']; $answer4 = $vbulletin->GPC['answer4']; $dropdownanswer1 = $vbulletin->GPC['dropdownanswer1']; $checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1']; $checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2']; $vbtextanswer = $vbulletin->GPC['vbtextanswer']; Code:
//QUESTION 4 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question4 = "What is your Xfire username?"; $explain4 = "Enter your Xfire username."; |
#811
|
||||
|
||||
$answer4 is not a default variable that is included in the hack. Any additional variables that you add you also have to add in the lower part of the plugin.
Look for a code in the lower part of the plugin that looks like this: Code:
if ($answerall == "1") { if ($normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR ($checkboxchoice1_1 AND $checkboxchoice1_2 AND $checkboxchoice1_3) OR $longanswer1 == '') { $errormessage = "$bbuserinfo[username], you need to answer every question!"; eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); exit(); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|