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
  #1112  
Old 07-13-2008, 03:33 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its ok, i fexed my problem, it was something very simple lol.

Thanks,

- David
Reply With Quote
  #1113  
Old 07-14-2008, 07:14 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone has some time, I could use some help over IM in getting this set up for the first time.
Reply With Quote
  #1114  
Old 07-14-2008, 07:35 PM
sparkster666 sparkster666 is offline
 
Join Date: May 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway you could make it so when a form is filled out the person who filled out the application is added to a group??
Reply With Quote
  #1115  
Old 07-15-2008, 04:42 AM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stryker412 View Post
If anyone has some time, I could use some help over IM in getting this set up for the first time.
****************************************

Stryker412,,,
What exactly do ye need help with???

****************************************

sparkster666,,,
YES,,, but it requires some modifications to enchance this mod...
Sorry but I only do simple add-ons to this mod...

****************************************

davida500,,,
I stop by vbulletin.org every three days... Great job finding your issue and fixing...
Reply With Quote
  #1116  
Old 07-15-2008, 12:22 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to edit the forum for a standard application to a clan/guild. I don't understand how to edit the questions and/or delete some of them already there.
Reply With Quote
  #1117  
Old 07-15-2008, 07:25 PM
eternal_ eternal_ is offline
 
Join Date: Mar 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I downloaded, and uploaded in my plugins, when I go to the url, it gives me this

Invalid Forum specified. If you followed a valid link, please notify the administrator.

Why is it not showing up, I did everything correctly, I didn't change the name from form, so I'm going to http://example.com/newthread.php?do=form

I'm using vb 3.7.0
Reply With Quote
  #1118  
Old 07-15-2008, 08:17 PM
eternal_ eternal_ is offline
 
Join Date: Mar 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.

is there something here

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";

that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?

I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
Reply With Quote
  #1119  
Old 07-15-2008, 11:58 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eternal_ View Post
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.

is there something here

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";

that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?

I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
Did you delete the radio buttons entries in the formanswers template too?
Reply With Quote
  #1120  
Old 07-16-2008, 01:56 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Antivirus View Post
Big fan of this mod for a while now Abe1, thanks.

One thing I recently noticed however is that the form template isn't cached when viewing newthread.php?do=form. As we all know, this causes an unnecessary query on the server.

This can be fixed by adding the following plugin to the product at hook location: cache_templates

PHP Code:
if (THIS_SCRIPT == 'newthread' AND $_REQUEST['do'] == 'form')
{
    
// Cache template for Abe1 Form Hack
    
$globaltemplates[] = 'form';
    
$globaltemplates[] = 'formanswers';

thanks!
Reply With Quote
  #1121  
Old 07-16-2008, 02:20 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eternal_ View Post
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.

is there something here

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";

that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?

I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.

You cannot just delete the radio buttons from Part1 and Part2 of the plug-in, you also have to comment them out in the rest of that code. For instance, where it says $radioquestion1, just add a // before that entire part and it will comment it out.

You also need to remove them from the form and formanswers templates by removing the code that references it, and not JUST the $radioquestion1 part, everything that relates to it, starting with the <tr> and ending with the last </tr> that wraps that section of the code...including the radioanswer and $radiochoice code as well.
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 09:28 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.05026 seconds
  • Memory Usage 2,324KB
  • 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
  • (1)bbcode_php
  • (4)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