Version: 4.1, by Abe1
Developer Last Online: Jun 2010
Category: New Posting Features -
Version: 3.6.x
Rating:
Released: 09-14-2006
Last Update: 04-23-2008
Installs: 1216
Uses Plugins Template Edits
No support by the author.
Form Hack 4.1
Features:
Ever wanted an online form that a user can fill out, which when submitted gets:
Posted into a new thread in a forum of your choice
Create a new poll in the new thread with options of your choice
Posted as a reply in an existing thread of your choice
PMed to you or someone else
Emailed to an email address you specify
Choose to redirect to the post, thread or forum, or a custom thank you message
Choose to redirect to edit post
See a preview before they submit
Or any combination or all of the above?
Well, this is the hack for you!
You can use this for:
Moderator Applications
Quiz Submit Form which gets PMed to a moderator
Contact Form that goes to PM, email or thread
Guests to apply to be members
Report a Moderator form that goes as a PM to you
Guests can PM you for whatever reason
Order form to buy things
Donation form
News or Articles submissions that can go straight to a thread
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:
One main input question
3 Radio buttons Choice questions
3 Normal text input questions
1 Drop down menu
3 Check boxes
1 Long answer question
1 VB message editor text box question
Upload attachments
This is customizable via the hook.
Also:
You can set the usergroups you want access to this form.
Depending on your forum permissions, if the new thread is in a public forum, members can reply to it. This hack allows a form to submit the new thread or post wherever you want it to go.
Force the user to answer all questions.
INSTALLATION Easy - takes only a few minutes:
Import the XML into products. (admin cp -> Plug-in System -> Manage Products -> Add/Import Product)
Edit the main plug-in - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
To get to the form, go to: /newthread.php?do=form (change "form" to the name of your form if you have few)
Done!
Use this hack to make as many forms as you like!
Enjoy!
Updates:
Version 4.0: (09/15/2006)
Ported over for vb3.6
Send to multiple emails.
Send multiple PMs.
Parse emails for BBCode
And finally, ATTACHMENTS!
Version 4.1: (04/24/2008)
Fixed for vb 3.6.10
Small bug fixed.
List of the 2 quick edits are in the zip file so you don't have to start making a form from scratch.
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released.
////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "1";
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
if ($dropdownanswer2 == "Title here")
{
$formforumid = "11";
}
if ($dropdownanswer2 == "Title here 1")
{
$formforumid = "5";
}
if ($dropdownanswer2 == "Title here 2")
{
$formforumid = "17";
}
if ($dropdownanswer2 == "Title here 3")
{
$formforumid = "9";
}
if ($dropdownanswer2 == "Title here 4")
{
$formforumid = "32";
}
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
//Make poll public - 1 = yes, 0 = no
$pollpublic = "0";
I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?
I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?
Ok thanks for the tip about the templates, that was what I was missing. Now I want to add a question for the following.
Birthday (3 separate drop down boxes next to each other on the same line, can this be auto filled like the forum name?)
Edit: Ok I've added drop downs for State/Province but I've already used a-z & aa-zz so what can I use next? Can I just keep going aaa-zzz or should I switch to numbers?
How can I make sections separate on the form? I want to have a section for personal info, gaming, info, then a longanswer box for final comments.
I also tested the forum and filled in every question, yet when I go to preview it said I didn't answer all the questions.
I almost got everything to work on vBulletin 3.7.2, but there are two things that are bugging me which I'll have to get to work before using the form on my site:
1. Can the form have a field through which users can choose a custom thread title?
2. If the forum to which you try linking the form requires thread prefixes, no new threads can be posted through the form. How would I got about having the form automatically add a prefix, or select a prefix based on a radio button choice or dropdown?
To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)
Same as above.
For instance, on our forum, the thread title is generated as the following:
To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)
Same as above.
For instance, on our forum, the thread title is generated as the following: