vBulletin Mods

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

Easy Forms - Create a form or multiple forms without php or html knowledge
by bananalive
08 Jan 2009 19:46

10 Attachment(s)
EASY FORMS FOR vB 4.x here


Easily create forms with no HTML or PHP knowledge. Questions can be made compulsory and are checked before the form is submitted. Forms can be previewed. (You can create multiple forms)

Backwards compatible with vb v3.7.x and 3.6.8

Example Form | Help File | Version History

Question Types:
  • Single line text
  • Multi-line text
  • Multi-select checkboxes
  • Single-select radio buttons
  • Single Select Dropdown
  • Yes/No
  • Multi-line text field using vbeditor (max one per form - limited by vB)
  • Human verification question
  • Custom Question (can query database or do whatever you want)
  • Date (month/ day/ year fields)
Form can Submit to:
  • new thread in forum
  • new post in thread
  • new pm to user
  • email address
  • save to database
Installation:More Features:
  • Form list categories (optional)
  • Preview form (can disable for individual forms)
  • Optional questions
  • Form Sections
  • Prefix support - you can choose which prefix you want thread to have
  • Different thread/pm title to form title with variables {username} {userid} and {q_1} (replacing 1 with appropriate question number)
  • Poll Options: Multiple choice, public vote, poll question, poll options, poll timeout
  • Regular expression match for single line text input field
  • Usergroup permissions per form
  • Forumid/threadid/username can be specified by input via {value=X} in dropdown, single line input or radio buttons
  • Multiple dropdown select for form usergroup permissions (still optional - leave blank to not use)
  • Option to show link to form list in navbar and quick links (separate options)
  • Import/ Export your forms as XML files - great for transferring forms across forums or creating backups
  • Specify bbcode for questions/ answers/ sections for the form's output
  • Form Hooks: (uses php code)
    1. Before form submitted
      Useful for: your own form validation, multiple form outputs, etc.
    2. At form start
      Useful for: banning userids/usergroups from form, setting minimum post count,etc.
  • Attachments allowed for posting new thread
  • Mass Copy Forms & their questions
Coming soon:
  • Allow attachments for posting in thread
Translations:

bananalive 08 Jan 2009 19:49

Version History

v3.7
- Added template hook for form hidden fields
- Added compulsory question * as phrase
- Form Results Table and Form Results Poll moved to templates
- Form Navbar link moved to tempalte
- JavaScript sort results table
- added permissions for Usergroups to view form results (those who can edit forms can also view form results)


v3.6
- Form Results in table format

v3.5
- multiple vbeditors in one form

v3.4
- fixed reported bugs with import/export forms
- added copy forms (multiple times)
- reduced queries on edit form by using vbulletin cache
- Forum drop-down select instead of box for forumid
- fixed post moderation for users posting in forum they couldn't view


v3.3
- disable form preview
- link to forms in navbar when viewing a form only shows if user has permission to view form list
- hidden form fields


v3.2
- prefix support
- $closed= true; in form hook: before submit means thread is closed


v3.1
- Fixed $phrasegroups
- Added poll timeout option


v3.0
- Edit Form Redesigned
- Multiple Form Actions


v2.9
- Redirect to url after form is submitted (accepts $newpost[postid] for newthread being created and $postid for new post in thread being created)
- Custom Form Output Conditionals: <if condition="$q[4]">$qn[4]: $q[4]<else />Field left blank</if>


v2.8
- Added security to prevent possible use of macroses in form inputs by members using form
- Guest only questions
- Modify post top with macroses & bbcode
- Search Form Results saved to database
- Option to not show form on form list (only applicable for those who cannot edit forms)
- Added rel="nofollow" to links on formlist
- Increased performance by consolidating preg_replace functions


v2.7
- Added form start hook
- Fixed form description [center] bbcode not working
- Date question


v2.6
- Save form output to database
- Fixed custom output of checkbox & multi-line
- Fixed guests posting new thread error


v2.5
- Form hook which executes before form is submitted (can be used for more specific field validation)
- Removed human verification question from form output
- Fix bug which prevented double quotes in bbcode


v2.4
- Custom form question

v2.3
- Specify bbcode for questions/ answers/ sections for the form's output

v2.2
- Fixed attachment issue for creating new thread
- Update display order of the questions in edit form screenshot


v2.1
- Fixed issue with resizing poll options on edit form
- Form list only shows in navbar/ quick links if user has permission to view form list
- Form list only contains forms user has permission to view (unless user can edit form)
- Create Form link only shows for users with permissions to create forms
- Fixed missing <tr> tabs around Create new form
- Usergroup permissions changed to allow permissions through secondary usergroups
- Change bbcode for questions and answers easily in plugin
- Change null value easily, needed to stop bbcode messing up (default '-' )


v2.0
- JavaScript re-sizable text-areas
- New macrose {qn_*}
- Import/ Export your forms as XML files - great for transferring forms across forums or creating backups


v1.9
- Attachments for new thread
- Custom output form layout


v1.8
- Forumid/threadid/username can be specified by input via {value=X} in dropdown, single line input or radio buttons
- Human verification question
- Multiple dropdown select for form usergroup permissions (still optional - leave blank to not use)
- Option to show link to form list in navbar and quick links (separate options)
- Form can be emailed


v1.7
- More question variables
- Regular expression match for single line text input field
- Usergroup permissions per form


v1.6
- Poll Options: Multiple choice, public vote, poll question, poll options

v1.4
- Form categories for form list
- vbeditor field
- Thread/pm title with variables


v1.3
- Add sections to forms

v1.2
- Enabled bbcode for form title & description and for form questions and questions' descriptions

v1.1
- Fixed 'Error' displaying in navbar on form submition
- Fixed validation for boolean


v1.0
- Initial Release

bananalive 08 Jan 2009 19:50

reserved post

Trek 08 Jan 2009 21:01

This looks really nice and easy to use. I've already spent way too much time getting the other product FormHack to finally work, but I'll be keeping an eye on this one.

Nice work!

ssslippy 08 Jan 2009 21:26

The vbulletin admin panel needs to be done with check boxes not a scroll list. We have around 30 usergroups and this is a huge pain to scroll through this little box.

Getting this error when creating a form

Quote:

Database error in vBulletin 3.7.4:

Invalid SQL:
UPDATE forms SET title = 'test', description = 'test', displayorder = '1', action = '2', forms.where = '', threadtitle = '', category = '', polloptions = '', pollquestion = '', poll = '0', publicpoll = '0', multiplepoll = '0', usergroups = '', submitmessage = 'test' WHERE fid = '3';

MySQL Error : Unknown column 'submitmessage' in 'field list'
Error Number : 1054
Request Date : Thursday, January 8th 2009 @ 03:01:40 PM
Error Date : Thursday, January 8th 2009 @ 03:01:40 PM
Script : http://www.website.com/forums/misc.p...editform&fid=3
Referrer : http://www.website.com/forums/misc.p...editform&fid=3
IP Address : ***
Username : SSSlippy
Classname : vB_Database_MySQLi
MySQL Version : 5.0.45
Had to manually do "ALTER TABLE forms ADD submitmessage text NOT NULL"

Not sure why it did not update with the upgrade.

vithorius 09 Jan 2009 00:49

Sweet...!

hope this one is easyer to edit than theother one "FormHack"...



Thank You!!! :up: :up:

bananalive 09 Jan 2009 15:14

1 Attachment(s)
Quote:

Originally Posted by ssslippy (Post 1705524)
The vbulletin admin panel needs to be done with check boxes not a scroll list. We have around 30 usergroups and this is a huge pain to scroll through this little box.

Getting this error when creating a form



Had to manually do "ALTER TABLE forms ADD submitmessage text NOT NULL"

Not sure why it did not update with the upgrade.

Import attached file and that should fix the problem

bananalive 09 Jan 2009 15:15

Quote:

Originally Posted by vithorius (Post 1705772)
Sweet...!

hope this one is easyer to edit than theother one "FormHack"...



Thank You!!! :up: :up:

I've tried to make it as simple and easy to use as possible

buurman 10 Jan 2009 11:38

is it possible to make an option to upload attachments in a form?

anuanu 10 Jan 2009 17:03

Found possible error.


When i set the permissions in the "Easy Form Options" It still wont let the user groups view the form. The permission for the Form list seems to work correctly but to view the actual form doesnt.

So far only Administrators can view the form.

bananalive 10 Jan 2009 18:12

Quote:

Originally Posted by buurman (Post 1707137)
is it possible to make an option to upload attachments in a form?

v1.9 (to be released) supports attachments for threads
Quote:

Originally Posted by anuanu (Post 1707435)
Found possible error.


When i set the permissions in the "Easy Form Options" It still wont let the user groups view the form. The permission for the Form list seems to work correctly but to view the actual form doesnt.

So far only Administrators can view the form.

First check your usergroup permissions in Easy Form Options then check the usergroup permissions for the particular form.

bananalive 10 Jan 2009 18:25

1 Attachment(s)
Here's Pre-Release v1.9

anuanu 10 Jan 2009 18:33

Sweet that fixed the problem. But now i found 1 more.

1. When i choose "Field using vb editor" It shows up just fine, however for example:

q_1(vbeditor) answer1
q_2(vbeditor) answer2

outputs this:

q_1(vbeditor) answer2
q_2(vbeditor) answer2


How would i go about using the vbeditor twice?

bananalive 10 Jan 2009 18:50

Quote:

Originally Posted by anuanu (Post 1707547)
Sweet that fixed the problem. But now i found 1 more.

1. When i choose "Field using vb editor" It shows up just fine, however for example:

q_1(vbeditor) answer1
q_2(vbeditor) answer2

outputs this:

q_1(vbeditor) answer2
q_2(vbeditor) answer2


How would i go about using the vbeditor twice?

You can only use the vbeditor once per page - this is limited by vBulletin not me. I don't think a way around it has been found.

Dax IX 11 Jan 2009 05:24

I think this is going to come in handy for several of my sites. :)

I do have a question, tho...I'm trying to add a template conditional to the Forms link in the Navbar, but for some reason nothing I do is working...

It's most likely me because I'm so new at actually writing any code, but if you could let me know how to get template conditionals to work, I'd be very grateful. :)


All times are GMT. The time now is 18:30.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, 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.