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
  #1212  
Old 08-20-2008, 03:20 PM
farplane dragon's Avatar
farplane dragon farplane dragon is offline
 
Join Date: Mar 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.

Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?

Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
Reply With Quote
  #1213  
Old 08-20-2008, 03:50 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farplane dragon View Post
Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.

Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?

Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
I had the same problem when I first started it too. You have to go lower down in the form area and edit this section.

Code:
if ($answerall == "1")
    {
        if ($answer1 == '' OR $answer2 == '' OR $answer4 == '' OR $dropdownanswer1 == '' OR dropdownanswer3 == '' OR $dropdownanswer4 == '' OR $longanswer1 == '')
        {
            $errormessage = "$bbuserinfo[username], you need to answer every question!";
            eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
            exit();
Make sure that all your questions are in there or ones you're not using are removed.
Reply With Quote
  #1214  
Old 08-20-2008, 03:52 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farplane dragon View Post
Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.

Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?

Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
I have not tried on the answer all questions portion but this post might provide some clues for you.

I don't really understand what do you mean in your following paragraph.

Quote:
Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?
As for your last question, are you saying that you want the questions to be appeared in bold in your submitted form? If that is the case, just go to your formanswers template and enclose those questions that you want to appear in bold using the standard bb codes.
Reply With Quote
  #1215  
Old 08-20-2008, 04:07 PM
farplane dragon's Avatar
farplane dragon farplane dragon is offline
 
Join Date: Mar 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my current hook. I don't know if I'm defining them wrong at the bottom or what.
Reply With Quote
  #1216  
Old 08-20-2008, 04:12 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farplane dragon View Post
This is my current hook. I don't know if I'm defining them wrong at the bottom or what.
You have a typo.

Code:
if ($answerall == "1")
    {
        if ($normalanswer1 == '' OR $normalanswer2 == '' OR $normalanswer3 == '' OR $normalanswer4 == '' OR $normalanswer5 == '' OR $normalanswer6 == '' OR $normalanswer7 == '' OR $normalanswer8 == '' OR $normalanswer9 =='' OR $checkboxcanswer1_1 =='' OR $longanswer2 =='' OR $dropdownanswer1 =='' OR $dropdownanswers2 =='' OR $dropdownanswers3 =='' OR $dropdownanswers4 =='' OR $dropdownanswers5 =='')
        {
Reply With Quote
  #1217  
Old 08-20-2008, 04:13 PM
farplane dragon's Avatar
farplane dragon farplane dragon is offline
 
Join Date: Mar 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ccplim View Post
I have not tried on the answer all questions portion but this post might provide some clues for you.

I don't really understand what do you mean in your following paragraph.



As for your last question, are you saying that you want the questions to be appeared in bold in your submitted form? If that is the case, just go to your formanswers template and enclose those questions that you want to appear in bold using the standard bb codes.
What I mean, is if you look at the 2 pictures I uploaded, if you look at the post, the questions/answers are listed in a different order then on the form. For example, on the form it asks for position and then experience, but in the post it goes, experience then position, I think the next 2 were out of order too.
Reply With Quote
  #1218  
Old 08-20-2008, 04:18 PM
farplane dragon's Avatar
farplane dragon farplane dragon is offline
 
Join Date: Mar 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stryker412 View Post
You have a typo.

Code:
if ($answerall == "1")
    {
        if ($normalanswer1 == '' OR $normalanswer2 == '' OR $normalanswer3 == '' OR $normalanswer4 == '' OR $normalanswer5 == '' OR $normalanswer6 == '' OR $normalanswer7 == '' OR $normalanswer8 == '' OR $normalanswer9 =='' OR $checkboxcanswer1_1 =='' OR $longanswer2 =='' OR $dropdownanswer1 =='' OR $dropdownanswers2 =='' OR $dropdownanswers3 =='' OR $dropdownanswers4 =='' OR $dropdownanswers5 =='')
        {
Even after fixing that, the problem still persists

Quote:
Originally Posted by ccplim View Post
I have not tried on the answer all questions portion but this post might provide some clues for you.
What's the difference between that and what's already there? It seems the same to me

Maybe the dropdown box is the problem?

EDIT: As I supected, it was adding the drop down box to that line that caused the problem. So know all that's left is the order problem.

EDIT2: Actually, now it just gets stuck on the thank you screen.
Reply With Quote
  #1219  
Old 08-20-2008, 04:22 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farplane dragon View Post
What I mean, is if you look at the 2 pictures I uploaded, if you look at the post, the questions/answers are listed in a different order then on the form. For example, on the form it asks for position and then experience, but in the post it goes, experience then position, I think the next 2 were out of order too.
I see..... you just need to rearrange the items in the formanswers template to the correct position that you want.
Reply With Quote
  #1220  
Old 08-20-2008, 04:29 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farplane dragon View Post
What's the difference between that and what's already there? It seems the same to me

Maybe the dropdown box is the problem?
I will need to figure that out as I have not done that on my side yet. I'll try to take a look at it tomorrow morning (it's now 1.30am over here and I need to get some sleep )
Reply With Quote
  #1221  
Old 08-20-2008, 04:35 PM
farplane dragon's Avatar
farplane dragon farplane dragon is offline
 
Join Date: Mar 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ccplim View Post
I will need to figure that out as I have not done that on my side yet. I'll try to take a look at it tomorrow morning (it's now 1.30am over here and I need to get some sleep )
Yeah, yeah, cool. Thanks for the help so far. I actually got the answer all problem fixed, it's just the "getting stuck on the thank you screen" I have to figure out.
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:24 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.04975 seconds
  • Memory Usage 2,339KB
  • 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
  • (3)bbcode_code
  • (10)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