Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Form Hack Details »
Form Hack
Mod Version: 4.1, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (76 votes - 4.51 average) Installs: 1213
Released: 15 Sep 2006 Last Update: 24 Apr 2008 Downloads: 6039
Not Supported Uses Plugins Template Edits  

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

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	form.JPG
Views:	21052
Size:	147.2 KB
ID:	53487  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases Ajax add-on Form Hack Deepdog009 vBulletin 3.6 Template Modifications 23 22 Sep 2008 20:17

  #661  
Old 16 Oct 2007, 13:37
wolfe wolfe is offline
 
Join Date: Jan 2002
the attahment option is not showing up m8 ?

all code there and its set to allow them ?
__________________
Thanks
Reply With Quote
  #662  
Old 17 Oct 2007, 06:50
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Real name: Robert Isaac
form template version issue

Great mod, but had to play around a while til I got the hang of setting it up.

Looked in my forum database this morning at some templates and noticed there is a version 3.5 and version 4 of the form template there. I have never installed another version of this at all before version 4 yesterday. Anyone got the same?

Bob
Reply With Quote
  #663  
Old 19 Oct 2007, 19:31
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Is there a way we can have the form so the person fills out the thread title?
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #664  
Old 20 Oct 2007, 17:31
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Originally Posted by ComputerVitals View Post
Is there a way we can have the form so the person fills out the thread title?
I was just about to post the same question.

It would be nice if we could either have the user fill out the thread title or have one of the variables in one of the answer blocks be used as the thread title.
Reply With Quote
  #665  
Old 20 Oct 2007, 20:00
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Real name: Robert Isaac
Gap in form output to thread

I have a form in our car sales section, see the attachment form.jpg for the bottom of the form. The second attachment form_output.jpg shows a big gap. I cannot find what is causing this, any ideas from anyone.

Bob

EDIT: Figured it out
</td>
</tr>
</td>
</tr>
<if condition="$attachmentoption">
should be
</td>
</tr>
<if condition="$attachmentoption">
Attached Images
File Type: jpg form.jpg (25.0 KB, 27 views)
File Type: jpg form_output.jpg (11.9 KB, 26 views)

Last edited by firstrebel; 20 Oct 2007 at 20:12. Reason: Fixed
Reply With Quote
  #666  
Old 21 Oct 2007, 17:58
criscokid criscokid is offline
 
Join Date: Nov 2003
Hi Abe1,

Are you going to be developing this fanatastic mod further? If you are here's some ideas I'd love to see implimented in a future version:

1: A number of characters already used in a specific input box.
2: A form that creates an entry in the calendar.
Reply With Quote
  #667  
Old 22 Oct 2007, 03:03
NeilK NeilK is offline
 
Join Date: Oct 2007
Two things:

The text I have in $formpurpose scrolls off the side of the page, past the normal edge of the forum. Is there a setting to correct this?

Also, I'm looking to make the post that is generated by the hack point to the USERID of the person that submitted the form. Specifically, I want to create a URL in the generated post that points to the Mod/Admin CP for the posting user, so we may edit a setting. I tried 100 different things to get a working userid variable in the post, but I am too green at this I suppose.

Any ideas?

Regards,

Neil

Last edited by NeilK; 22 Oct 2007 at 12:16. Reason: corrected a misspelled word
Reply With Quote
  #668  
Old 22 Oct 2007, 18:38
criscokid criscokid is offline
 
Join Date: Nov 2003
Originally Posted by NeilK View Post
The text I have in $formpurpose scrolls off the side of the page, past the normal edge of the forum. Is there a setting to correct this?
$formpurpose should just wrape on to the next line. It sounds to me that you probably haven't got the table quite right - closed off a <td> with a </td> in the correct place or the space $formpurpose is in is spanning more columns than it's supposed to.
Reply With Quote
  #669  
Old 24 Oct 2007, 04:53
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
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?
Reply With Quote
  #670  
Old 24 Oct 2007, 22:03
xplicit.syrian xplicit.syrian is offline
 
Join Date: Jan 2007
Hi there,

I am sorry i didn't completely read the whole 45 pages here but i need some help.

I installed the form hack but i don't know how to configure it/ change/ create new forms. In the instructions it says customize it VIA the hook but what hook? Where do i have to go to customize it?

Thank you
Reply With Quote
  #671  
Old 25 Oct 2007, 03:35
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #672  
Old 26 Oct 2007, 05:04
xplicit.syrian xplicit.syrian is offline
 
Join Date: Jan 2007
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
  #673  
Old 26 Oct 2007, 05:12
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
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
  #674  
Old 26 Oct 2007, 05:47
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Originally Posted by ComputerVitals View Post
Looking for an anwser as well.....

But I'm thinking it may lay with this bit of code.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
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
  #675  
Old 26 Oct 2007, 06:29
xplicit.syrian xplicit.syrian is offline
 
Join Date: Jan 2007
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 05:00.

Layout Options | Width: Wide Color: