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.
just name it normalquestion2 and so forth so anyone able to help me out with the post count???
I tried that but nothing shows up?
Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR,
'normalanswer3' => TYPE_STR,
// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2'];
$normalanswer3 = $vbulletin->GPC['normalanswer3'];
$normalquestion2 = "N?vn de byer du har rejst mest til i forbindelse med arbejde?";
Did you add normalquestion2 into your main template too? What you shown here are just the declaration in the plugin.
Quote:
Originally Posted by d-wiz
I tried that but nothing shows up?
Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR,
'normalanswer3' => TYPE_STR,
// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2'];
$normalanswer3 = $vbulletin->GPC['normalanswer3'];
$normalquestion2 = "N?vn de byer du har rejst mest til i forbindelse med arbejde?";
Take a look at the templates in admincp -> styles and template. You should be able to find 2 template by the name of "formhack" and "formhackanswers". Use those as an example and create your own version.
To change the output text color, you just need to modify your formanswer template and enclose the item that you want with a different color with the color BB code.
Can you give me an example of the code ... e.g . dropdown question 1 has 4 selections each having its own color...i understand what you mean btw just do not know how to do it, an example code i could use as a "template" would be great ty in advance.
I do know how to change the color of the non-dropdown questions just havent been able to figure out the coding to change the dropdown choices e.g dropdownchoice1a ...red
dropdownchoice1b...blue etc
Can you give me an example of the code ... e.g . dropdown question 1 has 4 selections each having its own color...i understand what you mean btw just do not know how to do it, an example code i could use as a "template" would be great ty in advance.
I do know how to change the color of the non-dropdown questions just havent been able to figure out the coding to change the dropdown choices e.g dropdownchoice1a ...red
dropdownchoice1b...blue etc
I am sorry that I will likely not able to help you on this as I am not a programming guy myself. Maybe someone more experience will be able to provide some help.
i have a question about the creation of a new thread.
PHP Code:
PHP Code:
//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.
$formforumid = "1";
When i set $formforumid = "1"; to //$formforumid = "1"; and open the link
how descript with do=form&f=1 nothing happens after saving. I receive the message box that all is ok but when i have a look no new thread. Have you an idea why this happen? I see in the info text that i have to set the variable but also when i open the form with the link?