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
  #512  
Old 07-01-2007, 01:22 AM
lokki lokki is offline
 
Join Date: Mar 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On the v4 release, under 3.6.7 PL1, I can't get anything but the installed generic form to work properly. The error is "Invalid forum specified". Here's what I've tried so far:

Created a new plugin called "My Form", with $formname = "formtest"
Modified the variables and created two new templates, form_test and form_test_response

During development of my templates on v3.6 of the Form Hack, everything was working just fine, then it suddenly died.

If I have only the Form Hack default enabled, then do=form works as expected. However, if I enable a 2nd form, with a new $formname, the default even fails. Disabling the default does not get the 2nd form to work.

Any thoughts?
Reply With Quote
  #513  
Old 07-01-2007, 02:42 PM
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 lokki View Post
On the v4 release, under 3.6.7 PL1, I can't get anything but the installed generic form to work properly. The error is "Invalid forum specified". Here's what I've tried so far:

Created a new plugin called "My Form", with $formname = "formtest"
Modified the variables and created two new templates, form_test and form_test_response

During development of my templates on v3.6 of the Form Hack, everything was working just fine, then it suddenly died.

If I have only the Form Hack default enabled, then do=form works as expected. However, if I enable a 2nd form, with a new $formname, the default even fails. Disabling the default does not get the 2nd form to work.

Any thoughts?
Lokki double check yo new form 4 something added by mistake...

If U get a parse error and page wont show then its usually a typo somewhere in your new form...

Use process of elimination, redo yo form from scratch and take it one step at a time until its ALIVE and kicking...

I suggest delete and start over, look close at templates and plugin and verify that its as ABE1 instructions say do...

If U still have issues upload yo file in txt format and I will take a look C...

Good Luck
Reply With Quote
  #514  
Old 07-05-2007, 06:40 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My forum is still at vb3.5.x running version Form Hack v3. I'm looking to upgrade to the latest version of vB and Form Hack v4... will my existsing forms work after the upgrade or will I need to redo them for Form Hack v4?
Reply With Quote
  #515  
Old 07-05-2007, 08:30 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello its been awhile since ive messed with vb. but i recently purchased 3.6.7

if i install this and use it in a 'classifieds' forum for submitting items, will the member use the 'new thread' button to get this form. or is the form displayed somewhere in my specified forum? can someone show me a working example?

thanks very much.
Reply With Quote
  #516  
Old 07-05-2007, 08:57 PM
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 criscokid View Post
My forum is still at vb3.5.x running version Form Hack v3. I'm looking to upgrade to the latest version of vB and Form Hack v4... will my existsing forms work after the upgrade or will I need to redo them for Form Hack v4?
Criscokid, this 3.6 Form Hack by ABE1 has some changes in the PLUGIN code...

So I would have 2 say yes U will have 2 make a few code mods 2 your old 3.5 files...{plugin code} 4 sure...

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

Patrickstar, U can make a custom button in the forumshome 2 click on. It will then redirect 2 forms or Just make forms and then send guests or member straight there by linking...

ABE1 has it so that U goto this default link... http://vbulletin.org/forums/newthread.php?do=form ...

Read ABE1 install intro and then goto plugin hook area as listed on last 2 pages and go from there...

Good Luck
Reply With Quote
  #517  
Old 07-05-2007, 10:33 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post

Patrickstar, U can make a custom button in the forumshome 2 click on. It will then redirect 2 forms or Just make forms and then send guests or member straight there by linking...

ABE1 has it so that U goto this default link... http://vbulletin.org/forums/newthread.php?do=form ...

Read ABE1 install intro and then goto plugin hook area as listed on last 2 pages and go from there...

Good Luck
thank you. i created a classifieds forum where new threads will not be allowed. so by adding this hack it will be the only way to add a item for sale and i dont feel the need to allow posting. i want the classifieds very simple and straight forward. contact info will be in the form.

one other question.....will the members profile that created the form show up in the thread? something else i dont want.

thanks for the replies.
Reply With Quote
  #518  
Old 07-07-2007, 06:40 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and working great. although it does take some time to learn and the instructions in the plugin mentions something about "do not have qoutation marks or else you get error blah blah"

well i kept taking the qoutation marks out, and i kept getting the error. so that was confusing.

i think this will make my classifieds forum just what i need. but i need a few tweaks.

i would like to find a way to have the form posted but NOT show the userinfo in that forum.

can i modify the plugin or will i have to modify a vb template? i was thinking i might have to write some conditional, either to exclude member info for that specific forum, or write it to include member info in all other forums. the latter be a little more harder.
Reply With Quote
  #519  
Old 07-08-2007, 02:05 PM
MoJo Smirnoff MoJo Smirnoff is offline
 
Join Date: Sep 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, decided to make another form...and eventually want to make more. But...i want to make these forms with a lot fewer questions than the default form.

I edit the form in the PHP, but the buttons and such sill show up in the form. Have read and read on here about how to fix this, but still dont get it. If I have 2 forms, how do i edit the 2nd one to have fewer questions/answers than my main form. I don't want to remove stuff from other forms!

Any help would be appreciated.....thanks!
Reply With Quote
  #520  
Old 07-08-2007, 03:42 PM
MoJo Smirnoff MoJo Smirnoff is offline
 
Join Date: Sep 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, common sense kicked in and I got it set. create new templates and then change template info in the code....works like a charm!



how do i get the output info to have the questions in bold font. tried in answers template, but gave me error

thanks
Reply With Quote
  #521  
Old 07-09-2007, 03:17 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 MoJo Smirnoff View Post
ok, common sense kicked in and I got it set. create new templates and then change template info in the code....works like a charm!



how do i get the output info to have the questions in bold font. tried in answers template, but gave me error

thanks
MoJo Smirnoff...
Use html editor and edit text in master template or U may have 2 use bbcodes in answer template...

************************************************
patrickstar Im not sure about yo question, ABE1 can help U better...

I hope all goes 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 05: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.05657 seconds
  • Memory Usage 2,330KB
  • 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_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