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 |
#312
|
|||
|
|||
np alqadir!
When the script creates a new thread in a forum, an error occurs if a member has posted a ' in the thread title. I'd like to process $ad_title (the var. i've used for the title) to strip out ' and " or any characters that could cause a problem. doing some research into it, the trim function might do it http://ca.php.net/trim Think this would remove ' ? How would I remove "? trim($ad_title, " ' "); I crossposted this in the wrong thread (oops) but Delphy suggested using this: $ad_title = html_entities($ad_title, ENT_QUOTES) but it creates an error when entering the script... anyone have any suggestions? |
#313
|
|||
|
|||
Alright, I thought I had done everything right but obviously not.
This is my form1.php file: PHP Code:
Quote:
Quote:
|
#314
|
||||
|
||||
Easy.
Rename your form1 template as form. The template is meant to be called form. Alternatively, you can do this: In your form1.php, find: PHP Code:
PHP Code:
|
#315
|
|||
|
|||
Looks really good , I'll install it when I have some time .
[high]* Deaths installs[/high] |
#316
|
||||
|
||||
Version 1.6 minor update - added the option to redirect to editpost to upload attachments. Good simple solution provided by abe1, posted by alkatraz - saves me from figuring out a way to hack it.
|
#317
|
|||
|
|||
Quote:
hopefully adding attachments to the form is still on your to do list also, I think having the ability to trim characters that can cause errors with the MYSQL insert would be a huge bonus.. Quote:
|
#318
|
|||
|
|||
wouldn't add_slashes() work for that?
|
#319
|
||||
|
||||
Quote:
|
#320
|
|||
|
|||
Quote:
PHP Code:
I guess that's because you're predefining $formtitle within form.php whereas i've modified it so the form title is specified in an INPUT box on the form which gets submitted. (useful in my situation where i'm forcing members to submit their classified ads through this form) |
#321
|
|||
|
|||
interesting..
I changed it to, ".addslashes(htmlspecialchars($ad_title))." and it no longer gives an error, but still allows the new thread to posted with the ' in it!? So it's not removing anything, it's just adding slashes to allow that character I imagine? tried adding, trim($ad_title, " ' "); inside the submit part of the script to remove ' from the title, but that didn't seem to work either.. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|