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.
I just installed this awesome mod on VB 3.7.2 - it works great!
However, there is a small bug that appears if your testing it with the default/ original form. If you set $answerall = "1"; then the mod will keep on saying that you need to answer all questions even though you did and double checked it. The problem is in the condition for $answerall. Find:
Quote:
if ($answerall == "1") {
Replace the if condition inside that if statement with (note that I also added the condition to check for $dropdownanswer1):
Quote:
if ($normalanswer1 == '' OR ($radioanswer1 == '' AND $radioanswer2 == '' AND $radioanswer3 == '') OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $dropdownanswer1 == '' OR !($checkboxchoice1_1 OR $checkboxchoice1_2 OR $checkboxchoice1_3) OR $longanswer1 == '')
Now your form submissions should work when $answerall is enabled.
Note that if you add more variables, then you need to check for them inside the above if condition. Also, if you want some variables to be optional, then you can omit them from that statement.
Anyone else using this as a "contact us" form? I use it to send comments/questions to a moderator forum. However, with guests being able to use the form (but not post in threads), it's causing massive spam.
Is there any way to modify this to catch spam or have image/human verification?
If not, is there another mod that can send 'contact us' requests (even the built in one) to a forum instead of email?
There are no menu options, all of it is done with in the plugin. Edit the main plug-in - the instructions are all inside the hook itself, in the top half. In the plugin it says
Quote:
// To add more then one form, copy this whole text, and create a new plug-in with the hook location 'newthread_start'.
// After, change the form name. You can't have 2 forms with the same name.
Just for who ever cares, I'm currently building a form creator that will allow you to easily create as many forms on your site as you want while just using a nice GUI (graphical user interface). Unfortunately, I will have to charge for it so it wont be released on this site, but it basically allows you to create a perfect form for your site in just minutes. You dont need to know or play around with any HTML or PHP.
Now, I should have a beta ready for release in a few days for who ever is interested. You can drop me a PM with your email and I'll contact you with more details. (It may take a few days for me to respond.)
I can absolutely understand having to charge for something like this. Just the support time along on this thread would have been a full time job for someone.