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 |
#522
|
|||
|
|||
I don't claim to be a PHP wizard but why does it not work for me to change this code:
Code:
$posttitle = "$formtitle"; Code:
$posttitle = "$normalquestion1"; |
#523
|
|||
|
|||
Here's what I use:
Code:
$formtitle = "$normalanswer1 - $answer1 - $dropdownanswer1 $answer3, $dropdownanswer2"; $posttitle = "$formtitle"; OHH... duh. Look at your code again, you're using $normalquestion1 instead of $normalanswer1. |
#524
|
|||
|
|||
You my friend are my hero. Can't believe I didn't notice that. All is good now.
|
#525
|
|||
|
|||
So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers.
Any suggestions? I've been unable to get this working, and have worked on it for at least a month now |
#526
|
|||
|
|||
I'm using this as a glorified contact-us. I noticed with 3.6.5 (patched) that guest forms are NOT being posted to the forum. If a member uses the forum, it works fine. If a guest uses it, it looks like it goes through ok but nothing shows up. Any ideas?
-vissa |
#527
|
||||
|
||||
Is there a way to have more columns and a much larger selection?
|
#528
|
||||
|
||||
Quote:
Good luck +++++++++++++++++++++++++++++++++++++++++++++++ StudMuffin21 So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers. +++++++++++++++++++++++++++++++++++++++++++++++ Upload your form in txt format and I will C if I can fix your issue...? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pbmansion,,, U can make your form a colossus monster if U want, I have several forms that have 30 questions and many more that are Godzilla's... There's no limit, the problem is making them work properly and keeping the rif raf scum, scabs, spammers and leechs out... |
#529
|
|||
|
|||
Deepdog009
Here is the information you requested. I've gone over it many times, but can't find what I'm doing wrong. Any assistance is appreciated. I uploaded the files in txt format instead of posting them on the forum to save space. |
#530
|
|||
|
|||
Without looking too far into it, I'd say there is a slim chance that your form templates are causing it.
You most likely didn't add $answers 4-8 and $longanswers 2-3 to the VARIABLES section in your Form plugin. For you, that section should look like: Code:
// Part 1 $vbulletin->input->clean_array_gpc('p', array( 'answer1' => TYPE_STR, 'answer2' => TYPE_STR, 'answer3' => TYPE_STR, 'answer4' => TYPE_STR, 'answer5' => TYPE_STR, 'answer6' => TYPE_STR, 'answer7' => TYPE_STR, 'answer8' => TYPE_STR, 'dropdownanswer1' => TYPE_STR, 'longanswer1' => TYPE_STR 'longanswer2' => TYPE_STR 'longanswer3' => TYPE_STR )); // Part 2 $answer1 = $vbulletin->GPC['answer1']; $answer2 = $vbulletin->GPC['answer2']; $answer3 = $vbulletin->GPC['answer3']; $answer4 = $vbulletin->GPC['answer4']; $answer5 = $vbulletin->GPC['answer5']; $answer6 = $vbulletin->GPC['answer6']; $answer7 = $vbulletin->GPC['answer7']; $answer8 = $vbulletin->GPC['answer8']; $dropdownanswer1 = $vbulletin->GPC['dropdownanswer1']; $longanswer1 = $vbulletin->GPC['longanswer1']; $longanswer2 = $vbulletin->GPC['longanswer2']; $longanswer3 = $vbulletin->GPC['longanswer3']; |
#531
|
|||
|
|||
Quote:
Erm... Apparently you deleted your post.. haha. -------------------------------------------------- Edit: Does this form handle all errors correctly? For instance, when trying to submit a form where the Post Title is longer than the limit set in vBulletin Options, it gives my users "Invalid Forum Specified", instead of returning an error saying "Thread Title is too long" or whatever. I'm pretty sure it's not any of the modifications to the Form Hack that I've done, since I looked through the plugin code and can't find any references to the post title length. Edit2: Well, the "fix" is simple enough. I just had to put a maxlength="" on all the input fields that add up to make my thread title. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|