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
  #132  
Old 08-11-2004, 10:27 AM
breathwork's Avatar
breathwork breathwork is offline
 
Join Date: Jun 2004
Location: Belgium
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin

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
Hi, I am having trouble insatlling the hack. I am new to vb hacking, how do I add 2 templates and where do I get them from and where should I place the form.php file you have in your zip file, and finally, how can I make this link to so that it always appears when a user wants to start a topic/thread or reply to a topic/thread

Sorry to be a pain, if this is too much for you, please point me somewhere where this is all explained (simply)

Many thanks
:ninja:
Reply With Quote
  #133  
Old 08-11-2004, 02:58 PM
vau7 vau7 is offline
 
Join Date: Mar 2004
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can answer some Questions:
The 2 Templates you will find in the .zip-file coming to you as .txt-files. Now copy the content and open your ACP nad go to "Manage Styles" (http://www.yourForumUrl.de/admincp/t....php?do=modify). Open the scrolldown and select "Add New Template". Now you paste the content of the txtfile in the large Box. In the Title-field you put the name of the Txt-file but without its ending (.txt).
Thats all.

The Form.php you just put in your Forumsroot.
Now you can test ist on http://www.YourBoardUrl.de/form.php


Hope i could help, and now i have a question.
If an User fills out the form and it got posted as Thread the User doesn't get an Notificationmail if an answer was dropped. Even he has enabled it in UCP.
Any fix for this?

Its really an great great Hack. Thank you for your Muse.
Reply With Quote
  #134  
Old 08-12-2004, 07:50 AM
breathwork's Avatar
breathwork breathwork is offline
 
Join Date: Jun 2004
Location: Belgium
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there my good teacher VAU, many thanks for your assistance, It has worked, except when I ran the form and hit submit it came back with the following error

Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,pa getext,allowsmilie,showsignature,ipaddress,iconid, visible) VALUES (NULL,'12345','admin Generic Form','admin','1','1092300514','Generic Form
admin

What is the meaning to life?
Just a test

Choose one of the following choices
yes

Choose another one of the following choices
both

Is it yes or no? If yes, please elaborate
yes
hi there

What is your name?
Geoffrey

What is your email?
BreathWork@bigfoot.com

What is your website?
http://www.breathwork.be

-----------------------------------------------------
Please write down a paragraph about yourself.

This is a sample paragraph about my self and could be used as a means of posting a form message to a forum

------------------------------------------------------


','','','','','1')
mysql error: Table 'breathz_ibfncbb.post' doesn't exist

mysql error number: 1146
Is this normal? :ninja:
Reply With Quote
  #135  
Old 08-16-2004, 07:39 AM
b4ne b4ne is offline
 
Join Date: Jun 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get always a
Fatal error: Call to undefined function: gettemplate() in /home/b4ne/www/form1.php on line 214
when I try to call the form1.php file.

any idea ?
Reply With Quote
  #136  
Old 08-16-2004, 01:36 PM
vau7 vau7 is offline
 
Join Date: Mar 2004
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Breathwork: Nothing to thank for.
But with your SQL-Failure i cant help you. It cant post your Informations in the Databse-table, but i'm not knowing enough to tell you why.

@b4ne: Did you add the Templates?
Reply With Quote
  #137  
Old 08-16-2004, 03:01 PM
b4ne b4ne is offline
 
Join Date: Jun 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes I did if I go to templates they are all there
Reply With Quote
  #138  
Old 08-17-2004, 02:40 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update Version 1.3 - Form to Poll feature added

I've added the ability to create a simple poll from the form.

In the new form.php, edit these variables -

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "1";
$formoption1 = "Yes";
$formoption2 = "No";

You can rename the 2 poll options.

I've made it default that the poll is created with 2 options, but with some code changes you can customize this obviously.

I've got it with 2 options because I use my form as a moderation application form, and the poll is automatically created in our staff forums so that staff can vote.

Enjoy!
Reply With Quote
  #139  
Old 08-17-2004, 03:55 PM
b4ne b4ne is offline
 
Join Date: Jun 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin can you help me with my previously reported problem ?
Reply With Quote
  #140  
Old 08-17-2004, 05:49 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin,

I would love to add to my form the ability to employ Mystics' [vB 3.0.0] - Thread Category / Prefix Hack.

What I need is the ability to insert the selection menu into my form similar to the way it is inserted in the attached image. Any light you might shed on the way I might go about doing this would be greatly appreciated! (BTW ... I have asked Mystics as well but so far he has not responded.)
Reply With Quote
  #141  
Old 08-18-2004, 05:11 PM
PKRWUD's Avatar
PKRWUD PKRWUD is offline
 
Join Date: Jan 2003
Location: Ventura, California
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME Hack!

Installed!

One question: How do I make it so that the user is redirected to the thread after they complete the form?
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 01:34 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.09385 seconds
  • Memory Usage 2,320KB
  • 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
  • (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
  • (2)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