Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Form Hack Details »»
Form Hack
Version: 4.1, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.x Rating:
Released: 09-14-2006 Last Update: 04-23-2008 Installs: 1216
Uses Plugins Template Edits
 
No support by the author.

Form Hack 4.1


Features:

Ever wanted an online form that a user can fill out, which when submitted gets:
  • Posted into a new thread in a forum of your choice
  • Create a new poll in the new thread with options of your choice
  • Posted as a reply in an existing thread of your choice
  • PMed to you or someone else
  • Emailed to an email address you specify
  • Choose to redirect to the post, thread or forum, or a custom thank you message
  • Choose to redirect to edit post
  • See a preview before they submit

Or any combination or all of the above?

Well, this is the hack for you!

You can use this for:
  • Moderator Applications
  • Quiz Submit Form which gets PMed to a moderator
  • Contact Form that goes to PM, email or thread
  • Guests to apply to be members
  • Report a Moderator form that goes as a PM to you
  • Guests can PM you for whatever reason
  • Order form to buy things
  • Donation form
  • News or Articles submissions that can go straight to a thread

Or anything you like - this hack is totally customizable via the AdminCP.

The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms.

Format of the form:
  • One main input question
  • 3 Radio buttons Choice questions
  • 3 Normal text input questions
  • 1 Drop down menu
  • 3 Check boxes
  • 1 Long answer question
  • 1 VB message editor text box question
  • Upload attachments

This is customizable via the hook.

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:
  • Import the XML into products. (admin cp -> Plug-in System -> Manage Products -> Add/Import Product)
  • Edit the main plug-in - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
  • To get to the form, go to: /newthread.php?do=form (change "form" to the name of your form if you have few)

Done!

Use this hack to make as many forms as you like!

Enjoy!

Updates:

Version 4.0: (09/15/2006)
  • Ported over for vb3.6
  • Send to multiple emails.
  • Send multiple PMs.
  • Parse emails for BBCode
  • And finally, ATTACHMENTS!

Version 4.1: (04/24/2008)
  • Fixed for vb 3.6.10
  • Small bug fixed.
  • List of the 2 quick edits are in the zip file so you don't have to start making a form from scratch.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Abe1 with rights from Dr Erwin Loh

Supporters / CoAuthors

Show Your Support

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

Comments
  #702  
Old 11-06-2007, 11:31 AM
lionelng lionelng is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried another form via the url http://www.mywebsite.com/forum/newth...?do=form&f=345, this time round with a forum ID but it seems like after i submitted the form, the form did not ended up in the correct forum.

Again it shows that it doesn't belongs to any forum and i can't delete it again because it says i don't have the permission. Really need help on this.
Reply With Quote
  #703  
Old 11-06-2007, 12:25 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are probably not doing it correctly. You need to put the forum ID number in the plugin not the link.
Quote:
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "16";
Reply With Quote
  #704  
Old 11-06-2007, 01:27 PM
lionelng lionelng is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?

Thanks.
Reply With Quote
  #705  
Old 11-06-2007, 04:27 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lionelng View Post
I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?

Thanks.
I will send you a PM.
Reply With Quote
  #706  
Old 11-07-2007, 08:44 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?
Reply With Quote
  #707  
Old 11-09-2007, 01:33 PM
CMF CMF is offline
 
Join Date: Mar 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,
I am having some real trouble getting this to work.

I have installed it, can edit what the questions are etc and got it posting how I want it to but:
• I can't work out how to remove questions?
• I can't work out how to add questions?

There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.

I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
HTML Code:
www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!

What am I doing wrong?
Reply With Quote
  #708  
Old 11-09-2007, 04:28 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CMF View Post
Hi there,
I am having some real trouble getting this to work.

I have installed it, can edit what the questions are etc and got it posting how I want it to but:
? I can't work out how to remove questions?
? I can't work out how to add questions?

There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.

I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
HTML Code:
www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!

What am I doing wrong?
It is a simple as not including them in the template file ?form?. This file is what determines what questions the users see and have the option to answer to. If you only want to remove the radio questions then simply remove the code below in you ?form? template.

Also keep in mind that the template ?formanswers? is what gets posted to your message area or email. So you will have to edit that also.
PHP Code:
<tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion1</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1a"$radiochoice1a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1b"$radiochoice1b </td>
<
td>&nbsp;</td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion2</b>
</
td></tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2a"$radiochoice2a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2b"$radiochoice2b </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2c"$radiochoice2c </td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion3</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3a"$radiochoice3a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3b"$radiochoice3b </td>
<
td>If $radiochoice3aplease explain: <INPUT TYPE="text" NAME="radioanswer3other"></td>
</
tr
Reply With Quote
  #709  
Old 11-09-2007, 04:29 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to make changes to the two style templates (form and form_answers) to add or remove questions and actually have the questions asked in the hook.

1. Form - creates the question area
2. form_answers - used to create the email and thread
3. hook - asks the questions and creates the variables that interact with 1 and 2 above.

Any changes you make to a question in the hook (ie. question type - checkbox or question or longquestion) has to have the corresponding changes made in 1 and 2 above.

Hope this helps
Reply With Quote
  #710  
Old 11-09-2007, 04:34 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Quote:
1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?
Attroll any thoughts on this?
Reply With Quote
  #711  
Old 11-09-2007, 05:01 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brundlefly View Post
Attroll any thoughts on this?
Yes, I saw your post on this. I would not know how to doing something like that. I am just a simple mod type person that knows basic html and very little php. I can work my way around most hacks and get things figured out and do some minor changes and additions but when it come to major changes I am not to good. I do think attachments might be a nice feature to add to it. I have no reason to do this though. I don't know what purpose it would serve. There are other hacks out that that you can do this with though.
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 10:08 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.06044 seconds
  • Memory Usage 2,342KB
  • Queries Executed 26 (?)
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_html
  • (1)bbcode_php
  • (7)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
  • (4)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