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 |
#152
|
||||
|
||||
yeah sorry, it was late, i was on my period, wait im a guy, i cant use that excuse...eeek!
Anyways, ive finally figured out the problem, a few bad named variables. How simple. Doh. And i was wondering if there was anyway to make it so when a user submits the form, that the thread is named after a selected submitted field? |
#153
|
||||
|
||||
Yes, can be done.
In form1.php (or whatever you've called it), FIND: PHP Code:
PHP Code:
Remember, do the above THREE TIMES - you need to change the title three times in the code. |
#154
|
|||
|
|||
the file is in the same dir.
|
#155
|
||||
|
||||
I can't explain it, retsell - I suggest re-installing the hack to see if it works - it does work, but I don't know why you are getting that server error.
|
#156
|
||||
|
||||
thanks erwin
keep making brilliant hacks, dont listen to crackpots on methadone like me. |
#157
|
|||
|
|||
Quote:
They're together. [Why did you post the whole PHP file in this post? What's the point of that? - Erwin] |
#158
|
|||
|
|||
Quote:
it's a mysql error? |
#159
|
||||
|
||||
It's an undefined function error - the gettemplate function could not be found. Makes no sense.
Also, there is no point reposting the whole PHP file out like that for unlicensed users to copy and use. They can't see [php] tag code, but you reposted the whole file in normal text. What was the point of that? Anyway, like I said, reinstall the hack following the instructions exactly. |
#160
|
||||
|
||||
Ret, its probobly something simple like mines, check all the names of all the templates and the files and then check all the variables and make sure they all match up!
|
#161
|
||||
|
||||
Geez, you guys can sure cover a lot of ground while I'm away.
Erwin, that $bbuser-thing worked brilliantly. Thanks for telling me it needed to be defined as a variable in the php file. Don't know why the forum/thread post counts don't update when the submitted form posts as a reply. When I click the update counters links in the ACP, everything shows up like normal. Wonder what's wrong with that. I saw a few pages back that we can check to make sure the member has the minimum post count required before the form submits.... I'll use that for our moderator app. We'd also want the form to check the member's join date. We don't want new members joining one day and applying to become a moderator a day later. We'd rather make them wait two weeks or a month and also make sure they've made 10 or 25 posts before they can apply. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|