vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=126676

Form Hack
by Abe1
15 Sep 2006 07:21

2 Attachment(s)
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

flomsen 15 Sep 2006 08:43

1000 thx, just what i have wating for :)


how can user set there owns Title: ? now it show Generic Form

and i need some help to add a form to set in picture link, and that will show pic in post.


sorry for my english


/Flomsen

Hornstar 15 Sep 2006 09:57

Yeah i think i remember your old one of this, it was really good. Thanks.

Spinball 15 Sep 2006 10:18

Thanks Abe.
Question, though. Despite uploading an attachment, it isn't appearing in the post. What can I do to track down the problem?

Lizard King 15 Sep 2006 12:37

Nice hack Abe :)

Reece^B 15 Sep 2006 12:52

Great Hack.

beduino 15 Sep 2006 13:43

tks abe1!!!!!!!!
all the best
beduino
ps. why i can't 'nominated this hack' when i click in link? :(

Abe1 15 Sep 2006 13:44

Quote:

Originally Posted by beduino
tks abe1!!!!!!!!
all the best
beduino
ps. why i can't 'nominated this hack' when i click in link? :(

You can only nominate once a month. Feel free to do it next month.

Abe1 15 Sep 2006 13:45

Quote:

Originally Posted by Spinball
Thanks Abe.
Question, though. Despite uploading an attachment, it isn't appearing in the post. What can I do to track down the problem?

There are 2 template edits to make the attachements work. Make sure you did both. You can also test it by clicking 'preview'.

Snake 15 Sep 2006 14:39

Just what I was looking for.

Works on v3.5?
by mschvili
15 Sep 2006 14:54

Wow. You're the man, Abi. Now I can start up my support service. Been wating for this update first.

A question, I don't want to go through an update of our vBulletin yet. So, would v4.0 Form Hack work also on vBulletin v3.5?

Matti.

|oR|Greg 15 Sep 2006 15:04

Important FYI - If you have "Guest Post Image Verification" turned on, posting to a thread will not work because the form hack doesn't integrate the Image Verification system.

|oR|Greg 15 Sep 2006 15:32

Oh and attachments don't work for unregistered users.

Abe1 15 Sep 2006 15:55

Quote:

Originally Posted by mschvili
Wow. You're the man, Abi. Now I can start up my support service. Been wating for this update first.

A question, I don't want to go through an update of our vBulletin yet. So, would v4.0 Form Hack work also on vBulletin v3.5?

Matti.

I'm not sure. The attachment structure may be differant.

|oR|Greg 15 Sep 2006 16:21

Abe, How do I format the results of the form without allowing the use of HTML in threads? I want to bold the questions once it's posted to the thread and of course in the preview... but I can't use BBCode in a template, and HTML in the form doesn't display in the thread... ?


All times are GMT. The time now is 03:45.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.