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 21:17

  #436  
Old 02 May 2007, 13:48
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Lightbulb pack it as a zip and upload and i will check it

Originally Posted by MoB Zigmister View Post
Error: Invalid Forum specified. My url is correct for sure.

When I install the custom form it takes down the unmodified original form, displaying the same error. The theme was also edited, but since the custom plugin made both forms crash it is the root of the problem, no? I can produce the template code if needed.

Any help would be greatly appreciated, especially after 3 nights of failure.

Plugin:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
MoB Zigmister zip all three files ( both templates and plugin) in txt format and upload, I shall check it out 4 ya.???
__________________
Long vacation folks, back 2 dabble and doodle... *** Enjoy the Forums
Reply With Quote
  #437  
Old 02 May 2007, 13:53
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Originally Posted by T_Richardson View Post
I have a flash form and sends data via email. Would anyone know of a way to make a post in the forums by using the data sent by a flash form?

Part of my email.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Yes it should be possible, but it will take some modifications. Zip yo files and upload T_Richardson. I shall take a look into implementing this. I was just thinking about creating some flash forms last month. Very busy so give me some time if you be interested.

Good luck
__________________
Long vacation folks, back 2 dabble and doodle... *** Enjoy the Forums
Reply With Quote
  #438  
Old 02 May 2007, 16:21
samual samual is offline
 
Join Date: May 2007
More fields?

Can someone give me a hand? I am trying to add some more fields to this form. Under "normal question 1" I would like to add a few more questions. here is what I did but had no luck. What do I need to do to get these fields to show up?

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR, (I added)

// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2']; (I added)

$normalquestion1 = "What is your Character's Name";

$normalquestion2 = "Character's Race"; (I added)

I have allot more questions that I would like to add. What am I missimg?
Reply With Quote
  #439  
Old 02 May 2007, 16:25
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Originally Posted by samual View Post
Can someone give me a hand? I am trying to add some more fields to this form. Under "normal question 1" I would like to add a few more questions. here is what I did but had no luck. What do I need to do to get these fields to show up?

I have allot more questions that I would like to add. What am I missimg?
Now you have to look in your templates
"form" template

Look for:
[/code]
<tr>
<td class="alt1" valign="middle">
<b>$question2</b>:<br />
$explain2</td>
<td class="alt1" valign="middle" colspan="2">
<input type="text" size="30" value="$answer2" name="answer2" /></td>
</tr>[/code]

And adjust as needed. Or copy that and change the "$normalquestion2" Same goes for the answer2 values.
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #440  
Old 02 May 2007, 16:26
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
Originally Posted by ComputerVitals View Post
I added a if statement.
It will either show the bbuser[email] or a text input for them to add a email address.

this works great, shows in the post, and in the PM. Also the email you set in the hook sends like it should.
But I also want to send an email to the user that same form.
Any idea how?
I got the the hook to send the form to the registered user as well. But.

I would like to put a link to the thread in the email.
how do I do that?
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #441  
Old 02 May 2007, 17:30
MoB Zigmister MoB Zigmister is offline
 
Join Date: Dec 2006
Originally Posted by Deepdog009 View Post
MoB Zigmister zip all three files ( both templates and plugin) in txt format and upload, I shall check it out 4 ya.???
Sincerely, thanks. Please see attachment.
Attached Files
File Type: zip formhack_MoB.zip (14.0 KB, 22 views)
Reply With Quote
  #442  
Old 02 May 2007, 19:43
samual samual is offline
 
Join Date: May 2007
Originally Posted by ComputerVitals View Post
Now you have to look in your templates
"form" template.
Is that admincp>styles&templates?
Reply With Quote
  #443  
Old 02 May 2007, 22:18
ComputerVitals ComputerVitals is offline
 
Join Date: Oct 2005
yes

By default install you will have 2 new templates
form
formanswers


The form template is the "design" of the form you would type in and submit.
The formanswers template is the email you would get if you added an email address.
__________________
ComputerVitals.com
Your Online Computer Helpline ~ Go ahead and join!
Reply With Quote
  #444  
Old 03 May 2007, 01:21
XxBuLLeTz XxBuLLeTz is offline
 
Join Date: May 2006
Is there anyway I can set it so when they fill out the form and submit it, it counts towards the users post. I have it set to reply to the post, but I just want it to count as an actually post.

Thanks.
Reply With Quote
  #445  
Old 03 May 2007, 03:53
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Originally Posted by MoB Zigmister View Post
Sincerely, thanks. Please see attachment.
Just gotts back, checking on it and will post info by morrow evening.

L8ter...
__________________
Long vacation folks, back 2 dabble and doodle... *** Enjoy the Forums
Reply With Quote
  #446  
Old 03 May 2007, 04:39
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Lower code area had issue

Originally Posted by MoB Zigmister View Post
Sincerely, thanks. Please see attachment.
Error message... Parse error: syntax error, unexpected T_VARIABLE

I found yo problem MoB...

It was here in the PLUGIN...


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

One of yo {{{ OR }}} was missing... I added it on $answer5 or 6...

Take a look at the code there and add the missing {{{ OR }}}...

Kooooooool form U have there...

Good Luck
__________________
Long vacation folks, back 2 dabble and doodle... *** Enjoy the Forums
Reply With Quote
  #447  
Old 03 May 2007, 05:36
MoB Zigmister MoB Zigmister is offline
 
Join Date: Dec 2006
Originally Posted by Deepdog009 View Post
One of yo {{{ OR }}} was missing... I added it on $answer5 or 6...

Take a look at the code there and add the missing {{{ OR }}}...

Kooooooool form U have there...

Good Luck
Thanks a lot. Ahhhh.... It Works!

I took a little time adjusting the template to make it roughly fit more with the "vb" style of forms, throwing in some Legends and threads and such inside some <td>'s. But then again, sometimes you need a fair of fresh eyes to catch errors.

Thanks again.
Reply With Quote
  #448  
Old 04 May 2007, 05:55
ZomgStuff's Avatar
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Arg, I deleted some stuff off the code but it still shows up!
Reply With Quote
  #449  
Old 04 May 2007, 11:46
XxBuLLeTz XxBuLLeTz is offline
 
Join Date: May 2006
Originally Posted by XxBuLLeTz View Post
Is there anyway I can set it so when they fill out the form and submit it, it counts towards the users post. I have it set to reply to the post, but I just want it to count as an actually post.

Thanks.
Can anyone help me?
Reply With Quote
  #450  
Old 04 May 2007, 23:10
Snipa Snipa is offline
 
Join Date: Nov 2004
i have just installed this hack, and i was going about editing it, i have been editing all 3 files to what i want them to be but my form does not show up, it just says invalid fourm specified. i am posting my codes maybe someone can give me a hand, my php skills are very rusty heh. link to form is as follows:

http://www.endeavour-guild.com/forum...d.php?do=eqapp
Attached Files
File Type: txt codes.txt (32.6 KB, 16 views)

Last edited by Snipa; 04 May 2007 at 23:27.
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 03:00.

Layout Options | Width: Wide Color: