Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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.
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-11-2004 Last Update: Never Installs: 214
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #472  
Old 07-25-2005, 09:48 AM
PKRWUD's Avatar
PKRWUD PKRWUD is offline
 
Join Date: Jan 2003
Location: Ventura, California
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #473  
Old 07-25-2005, 01:05 PM
kvnband kvnband is offline
 
Join Date: Feb 2004
Location: AR
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PKRWUD
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)?
I can try. In your Showthread template, go down about 20 lines.

FIND
Code:
<if condition="$show['largereplybutton']">
AFTER, ADD
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 />
FIND
Code:
</if>
AFTER, ADD
Code:
</if>
FIND
Code:
<if condition="$show['largereplybutton']">
It is down many lines.

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
Reply With Quote
  #474  
Old 07-27-2005, 01:10 AM
DougM DougM is offline
 
Join Date: Jul 2004
Location: TX
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
In form.php
Code:
I can't figure it out
I'm looking at form.php and trying to see how the username $bbuserinfo[username] is processed but I guess it's beyond me or I'm missing the obvious.

Can anyone help me to get a custom profile field into a new thread? Much appreciated if so.

Thanks
Reply With Quote
  #475  
Old 07-27-2005, 09:37 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #476  
Old 07-29-2005, 07:26 AM
jschlosser jschlosser is offline
 
Join Date: Jul 2005
Location: Germany
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #477  
Old 07-29-2005, 07:38 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please provide a test login if you want us to see something.

Thanks.
Reply With Quote
  #478  
Old 07-29-2005, 10:51 AM
DougM DougM is offline
 
Join Date: Jul 2004
Location: TX
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'">
Nothing shows up on the form page with this.
Reply With Quote
  #479  
Old 07-29-2005, 01:08 PM
kvnband kvnband is offline
 
Join Date: Feb 2004
Location: AR
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jschlosser
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
First off, search this thread for the search problem. I'm not sure if it's ever been fixed or not.

Secondly, to change the subject, in form.php, go down to

Code:
INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount,....
2 lines down is
Code:
('".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', " . TIMENOW . ", $formforumid,
change
Code:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
to
Code:
'Your THREAD TITLE HERE'
then go down about 10 lines to

Code:
VALUES
                                ($thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle',
                                 '" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " . TIMENOW . ",
                                 '" . addslashes($formsend) . "', 1, 1,
                                 0, 1)
and change
Code:
"'.addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
to
Code:
'YOUR THREAD TITLE'
You'll want to put some sort of variable in those changes though. a variable from the form so that not every thread will have the same exact title. You can see what I'm doing at
http://www.birdboard.com/forum/bird-...assifieds.html

Every new thread there has the same format, but not exactly the same title.
Kevin
Reply With Quote
  #480  
Old 07-31-2005, 12:21 PM
leroub's Avatar
leroub leroub is offline
 
Join Date: Jul 2005
Location: In my computer
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx for this hack....

how to put bbcode in the template of the answer....

thanks in advance...
Reply With Quote
  #481  
Old 07-31-2005, 12:43 PM
leroub's Avatar
leroub leroub is offline
 
Join Date: Jul 2005
Location: In my computer
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's ok... i forget to put a space between my text and bbcode...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05022 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (15)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete