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 |
#452
|
|||
|
|||
Here's a link to my form. It's being used for a contest I'm doing (win 2 Big XII Championship Tickets for football). It's a pick 'em contest where the user predicts the winner and fills out a tiebreaker guess. I have it set up to where it will PM me. The games entered are just testing...
http://aggiefans.com/forums/week1.php Listed are the things I want this form to do:
I'd be willing to pay for help with the database/table thing. The other two requests have been posted before, but I've searched all 31 pages and haven't found an answer. Take a look and let me know what you think and if you can help. |
#453
|
|||
|
|||
Ok, I found the answer to #1 and a lot of other user's questions. Here's what I did to get the 2 PM's to work. (it may be redundant or the roundabout way, but given my lack of programming skill, it works and wasn't hard).
In your form.php find: Code:
//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm = "1";
//USERID TO PM TO
$formpmid = "whateveridyouhavehere";
Code:
//USERID TO PM TO $formpmid = "whateveridyouhavehere"; $formpmid2 = "$bbuserinfo[userid]" Then scroll down and find in the bottom area: Code:
if ($formpm == "1") { $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '".addslashes(htmlspecialchars($formtitle))."', '".addslashes(htmlspecialchars($formsend))."', '" . addslashes(serialize($tostring)) . "', 0, " . TIMENOW . ", 1)"); $pmtextid = $DB_site->insert_id(); $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread) VALUES ($pmtextid, $formpmid, 0)"); $DB_site->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $formpmid"); } Code:
if ($formpm == "1") { $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '".addslashes(htmlspecialchars($formtitle))."', '".addslashes(htmlspecialchars($formsend))."', '" . addslashes(serialize($tostring)) . "', 0, " . TIMENOW . ", 1)"); $pmtextid = $DB_site->insert_id(); $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread) VALUES ($pmtextid, $formpmid2, 0)"); $DB_site->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $formpmid2"); |
#454
|
|||
|
|||
Quote:
Dr. Loh you are a genius! Stachel |
#455
|
||||
|
||||
Any plans to make this work with 3.5? I was using it before and really miss it.
|
#456
|
|||
|
|||
Hi,
Downloaded, installed and made some field modifications--working well. Excellent hack; I had been trying to figure out a way to standardize input from users but had given up. Thanks very much to you, Dr. Loh. One problem-- the threads that are posted via the form don't seem to be appearing in searches; if I post a thread directly to the forum (bypassing the form), searching works correctly on this one thread only. Any ideas why my form-generated posts aren't being included in searches? |
#457
|
|||
|
|||
Thanks anyway; found the answer in the forum.
|
#458
|
|||
|
|||
Is there anyway to change the reply to email address to the member who filled out the form?
|
#459
|
|||
|
|||
hi dude's,
first of all thanks for this nice script. its very impotant for me to have it. the second one is my bad english. sorry for i have changed the script for my needs, but one thing is also important for me. THE TITLE::: can only changed in the script. form.php but i need a textform wherer i can write my own TITLE of the new thread. is it possible to change ??? would be wonderful. you can see my form on this site. http://www.pickup-portal.com on the left side go to "Fahruzeuge eingeben" then you 'll see the form.php when you click on "Frachten eingeben" you 'll see the the fom1.php login: test pass: test many thankx in advance greets sascha ps. when i make a new thread with this script and i want search a word from the new thread, i cannot find something in the search. ??? |
#460
|
|||
|
|||
Quote:
I'm using the form to recieve membership applications from my members and its very frustrating when even a few of the applications posted don't actually go through. Has anyone else had trouble with the form not posting for some of their users? -Jonathan |
#461
|
|||
|
|||
Uhh, the install says that this is compliant with vB version 3.x.x, but I get
Code:
Fatal error: Call to undefined function: globalize() in /home/alliance/public_html/vb/hostingrequest.php on line 24 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|