Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
Easy Forms - Create a form or multiple forms without php or html knowledge Details »»
Easy Forms - Create a form or multiple forms without php or html knowledge
Version: 3.6, by bananalive bananalive is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 01-07-2009 Last Update: 07-11-2009 Installs: 976
DB Changes Uses Plugins Auto-Templates
Translations  
No support by the author.

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:

Download Now

File Type: xml product-easyforms v3.6.xml (163.0 KB, 2648 views)
File Type: zip vb_easyforms v3.7beta.zip (36.6 KB, 2404 views)

Screenshots

File Type: jpg 7.jpg (83.4 KB, 0 views)
File Type: jpg 8.jpg (88.6 KB, 0 views)
File Type: jpg 9.jpg (89.6 KB, 0 views)
File Type: jpg 11.jpg (69.0 KB, 0 views)
File Type: jpg edit1.jpg (90.1 KB, 0 views)
File Type: jpg edit2.jpg (75.8 KB, 0 views)
File Type: jpg edit3.jpg (103.6 KB, 0 views)
File Type: jpg form_results_table.jpg (87.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
hpidriver, vbresults

Comments
  #662  
Old 03-14-2009, 09:25 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SSG.D View Post
Fantastic mod!!

Got a question though: I'm trying to make a contest registration form thats e-mailed on submit.

When the E-mail arrives it looks like this:

MASTER O WAR TOURNAMENTWhat is your game name? PHOENIX What is your E-mail Address? yourname@email.net Are you a Clan Admin? Yes If Clan Admin, are you Registering your clan Or a small unit? Bulldog, nerdboy

How can I fix this to look like this:

MASTER O WAR TOURNAMENT:

What is your game name? PHOENIX
What is your E-mail Address? yourname@email.net
Are you a Clan Admin? Yes
If Clan Admin, are you Registering your clan Or a small unit? Yes
Bulldog, nerdboy

Any help would be great!!
You have to use the custom form output, here's mine, it displays something like you want:
PHP Code:
[CENTER][B][SIZE=5][COLOR=black]Top Tip[/COLOR][/SIZE][/B][/CENTER]
[
FONT=Arial Black] [SIZE=3][U]Submitted By:[/U][/SIZE][/FONT]   [FONT=Arial] [SIZE=2][I]  $q[20] [/I][/SIZE][/FONT]
[
U][FONT=Arial Black][SIZE=3]Date:[/SIZE][/FONT][/U]  [FONT=Arial]   [SIZE=2][I]  $q[21] [/I][/SIZE][/FONT]
[
U][FONT=Arial Black][SIZE=3]Tip Description[/SIZE][/FONT][/U]
 [
FONT=Arial][SIZE=2][I]$q[10] [/I][/SIZE][/FONT]
[
U][FONT=Arial Black][SIZE=3]Difficulty Of Implementation Level[/SIZE][/FONT][/U][I][FONT=Arial Black][SIZE=1](Easy......Difficult)[/SIZE][/FONT][/I]

[
FONT=Arial][SIZE=2][I]$qo[17] [/I][/SIZE][/FONT]

[
U][FONT=Arial Black][SIZE=3]User Level Required to Adapt Tip[/SIZE][/FONT][/U]

[
FONT=Arial][SIZE=2][I]$qo[18] [/I][/SIZE][/FONT]

[
U][FONT=Arial Black][SIZE=3]Posted Top Tip[/SIZE][/FONT][/U]
[
toptip][I]$q[12][/I][/toptip
and here's a link for how it looks http://www.thecodecage.com/forumz/to...-new-post.html
I had to use php tags to stop it parsing!
Reply With Quote
  #663  
Old 03-14-2009, 10:36 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SSG.D View Post
Fantastic mod!!

Got a question though: I'm trying to make a contest registration form thats e-mailed on submit.

When the E-mail arrives it looks like this:

MASTER O WAR TOURNAMENTWhat is your game name? PHOENIX What is your E-mail Address? yourname@email.net Are you a Clan Admin? Yes If Clan Admin, are you Registering your clan Or a small unit? Bulldog, nerdboy

How can I fix this to look like this:

MASTER O WAR TOURNAMENT:

What is your game name? PHOENIX
What is your E-mail Address? yourname@email.net
Are you a Clan Admin? Yes
If Clan Admin, are you Registering your clan Or a small unit? Yes
Bulldog, nerdboy

Any help would be great!!
Add to end of second Answer BBcode: box
Code:
\r\n
Reply With Quote
  #664  
Old 03-14-2009, 10:38 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Heldenverband View Post
At the moment its not working for me and i dont know why

Here the error message :

PHP Code:
WarnungCannot use a scalar value as an array in [path]/misc.php(100) : eval()'d code (Zeile 2178)

Warnung: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php (Zeile 394)

Warnung: Cannot use a scalar value as an array in [path]/vbcms_global_modules/vbcmsmodul_lasttopics.php (Zeile 129) 
check your options for creating new thread
Reply With Quote
  #665  
Old 03-14-2009, 10:42 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by koolasia View Post
Hey,

Is it possible that when a form has optional questions and if they are not filled than these questions dont appear in the thread created ??
not unless you use custom output
Reply With Quote
  #666  
Old 03-14-2009, 10:47 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hobbybox View Post
First - Thank you for a great application and your support in helping people modify.

With that I have a question.

I have created one form to help members trade items. They fill out the form and it posts to a thread. I have been asked to have a button in someones post where if it is clicked, you would go to the form and that persons name would be in the form already.

I have it now as {username} / $qo1 (or whatever the variable is) so when the form is filled out that information is the thread title - example if I filled out the form would be 'Me / Name of person i type in box"

Is it possible to somehow carry the username of the persons post I am in so that $qo1 spot automaticly fills in so I would not have to type the persons name when a link from that post is clicked and you are taken to the form?

I hope im clear on what im asking - thank you in advance for your help.
This requires Easy Forms v3.3

Add this into postbit template somewhere (or postbit_legacy)
HTML Code:
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>
Import attached file.

form Hook: Form start

PHP Code:
$hiddenfield1 $vbulletin->input->clean_gpc('g''username'TYPE_NOHTML);
if (empty(
$hiddenfield1))
    {
        
$errormessage "Error, this form needs a username.";
           eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
    } 
form Hook: Before Submit

PHP Code:
$hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_NOHTML);
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 
Then you can use {param} in custom output.

if you don't want to use custom output then add a custom question with php code:
PHP Code:
$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $hiddenfield1 '" />'
Reply With Quote
  #667  
Old 03-14-2009, 11:30 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LloydApter View Post
Quote:
Originally Posted by LloydApter View Post
Many thanks for the mod - it's exactly what I need :up:

How can I show the individual results of all submitted form replies to the relevant forum members in easy viewable format?

Something like this (in table format):

Number Name City Reply
1. John London Yes
2. Lloyd Paris No
ect.

Thanks again!
I have reviewed all the material and postings and didn't find any explanation of how to order the results from the form.

Say it's a form to invite people to an event and then afterwards people want to see who is going with their relevant contact details that they completed in the form and also see their names on the list. Or it's a survey and people want to see the results of the survey in worksheet format so they can analyse them... How can this be done?

Many thanks
  1. this uses BB Code Table & Easy Forms v3.3
  2. Create thread/post eg.
    HTML Code:
    [table]column1|column2|column3
    [/table]
  3. Form Hook: Before Submit
    PHP Code:
    if ($complete)
    {
    require_once(
    './includes/class_dm.php');
    require_once(
    './includes/class_dm_threadpost.php');
    $postid 245;
    $postinfo fetch_postinfo($postid);
    $postpagetext str_replace('[/table]'"\r\n $formoutput [/table]"$postinfo[pagetext]);
    $postdm = new vB_DataManager_Post($vbulletinERRTYPE_STANDARD);
    $postdm->set_existing($postinfo);
    $postdm->set('pagetext'$postpagetext);
    $postdm->pre_save();
    if(
    count($postdm->errors) < 1)
    {
    $postdm->save();
    }
    else
    {
    foreach (
    $errors as $error) {
                    
    $errorss .= $error"<br />";
                }
                
    $errormessage "Following errors occurred".$errorss;
                eval(
    'print_output("' fetch_template('STANDARD_ERROR') . '");');
    }
    unset(
    $postdm);

    if (
    $form[submitmessage])
    {
    $errormessage $form[submitmessage];
    }
    else
    {
    $errormessage "Form was submitted successfully. Click <a href=\"showthread.php?" $vbulletin->session->vars['sessionurl'] . "p=" $postinfo[postid] . "#post" $postinfo[postid] . "\">here</a> to view the post.";
    }

  4. Replace 245 with appropriate postid
  5. Use custom output e.g.
    Code:
    $qo[75] | $thisuser[username] | $qo[59]
Reply With Quote
  #668  
Old 03-14-2009, 12:12 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for the info - im going to give it a try

I installed this on a second board - and all is working great (VB 3.8.1 and Easy forms 3.3) but if logged in as a ergular user I cannot upload an attachments...I can do it as an admin so I know it works but im drawing a blank as to why another group cannot do it....

Usergroup permission for attachments set to Yes - that usergroup can add attachments in regular posts but just not the form...any ideas where im not looking?
Reply With Quote
  #669  
Old 03-14-2009, 12:18 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
This requires Easy Forms v3.3

Add this into postbit template somewhere (or postbit_legacy)
HTML Code:
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>
Import attached file.

form Hook: Form start

PHP Code:
$hiddenfield1 $vbulletin->input->clean_gpc('g''username'TYPE_NOHTML);
if (empty(
$hiddenfield1))
    {
        
$errormessage "Error, this form needs a username.";
           eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
    } 
form Hook: Before Submit

PHP Code:
$hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_NOHTML);
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 
Then you can use {param} in custom output.

if you don't want to use custom output then add a custom question with php code:
PHP Code:
$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $hiddenfield1 '" />'
When the member clicks the link how can I make it so the form shows the name of the person the member is going to trade with....I just would like it so the person can see something like 'Trading With: that members name' - I dont want there to be confusion when they are filling out the form now knowing if they have the right name.


****** Scratch this one - I got all to work but im just tinkering with it to figure out how to get the {parm} into the thread title

Ok I tried and I cannot figure out how to get that hiddenvalue into the thread title - the {param} varible works in the form itself but not in the thread title
Reply With Quote
  #670  
Old 03-14-2009, 02:19 PM
LloydApter's Avatar
LloydApter LloydApter is offline
 
Join Date: Mar 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
  1. this uses BB Code Table & Easy Forms v3.3
  2. Create thread/post eg.
    HTML Code:
    [table]column1|column2|column3
    [/table]
  3. Form Hook: Before Submit
    PHP Code:
    if ($complete)
    {
    require_once(
    './includes/class_dm.php');
    require_once(
    './includes/class_dm_threadpost.php');
    $postid 245;
    $postinfo fetch_postinfo($postid);
    $postpagetext str_replace('[/table]'"\r\n $formoutput [/table]"$postinfo[pagetext]);
    $postdm = new vB_DataManager_Post($vbulletinERRTYPE_STANDARD);
    $postdm->set_existing($postinfo);
    $postdm->set('pagetext'$postpagetext);
    $postdm->pre_save();
    if(
    count($postdm->errors) < 1)
    {
    $postdm->save();
    }
    else
    {
    foreach (
    $errors as $error) {
                    
    $errorss .= $error"<br />";
                }
                
    $errormessage "Following errors occurred".$errorss;
                eval(
    'print_output("' fetch_template('STANDARD_ERROR') . '");');
    }
    unset(
    $postdm);

    if (
    $form[submitmessage])
    {
    $errormessage $form[submitmessage];
    }
    else
    {
    $errormessage "Form was submitted successfully. Click <a href=\"showthread.php?" $vbulletin->session->vars['sessionurl'] . "p=" $postinfo[postid] . "#post" $postinfo[postid] . "\">here</a> to view the post.";
    }

  4. Replace 245 with appropriate postid
  5. Use custom output e.g.
    Code:
    $qo[75] | $thisuser[username] | $qo[59]
I get to this page when I tried making these updates:

Quote:
Fatal error: Existing data passed is not an array
Called set_existing in [path]/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in [path]/misc.php(100) : eval()'d code on line 1039
Called eval in [path]/misc.php on line 100
in [path]/includes/class_dm.php on line 235
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code on line 1039
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php on line 100
, /var/www/vhtdocs/userweb61076/html/forum/includes/class_dm.php, 235, Array ([existing] => ,[line] =>
Called set_existing in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code on line 1039
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php on line 100
....
Thanks for all your help
Reply With Quote
  #671  
Old 03-14-2009, 02:24 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LloydApter View Post
I get to this page when I tried making these updates:



Thanks for all your help
Check the postid. Below code checks postid is valid

Form Hook: Before Submit:
PHP Code:
if ($complete)
{
require_once(
'./includes/class_dm.php');
require_once(
'./includes/class_dm_threadpost.php');
$postid 245;
$postinfo fetch_postinfo($postid);
if (!
$postinfo)
{
$errormessage 'Post doesn\'t exist, please alter line $postid = 245 ';
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
}
$postpagetext str_replace('[/table]'"\r\n $formoutput [/table]"$postinfo[pagetext]);
$postdm = new vB_DataManager_Post($vbulletinERRTYPE_STANDARD);
$postdm->set_existing($postinfo);
$postdm->set('pagetext'$postpagetext);
$postdm->pre_save();
if(
count($postdm->errors) < 1)
{
$postdm->save();
}
else
{
foreach (
$errors as $error)
{
$errorss .= $error"<br />";
}
$errormessage "Following errors occurred".$errorss;
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
}
unset(
$postdm);

if (
$form[submitmessage])
{
$errormessage $form[submitmessage];
}
else
{
$errormessage "Form was submitted successfully. Click <a href=\"showthread.php?" $vbulletin->session->vars['sessionurl'] . "p=" $postinfo[postid] . "#post" $postinfo[postid] . "\">here</a> to view the post.";
}

Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 07:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06776 seconds
  • Memory Usage 2,472KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_html
  • (11)bbcode_php
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete