Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
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
  #682  
Old 10-30-2007, 12:26 AM
Lord Kuam Lord Kuam is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it seems that I am still getting the white page, although I realized that I could not directly enter the link into my browser (I had to enter it first, get the error message, and then hit refresh).

I've modified several details to include the questions and a few other aspects, and now I can't get the form to show up, as I said. Why am I only getting a white page?

Thanks!

EDIT

So I've figured out that I'm getting white pages because I changed the template name. Now, I need a new template because when I change all the options (add/remove questions, change number of answers etc) it stays with the current template, meaning I have fields that don't exist (they're there but are blank), my radioquestion fields have 6 selections in it from the original form even though I only have two options, and a variety of other issues.

What do I need to do to get a new template running?
Reply With Quote
  #683  
Old 10-30-2007, 04:21 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 Lord Kuam View Post
Well it seems that I am still getting the white page, although I realized that I could not directly enter the link into my browser (I had to enter it first, get the error message, and then hit refresh).

I've modified several details to include the questions and a few other aspects, and now I can't get the form to show up, as I said. Why am I only getting a white page?

Thanks!

EDIT

So I've figured out that I'm getting white pages because I changed the template name. Now, I need a new template because when I change all the options (add/remove questions, change number of answers etc) it stays with the current template, meaning I have fields that don't exist (they're there but are blank), my radioquestion fields have 6 selections in it from the original form even though I only have two options, and a variety of other issues.

What do I need to do to get a new template running?
What template name did you change and if you changed any templates names then you also have to make sure you changed your name of the template inside the plugin also.
Reply With Quote
  #684  
Old 10-30-2007, 09:33 PM
Lord Kuam Lord Kuam is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
// Name of the main template
$maintemplate = "support";
// Name of the answer template
$answertemplate = "supportanswers";
This is what I changed (support WAS form; supportanswers WAS formanswers).

I am still learning this coding. If you could direct me what other code I need to modify, I would greatly appreciate it.

Thank you
Reply With Quote
  #685  
Old 10-31-2007, 01:37 AM
afmarko99's Avatar
afmarko99 afmarko99 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile. Too bad someone doesn't come out with a hack like Wow Recruitment Form. I believe he took this form and developed a much more user friendly gaming form. All I really want is some custom question blocks.

I guess I will give it a try again later.
Reply With Quote
  #686  
Old 10-31-2007, 06:18 AM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EaglezEye View Post
I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile. Too bad someone doesn't come out with a hack like Wow Recruitment Form. I believe he took this form and developed a much more user friendly gaming form. All I really want is some custom question blocks.

I guess I will give it a try again later.
The WOW form is designed for a specific purpose, this mod is the basics for any purpose. You just need to customise the form and the two templates.

Yes, it takes time, that is the fun in web design. The alternate option is to pay someone to do the job. That is no fun. Like many such mods the author has done the functionality code and the rest is down to us.

Bob
Reply With Quote
  #687  
Old 10-31-2007, 06:33 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 Lord Kuam View Post
Code:
// Name of the main template
$maintemplate = "support";
// Name of the answer template
$answertemplate = "supportanswers";
This is what I changed (support WAS form; supportanswers WAS formanswers).

I am still learning this coding. If you could direct me what other code I need to modify, I would greatly appreciate it.

Thank you
Then you need to create a support template and copy the code from form and put it in there and edit the way you want it to be.

Then you need to create a supportanswers template and copy the code from formanswers and put it in there and edit the way you want it to be.
Reply With Quote
  #688  
Old 10-31-2007, 06:35 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 EaglezEye View Post
I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile.
I guess I will give it a try again later.
Yes this does take a while. It took me a long time to get my form the way I wanted it. It took two nights to get it done.
Reply With Quote
  #689  
Old 11-02-2007, 11:23 PM
mystic10 mystic10 is offline
 
Join Date: Sep 2007
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry for the silly question but i am very confused i dont understand ur instructions about edit form hook and u will see the intrucion...i went to the plugin and pressed edit and i saw

Product ID form_hack
Title

Version

Description

Product URL

Version Check URL
please clarify and help thanks
Reply With Quote
  #690  
Old 11-03-2007, 07:53 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 mystic10 View Post
sorry for the silly question but i am very confused i dont understand ur instructions about edit form hook and u will see the intrucion...i went to the plugin and pressed edit and i saw

Product ID form_hack
Title

Version

Description

Product URL

Version Check URL
please clarify and help thanks
Read this post here and it should help https://vborg.vbsupport.ru/showpost....&postcount=675
Reply With Quote
  #691  
Old 11-03-2007, 01:27 PM
Brundlefly Brundlefly is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hook is edited from the "Plugin Manager", Each plugin has two templates that are edited from the style manager. 1. Usually named "form" 2. Usually named "form_answers".
Reply With Quote
Reply

Thread Tools

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 05:58 PM.


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.09572 seconds
  • Memory Usage 2,321KB
  • 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_code
  • (5)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