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 |
#472
|
||||
|
||||
That's killer! I don't suppose you know how to set it up the way I was asking, do you (scroll up two posts)?
|
#473
|
|||
|
|||
Quote:
FIND Code:
<if condition="$show['largereplybutton']"> Code:
<if condition="$thread[threadid] == 18579"> <td class="smallfont"><a href="form.php"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /></a> <else /> Code:
</if> Code:
</if> Code:
<if condition="$show['largereplybutton']"> You'll see that this section is identical to the one you just changed. So change this one just like you changed the other one. Please note that I haven't tested it and honestly have no idea if it works :-) Kevin |
#474
|
|||
|
|||
EDIT :: I was making this too complicated. All I had to do was add the $bbuserinfo[field9] to the formanswers template. Fantastic.
I think this will do exactly what I need but I'm having some difficulty pulling custom profile fields into a new thread from the form. I can get the member's custom field to show up in the form by using this: In the Form template: Code:
<tr> <td class="alt2" valign="middle"> <b>Phone</b>:<br> Your Phone Number.</td> <td class="alt2" valign="middle" colspan="2"> <b>$bbuserinfo[field9]</b></td> </tr> Code:
I can't figure it out Can anyone help me to get a custom profile field into a new thread? Much appreciated if so. Thanks |
#475
|
||||
|
||||
This is a great hack, which is extremely useful for us. I was wondering though, while turning on the ENABLE FORM TO BE EMAILED feature within the form.php file... would it be possible for the REPLYTO email address in the email which is sent, to match the email address in the profile of the member whom had submitted the form?
|
#476
|
|||
|
|||
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 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. ??? the search function isn#t working with this script. can any1 fix this bug ? I use the Version vbulletin 3.07 many thankx in advance greets sascha |
#477
|
|||
|
|||
Please provide a test login if you want us to see something.
Thanks. |
#478
|
|||
|
|||
I'm trying to create a different header for my form by using a conditional statement and it's not working. Can anyone tell what I may be doing wrong? This is what I'm trying to use:
Code:
<if condition="THIS_SCRIPT == 'form'"> |
#479
|
|||
|
|||
Quote:
Secondly, to change the subject, in form.php, go down to Code:
INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount,.... Code:
('".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', " . TIMENOW . ", $formforumid, Code:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle' Code:
'Your THREAD TITLE HERE' Code:
VALUES ($thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', '" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " . TIMENOW . ", '" . addslashes($formsend) . "', 1, 1, 0, 1) Code:
"'.addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle' Code:
'YOUR THREAD TITLE' http://www.birdboard.com/forum/bird-...assifieds.html Every new thread there has the same format, but not exactly the same title. Kevin |
#480
|
||||
|
||||
thx for this hack....
how to put bbcode in the template of the answer.... thanks in advance... |
#481
|
||||
|
||||
it's ok... i forget to put a space between my text and bbcode...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|