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
  #692  
Old 11-03-2007, 01:33 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great plugin Abe, I've been burning up the last two days using it. Thank you for you work. I do have a couple of questions, though.

1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?

2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
Reply With Quote
  #693  
Old 11-03-2007, 05:41 PM
mhackl mhackl is offline
 
Join Date: Aug 2006
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to visually build the forms?
Reply With Quote
  #694  
Old 11-03-2007, 07:42 PM
Charles_1 Charles_1 is offline
 
Join Date: Jun 2006
Location: Czech Republic, Brno
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by criscokid View Post
Hi Abe1,

Are you going to be developing this fanatastic mod further? If you are here's some ideas I'd love to see implimented in a future version:

1: A number of characters already used in a specific input box.
Agree, I should use for this too. Abe1, please, what do you think? :-)
Reply With Quote
  #695  
Old 11-04-2007, 03:32 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
Using what was previously posted I managed to make this work. I'll provide the how to so its all in one post. All of the below is accomplished in the hook:

after

Code:
if ($_REQUEST['do'] == $formname)
{
add

Code:
$bbuserinfo = $vbulletin->userinfo;
In Part 2 of the variables add

Code:
$user_name = $bbuserinfo[username];
Example of formtitle

Code:
$formtitle = "Application for - $user_name";
Credit goes to ChrisBaktis and R.Caldwell for their previous discussion concerning this question.
Reply With Quote
  #696  
Old 11-04-2007, 05:36 PM
laura66a laura66a is offline
 
Join Date: Oct 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One thing I have discovered is that if you have one form in a product section that isn't working, none of the forms in that section will work.

When the Forms Hack is first installed it creates a new product section in the Plugin Manager called Product: Forms Hack. This is now where I store my live forms. I keep new and forms in development in the vBulletin section at the bottom.

I had a form that wasn't quite finished in the Forms Hack section and none of the other forms in the section worked. When I moved the incomplete form out, the others worked again.

Laura
Reply With Quote
  #697  
Old 11-05-2007, 10:32 AM
lionelng lionelng is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.

Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.

Any help is much appreciated. Thanks!
Reply With Quote
  #698  
Old 11-06-2007, 03:46 AM
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 installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.

Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.

Any help is much appreciated. Thanks!
Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
Reply With Quote
  #699  
Old 11-06-2007, 05:06 AM
lionelng lionelng is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?
Reply With Quote
  #700  
Old 11-06-2007, 06:16 AM
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
Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?
You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.
Reply With Quote
  #701  
Old 11-06-2007, 10:52 AM
lionelng lionelng is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.
I can't. It says i don't have the permission when i tried to view the thread, even though i'm using administrator account. Any idea how we can resolve this?
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:27 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.07192 seconds
  • Memory Usage 2,319KB
  • 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
  • (4)bbcode_code
  • (6)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