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: 6050
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:	21067
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

  #166  
Old 05 Nov 2006, 15:08
bahattab bahattab is offline
 
Join Date: Jun 2005
Unhappy

hi

could any one help me :surprised:

i am trying to use this hack but i did not know how to use it.

is there any Tutorial for changing this hack to what i want ? :surprised:

how to the form name ?
how to change the fields ?
how to change the variables in both the form and the form answer ?

thenks
regards
Emad Bahattab
Reply With Quote
  #167  
Old 12 Nov 2006, 00:33
dutchbb dutchbb is offline
 
Join Date: Dec 2003
Is it possible to place the attachment somewhere in the post instead of on the bottom? A variable in formanswers for attachments would be nice

Great hack
Reply With Quote
  #168  
Old 12 Nov 2006, 06:26
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by dutchbb
Is it possible to place the attachment somewhere in the post instead of on the bottom? A variable in formanswers for attachments would be nice

Great hack
I can't make it change the way vb puts the attachments.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #169  
Old 12 Nov 2006, 11:00
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
I am trying to make this.

I choose a forum that the registered users can't view. I have only make this selections in the forum permissions "Can View Forum = No" and the others yes. (and of course the can post and can upload attachment permissions is set to yes).

The problem is I run the form like a simple registered user, the attach table and button appears, but when I click in the button in the pop up window it says with a message that you can't post attachment.

If I change this permission "Can View Forum = Yes" everything works well.

The problem is that I don’t want the simple registered users see the answers and of course to downloads the attachments.

How can I fix that?
Reply With Quote
  #170  
Old 12 Nov 2006, 12:38
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
I solve it! For anyone that wants to know.

1) Ftp Server
Create a copy of newattachment.php --> newattachmentmine.php

2) VBulletin Templates
Create a new clone of newattachment, newpost_attachment, newpost_attachmentbit, newpost_attachment, newattachment_errormessage, newattachment_keybit, template, for example newattachmentmine, newpost_attachmentmine, newpost_attachmentbitmine, newpost_attachmentmine, newattachment_errormessagemine, newattachment_keybitmine.

Into this templates replace the value newattachment.php with the new newattachmentmine.php file.

3) Form Hack PHP

Replace the values newattachment.php, newpost_attachment, newpost_attachmentbit to the new one newattachmentmine.php,newpost_attachment_mine,newpost_attachmentbit_mine.

4) In this file newattachmentmine.php replace all this templates newattachment, newpost_attachment, newpost_attachmentbit, newpost_attachment, newattachment_errormessage, newattachment_keybit, with the new.

Also find this code (normally in line 79)


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

Remove this from the if.


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

Like this.


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

After that if you change the permission setting in a forum "Can View Forum = No" and the others yes. Users can post the form and can attach files normally, but they can’t see the answer post.

I think maybe it’s useful for someone this trick.

P.S. Be careful, because if you don’t do that correctly may you corrupt the form or the attach option of your site.

Last edited by civil78; 12 Nov 2006 at 18:29.
Reply With Quote
  #171  
Old 15 Nov 2006, 22:39
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Question Where is new form field data stored if database is unaltered?

Hello.

Where is new form field data stored if the database is unaltered?


Thanks in advance.
Reply With Quote
  #172  
Old 16 Nov 2006, 01:43
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by timetunnel View Post
Hello.

Where is new form field data stored if the database is unaltered?


Thanks in advance.
Plug-in and template.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #173  
Old 16 Nov 2006, 05:50
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Question

Thanks for your reply.

Let me ask it another way...

what I mean is, when the data from the new form fields is submitted, where does that data go if the database is not revised to store that data -- to a flat file?

Thanks again, in advance.
Reply With Quote
  #174  
Old 16 Nov 2006, 06:15
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by timetunnel View Post
Thanks for your reply.

Let me ask it another way...

what I mean is, when the data from the new form fields is submitted, where does that data go if the database is not revised to store that data -- to a flat file?

Thanks again, in advance.
Of course it goes into the database.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #175  
Old 16 Nov 2006, 07:02
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Red face

Thanks again for your reply.

I guess I somehow overlooked finding 'how' the fields were added to the database when I looked at the xml file.

I'm still learning this stuff...

Thanks.
Reply With Quote
  #176  
Old 16 Nov 2006, 15:08
mkinnov8 mkinnov8 is offline
 
Join Date: Oct 2006
Real name: Kev
thanks to ChrisBaktis for having the problems he was having, and to those who helped solve it, been having exactly the same issue, and its now fixed from reading this thread. Thanks to the original author, but you have to expect questions with every release.
Reply With Quote
  #177  
Old 16 Nov 2006, 16:54
Mirage Guardian Mirage Guardian is offline
 
Join Date: Jul 2006
Originally Posted by Mirage Guardian View Post
after installing, I got a database error when I call "newthread.php?do=form"

Database error in vBulletin 3.6.1:

Invalid SQL:
SELECT * FROM forumpermission
WHERE ( forumid IN() AND usergroupid IN (6)) AND
(maxthread=0 AND perhour=0);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND usergroupid IN (6)) AND
(maxthread=0 AND perhour=0)' at line 2
Error Number : 1064
The normal "newthread.php" syntax is:
http://my/forum/path/newthread.php?do=newthread&f=2
and when i call "newthread.php?do=form&f=2", the form start, but never submit and give the same database error.
What shall i do?
Reply With Quote
  #178  
Old 17 Nov 2006, 00:06
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Real name: Roms
Thanks Abe, you're awesome.
__________________
Former vBulletin.org Staff Member

- Roms, \m/ Rock on!

"We are the vBorg. You will be assimilated!"



Please do not contact me via PM or E-Mail to answer questions about a modification, please use the relevant thread or forum. I don't do custom work.
Reply With Quote
  #179  
Old 22 Nov 2006, 11:37
Glynn58 Glynn58 is offline
 
Join Date: Jul 2006
I need a very simple form to email answers to the questions.

Can I make this auto complete the users username and email address and include this in the email?

Like the standard Vbulletin contact us form does.

Many thanks
Reply With Quote
  #180  
Old 23 Nov 2006, 18:16
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Multiple email addressees and slowwww

Great mod. But then again, so was the 3.5 version.

I'm having two problems.
I am unable to send to multiple email addresses.
The two addresses are separated with a ;. Only one is sent.
Version 3.5 worked with multiple addresses using a ,.
Both versions take a long time to send copy of the form to the email addresses.
__________________
...steven
www.318ti.org
forum.nccbmwcca.org
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:36.

Layout Options | Width: Wide Color: