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
  #672  
Old 10-25-2007, 02:35 AM
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
There must be a way to replace the following statement and include an input for thread title in it in its place.

$formtitle = "Lodging Form Submission";

Any ideas?
Looking for an anwser as well.....

But I'm thinking it may lay with this bit of code.
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle = "$formtitle";
Reply With Quote
  #673  
Old 10-26-2007, 04:04 AM
xplicit.syrian xplicit.syrian is offline
 
Join Date: Jan 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need some help please, could someone tell me how to edit this plugin? It says instructions are inside the hook, what hook?
Reply With Quote
  #674  
Old 10-26-2007, 04:12 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 xplicit.syrian View Post
I need some help please, could someone tell me how to edit this plugin? It says instructions are inside the hook, what hook?
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.

To actually make the posting and email forum display the way you want you will have to edit the templates "form" and "formanswers".
Reply With Quote
  #675  
Old 10-26-2007, 04:47 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 ComputerVitals View Post
Looking for an anwser as well.....

But I'm thinking it may lay with this bit of code.
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////
 
$posttitle = "$formtitle";
Alright. I got it.

First you have to create a NORMAL INPUT BOX.
I will use $normalquestion1 as the example

once that is all set up then you can replace
$posttitle = "$formtitle";

to the following
$posttitle = "$normalanswer1";

Once this is done then what ever the user answers for $normalquestion1 will be the title of the thread.

The downfalls to this are if the users does not type an answer to $normalquestion1 then they click SUBMIT, the form will not get transmitted and all will be lost. So here is what I recommend to avoid this. If you still include $formtitle in the same place but add $normalquestion1 with it then it will still include the form title if the users forgets to answer $normalquestion1. This way the form will not get lost if they transmit it without answering $normalquestion1.

Here is how I do it.

Find:
$posttitle = "$formtitle";

replace with:
$posttitle = "$normalanswer1 = $formtitle ";


Gosh, I hope all this made sense.
Reply With Quote
  #676  
Old 10-26-2007, 05:29 AM
xplicit.syrian xplicit.syrian is offline
 
Join Date: Jan 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.

To actually make the posting and email forum display the way you want you will have to edit the templates "form" and "formanswers".
Your great! thank you for the help. Instead of going to that page i went to product manager and i kept on getting nothing.

Thanks! and great plugin!
Reply With Quote
  #677  
Old 10-26-2007, 10:22 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there... 1st of all.. thanks a bunch for this hack...
i'm new to vbulletin.. please can u give lil bit more detailed instructions to install this hack???
i've imported xml but couldn't find where to set the form... how to change the fields in forms... & when user clicks on newtopic, he should directly see the form & after submitting that form, data will get posted in thread automatically!

i tried this : /newthread.php?do=form
i got 1 form.. did all the things in it.. but when i clicks submit, it didnt posted any thread..
kindly help..
& extreamly sorry for my bad english
Reply With Quote
  #678  
Old 10-26-2007, 06:13 PM
periphrastic periphrastic is offline
 
Join Date: Jul 2007
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the hack. i really like - everything is cool

my only problems is that after i hit submit, i get a white page. i've disabled all plugins, and only allowed this one (to make sure there wasn't some kind of interference), and the white pages still occur. the form posts just fine, but i have to go "back" and then manually go to the forum in which it's posted, to actually locate the thread - but the immediate response i get after "submit" is a white page. in consideration of this, would you have any quick recommendations? thanks for your time.
Reply With Quote
  #679  
Old 10-26-2007, 08:54 PM
mauro1947 mauro1947 is offline
 
Join Date: Nov 2006
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
There are 2 template edits to make the attachements work. Make sure you did both. You can also test it by clicking 'preview'.
Inside zip file there is no instruction about this...
Reply With Quote
  #680  
Old 10-28-2007, 05:32 PM
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
Alright. I got it.
Gosh, I hope all this made sense.

Works great!!
Thanks a bunch
Reply With Quote
  #681  
Old 10-30-2007, 12:11 AM
Lord Kuam Lord Kuam is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having an issue getting a working link for my product. When I changed the formname, I could no longer pull it up (for example, I changed the formname to simply "support" instead of "form" and when I would type my link it, it would be a blank white page).

So I deleted and uninstalled the entire plugin and decided to start from scratch. Now, when I type in the link /newthread.php?do=form into my browser, it tells me THAT is an invalid URL. The plugin is active and now I'm at a point where I really have no clue.

It's probably best if someone gave me the heads up on what exactly I need to change when I want to change the titles of my forms so I can get correct links.

Thanks
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 04:39 AM.


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.05477 seconds
  • Memory Usage 2,331KB
  • 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
  • (6)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