The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News Details »» | |||||||||||||||||||||||||||
FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News
Developer Last Online: May 2013
FORM TO FORUM/ THREAD/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS
Version 1.3 - Dr. Erwin Loh ------------------------------------------------------- vB3 version is here: https://vborg.vbsupport.ru/showthread.php?t=66082 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. Posted as a REPLY to a current thread 3. PMed to you or someone else 4. Emailed to an email address you specify Or any combination or all of the above? Well, this is the hack for you! You can use this for: 1) Moderator Application 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 form1.php (you add questions, options etc. in the PHP file itself), uploading it, and then adding 3 templates. The beauty of this hack is that once you have added the 3 templates, to make a new form, all you need to do is copy the form1.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. However, if you do wish to modify the templates, you can copy and rename the templates. All the names of files and templates can be set in the PHP files. 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. INSTALLATION ------------ Easy - takes a few minutes: 1. Add the 3 templates - they are included as 3 TEXT files - form1.txt, formpost1.txt and formthanks1.txt = just use the names of the TEXT files as the name of the template, and cut and paste the contents. 2. Edit form1.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully! 3. Upload form1.php Done! Just link to form1.php eg. http://www.yourforum.com/forums/form1.php LAST POST TITLE ON FORUMHOME HACK SUPPORT ----------------------------------------- If you have the "Last Post Title on Forum Home" hack by PPN, this hack supports it. Just find the line that says: $lastposttitlehack = "0"; And change it to: $lastposttitlehack = "1"; Done! Updates: ------------ Version 1.1 - fixed a username with quotation bug. Version 1.2 - fixed the email bug - oops... bad spelling... Version 1.3 - added ability for form to REPLY to a current thread To upgrade, just download the new form1.php - ensure it says "Version 1.3" at the top. Enjoy! Dr. Erwin Loh Show Your Support
|
Comments |
#142
|
||||
|
||||
Quote:
$answer3="$bbuserinfo[username]"; ?? Quote:
|
#143
|
||||
|
||||
Quote:
In my "post" template, I had it down like this: $question1: $bbuserinfo[ username] $question2: $answer2 $question3: $answer3 $question4: $answer4 --------------------------- Though I hard-coded the $bbuser-thing into the "post" template and didn't input an answer for question 1 in the main form template ... I didn't use an $answer1 variable at all, so I had not defined $answer1 in the php file. The form that posted looked like this: (1) Your Username: Talisman (2) Your first name: Susan (3) Your boat name: (4) Your country flag: USA Every time I tested it, the boat name ($answer3) came up blank when it exactly matched the content of my $bbuserinfo[ username] variable. I confirmed this by entering a different boat name (that didn't match my username). When the $answer3 boat name was different from the username..... it worked. Now, I'll go try it the way you showed, Erwin. Be back soon to let you know how that turns out. Cheers! |
#144
|
|||
|
|||
Erwin, can you help me out with why I would get the following error message when trying to run form1.php?
Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214 The form is located at: http://forums.classicmortgageservices.net/form1.php I haven't even begun to customize it, Im just trying to get it working. I added the templates exactly as the instructions said... Thanks, Ryan |
#145
|
||||
|
||||
I can see that problem, retsell.
Your error message points to "/forums/form1.php" but the link you show uses a different directory structure for your "forums" subdirectory. |
#146
|
|||
|
|||
Quote:
Im confused. http://www.classicmortgageservices.net/forums/form1.php its the same as: http://forums.classicmortgageservices.net/form1.php forums.classicmortgageservices.net is just a subdomain that points to /forums Am I not understanding you? |
#147
|
||||
|
||||
Ok, sorry for the confusion, retsell...... I thought the link would be literal. Was going for a solution that was too obvious, I guess.
|
#148
|
||||
|
||||
this hack scares me, I really REALLY want to use it, but its not working correctly, shame because its JUST what i need
|
#149
|
||||
|
||||
Put the form1.php file in the same directory as your forums.
It cannot find the nopermission function ie. cannot find your global.php |
#150
|
||||
|
||||
woooooh hold the press! i finally got this godamn thing working
thirteen template edits and ten file edits down the line, duno what the problem was. anyways is their anyway of making one of the submitted fields the title of the thread? |
#151
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|