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
  #1172  
Old 08-06-2008, 06:31 AM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VB memory optimization for Form Hack: As you noticed, the plugin for the form hack is large. Since VB stores plugin code in memory, this module uses relatively a lot of memory. Also every time you need to edit the plugin, VB parses the code for color coding which takes 5+ secs before you can edit. To save memory and enable faster editing of the form hack plugin: 1. create a new file in WordPad, 2. cut and paste ALL the form hack code into that new file, 3. add a <?php tag at the very beginning and a ?> tag at the very end of the file., 4. save the file with a php extension, (ie: form_hack.php). 5. insert this code into the form hack plugin (the period indicates the path is relative to the VB forum directory):
Quote:
include('./modules/form_hack.php');
That's it. VB can now dynamically load the module only when needed, and you don't need to wait for VB to parse the code whenever editing the form hack code.
Reply With Quote
  #1173  
Old 08-06-2008, 08:43 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbboarder View Post
VB memory optimization for Form Hack: As you noticed, the plugin for the form hack is large. Since VB stores plugin code in memory, this module uses relatively a lot of memory. Also every time you need to edit the plugin, VB parses the code for color coding which takes 5+ secs before you can edit. To save memory and enable faster editing of the form hack plugin: 1. create a new file in WordPad, 2. cut and paste ALL the form hack code into that new file, 3. add a <?php tag at the very beginning and a ?> tag at the very end of the file., 4. save the file with a php extension, (ie: form_hack.php). 5. insert this code into the form hack plugin (the period indicates the path is relative to the VB forum directory):
That's it. VB can now dynamically load the module only when needed, and you don't need to wait for VB to parse the code whenever editing the form hack code.
Great tips! Thanks for sharing that :up: This would be useful for me since I got pretty much customizations.
Reply With Quote
  #1174  
Old 08-06-2008, 11:58 AM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stryker412 View Post
I don't get an error but the thread title looks like this if I have the code as:

$posttitle = "$formtitle - $bbuserinfo[username]";

Thread shows as Community Member Application -

No user name shows.
Has anyone figured this out yet?
Reply With Quote
  #1175  
Old 08-09-2008, 12:54 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone, anyone? Bueller?
Reply With Quote
  #1176  
Old 08-09-2008, 07:08 PM
swisscotton swisscotton is offline
 
Join Date: Apr 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just installed this but I can't set it up. I am a designer, not a programmer and there are no instructions just a few lines. I have been reading what it says in the "hook" (took me long enough to find out what was meant by hook) done everything it says in there and I get the message "Invalid Forum specified. If you followed a valid link, please notify the administrator" when I try and preview it. I mean how is this done? Do I set up a forum? What?
I need a form and this is the only one I have seen but there are not enough instructions, it kind of assumes you already know what you’re doing. Can anyone point me in the right direction?

Emma
Reply With Quote
  #1177  
Old 08-10-2008, 02:22 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by swisscotton View Post
I have just installed this but I can't set it up. I am a designer, not a programmer and there are no instructions just a few lines. I have been reading what it says in the "hook" (took me long enough to find out what was meant by hook) done everything it says in there and I get the message "Invalid Forum specified. If you followed a valid link, please notify the administrator" when I try and preview it. I mean how is this done? Do I set up a forum? What?
I need a form and this is the only one I have seen but there are not enough instructions, it kind of assumes you already know what you?re doing. Can anyone point me in the right direction?

Emma

To edit your form, you need to open the form hack plugin, Scroll down through it, you will see
everything you are looking for.
Reply With Quote
  #1178  
Old 08-10-2008, 02:57 PM
BlueBulletRL BlueBulletRL is offline
 
Join Date: Apr 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In our forum our for sale and wanted to buy sections require you to have a minimum post count. How can I get it so it requires that minimum post count??? I am thinking that once they hit the new thread button it tells them no they can't.
Reply With Quote
  #1179  
Old 08-11-2008, 02:45 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hate to keep bumping this but has anyone figured out how to correctly put the user's name in the title of the thread created? As I stated before I put
$posttitle = "$formtitle - $bbuserinfo[username]";

However, no name ever shows for the title.
Reply With Quote
  #1180  
Old 08-11-2008, 02:57 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It displays the applicants name automatically in the Thread. Show a SS of what you see whn Thread is made.
Reply With Quote
  #1181  
Old 08-11-2008, 03:44 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
It displays the applicants name automatically in the Thread. Show a SS of what you see whn Thread is made.
In the thread yes, but I'm trying to get it to show in the thread title so we can keep them separate.
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:01 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.06728 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
  • (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