The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. Details »» | |||||||||||||||||||||||||||
FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News.
Developer Last Online: May 2013
FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS
Version 1.6 for vBulletin 3.x.x by Dr Erwin Loh Features: Ever wanted an online form that a user can fill out, which when submitted gets: 1. Posted into a new thread in a forum of your choice 2. Create a new poll in the new thread with options of your choice 3. Posted as a reply in an existing thread of your choice 4. PMed to you or someone else 5. Emailed to an email address you specify 6. Choose to redirect to the post, thread or forum, or a custom thank you message 7. Choose to redirect to editpost to upload attachments Or any combination or all of the above? Well, this is the hack for you! You can use this for: 1) Moderator Applications 2) Quiz Submit Form which gets PMed to a moderator 3) Contact Form that goes to PM, email or thread 4) Guests to apply to be members 5) Report a Moderator form that goes as a PM to you 6) Guests can PM you for whatever reason 7) Order form to buy things 8) Donation form 9) News or Articles submissions that can go straight to a thread Or anything you like - this hack is totally customizable via the PHP file. Basically, this hack involves modifying 1 PHP file form.php (you add questions, options etc. in the PHP file itself), uploading it, and then adding 2 templates. The beauty of this hack is that once you have added the 2 templates, to make a new form, all you need to do is copy the form.php and rename it to form2.php, edit the variables in the PHP file, and you have a totally new form!!! You do not need to touch the templates again. Format of the form: 1. One main input question 2. 2 Radio buttons Choice questions 3. 3 Normal text input questions 4. 1 Long answer question This is customizable via the PHP file. 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: 1. Add the 2 templates. 2. Edit form.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully! 3. Upload form.php Just link to form1.php eg. http://www.yourforum.com/forums/form.php Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 1.1 - Option to force user to answer all questions. Version 1.2 - Thread count and lastposter information now updated if form is sent to existing thread. Version 1.3 - ADDED CREATE POLL OPTION! Version 1.4 - Fixed bug with Form-to-thread code Version 1.5 - Major update: - fixed bug where thread count not updated when form to forum - fixed default posting to allow smilies and sigs when reply to thread - added templates to cache (saves 2 queries) - added option to change thank you message - added options to redirect to post, thread or forum when submit Version 1.6 - Choose to redirect to editpost to upload attachments Screenshot is an example of a form - the form title and questions are customizable: Show Your Support
|
Comments |
#102
|
|||
|
|||
Best mod ever ! I needed this so bad.
One question how would i be able to add a drop down menu like for example: What's your favourite color ? and then they can chose from red/blue/black/etc I am a complete newbie so the more details you can give me the better ! Thanks ! |
#103
|
|||
|
|||
Figured everything out.
However, is there a way to allow other usergroups to see it without them being able to submit it? And if so, how would it be possible to make it so that when they do enter info and submit they see a message saying something like "you're not allowed to apply" ? Thanks and sorry i am asking for so much. |
#104
|
||||
|
||||
I have one question, is it possible to add dropdown box with all my fourm & subforum listed so when my user apply for mod they don't need to type the fourm name in a box? if it's possilbe please show me how its done~Thank you and again, this is a great hack.
|
#105
|
||||
|
||||
a really great hack !!!!
but will there be a version in the future which allow attachment uploading, if the output is going to be submitted as a thread? that would be great |
#106
|
||||
|
||||
Erwin, this is awesome. However, I am having a problem.
I modified the form.php and added a bunch of questions. I also removed the radio buttons as they were not needed. However, my form now looks like this. http://www.dungeonkeepersdomain.com/...st_a_forum.php It has radion buttons at the top and does not have all my questions. What did I do wrong? |
#107
|
||||
|
||||
Quote:
|
#108
|
||||
|
||||
Well, if the template needs modifying for this, does this mean I need to modify the template for each and every different form I make? Do I make new templates? What do I call them? How do I tell hte form to look to these templates instead of the old ones?
|
#109
|
||||
|
||||
Quote:
If you want to start changing the type and number of questions, you need to copy and rename the template, and change the template name in form.php - keep doing that for new forms, only if you modify those things. It's not hard too work out - I've made this hack to be customizable - go forth and change it however you like. |
#110
|
|||
|
|||
Just an idea for future versions (something i would fiind really useful!)
Add the ability to post to a text file for either all or part of the form. For example, ithis would be used for collecting demographic information that is dumped into a text file then imported to Excel for analysis. |
#111
|
||||
|
||||
Quote:
I DID ANSWER EVERY QUESTION. My "form_request_a_forum" template looks like this. Code:
$stylevar[htmldoctype] <html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle] - $formtitle</title> $headinclude </head> <body> $header $navbar <br> <form enctype="multipart/form-data" method="post" action="$phpfilename"> <input type="hidden" value="$userid" name="userid"> <input type="hidden" value="submit" name="action"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3"> $vboptions[bbtitle] - $formtitle </td> </tr> <tr> <td class="panelsurround" align="center" colspan="3"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]"> <fieldset class="fieldset" style="margin:0px"> <table bgcolor="#FFFFFF" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> <font color="#000000">$formpurpose</font> </td> </tr> </table> </fieldset> </td> </tr> </table> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>Your Username</b>:</td> <td class="alt2" valign="middle" colspan="2" width="40%"> <b>$bbuserinfo[username]</b> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>$normalquestion1</b><br> <font face="verdana" size="1">$explain1</font> </td> <td class="alt2" valign="middle" colspan="2" width="40%"> <input type="text" size="30" name="normalanswer1"> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>$normalquestion2</b><br> <font face="verdana" size="1">$explain2</font> </td> <td class="alt2" valign="middle" colspan="2" width="40%"> <input type="text" size="30" name="normalanswer2"> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>$normalquestion3</b><br> <font face="verdana" size="1">$explain3</font> </td> <td class="alt2" valign="middle" colspan="2" width="40%"> <input type="text" size="30" name="normalanswer3"> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>$normalquestion4</b><br> <font face="verdana" size="1">$explain4</font> </td> <td class="alt2" valign="middle" colspan="2" width="40%"> <input type="text" size="30" name="normalanswer4"> </td> </tr> <tr> <td class="alt2" valign="middle" width="60%"> <b>$normalquestion5</b><br> <font face="verdana" size="1">$explain5</font> </td> <td class="alt2" valign="middle" colspan="2" width="40%"> <input type="text" size="30" name="normalanswer5"> </td> </tr> <tr> <td colspan="3" class="alt2" valign="middle"> <b>$longquestion6</b><br> <font face="verdana" size="1">$longexplain6</font><br> <textarea rows="5" cols="60" name="longanswer6" wrap="VIRTUAL" maxlength="225"></textarea> </td> </tr> <tr> <td colspan="3" class="alt2" valign="middle"> <b>$longquestion7</b><br> <font face="verdana" size="1">$longexplain7</font><br> <textarea rows="5" cols="60" name="longanswer7" wrap="VIRTUAL" maxlength="225"></textarea> </td> </tr> <tr> <td valign="top"> <p align="center"> <input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button"> <input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button"> </p></td></tr> </table> </td> </tr> </table> </form> $footer </body> </html> Code:
$formtitle $bbuserinfo[username] ----------------------------------------------------- $normalquestion1 $normalanswer1 ----------------------------------------------------- $normalquestion2 $normalanswer2 ----------------------------------------------------- $normalquestion3 $normalanswer3 ----------------------------------------------------- $normalquestion4 $normalanswer4 ----------------------------------------------------- $normalquestion5 $normalanswer5 ----------------------------------------------------- $longquestion6 $longanswer6 ------------------------------------------------------ $longquestion7 $longanswer7 ------------------------------------------------------ What am I doing wrong? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|