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 want to edit the forum for a standard application to a clan/guild. I don't understand how to edit the questions and/or delete some of them already there.
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
Did you delete the radio buttons entries in the formanswers template too?
One thing I recently noticed however is that the form template isn't cached when viewing newthread.php?do=form. As we all know, this causes an unnecessary query on the server.
This can be fixed by adding the following plugin to the product at hook location: cache_templates
PHP Code:
if (THIS_SCRIPT == 'newthread' AND $_REQUEST['do'] == 'form')
{
// Cache template for Abe1 Form Hack
$globaltemplates[] = 'form';
$globaltemplates[] = 'formanswers';
}
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
You cannot just delete the radio buttons from Part1 and Part2 of the plug-in, you also have to comment them out in the rest of that code. For instance, where it says $radioquestion1, just add a // before that entire part and it will comment it out.
You also need to remove them from the form and formanswers templates by removing the code that references it, and not JUST the $radioquestion1 part, everything that relates to it, starting with the <tr> and ending with the last </tr> that wraps that section of the code...including the radioanswer and $radiochoice code as well.