Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Easy Forms v4.x - Create a form or multiple forms without php or html knowledge Details »»
Easy Forms v4.x - Create a form or multiple forms without php or html knowledge
Version: 4.3.0, by bananalive bananalive is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.x Rating:
Released: 01-27-2010 Last Update: 10-04-2011 Installs: 1410
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

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)

Screenshots
There are two posts full of screenshots of this modificationInstallation
  1. Download and then extract .zip archive
  2. Upload the contents of upload folder to forum root
    (Allow Overwrite "YES" for overwrite)
    clientscript\easyforms.css -> \clientscript\
    clientscript\easyforms.js -> \clientscript\
  3. Import product file (product-easyforms v4.0.xml) in admincp
    AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  4. Change usergroups permissions at:
    AdminCP -> vBulletin Options -> Easy Form Options
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
  • Human verification question
  • Custom Question (can query database or do whatever you want using php and html)
  • Date (month/ day/ year fields)
  • Address
  • Scale
Form can Submit to:
  • new thread in forum
  • new post in thread
  • new pm to user
  • email address
  • save to database
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
  • Quiz Mode
Support this Modification
  • Click 'Marked as Installed'
  • Rate it 'Excellent'
  • Consider a donation

Download Now

File Type: zip vb_easyforms_v4.3.0.zip (67.6 KB, 4491 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #682  
Old 07-18-2010, 09:06 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nikola Bosnjak View Post
Sssooo usefull mod. Thanks! I have a problem, my "Forum" tab is hiden by "Tabs VbSoporte" mod. After I installed this (Easy Forms) mod, I enabled it as a new tab, and then disabled it in VB Options. After that, my "Forum" tab apears ocasionaly, actualy only when I'm using "misc.php" script, like when I'm editing a form, or when I'm answering to it, etc.

This might not be related to this mod, I can't say becouse I never used misc.php script before, but now this does not looks nice. What can I do exept enabling again a "Forms" tab? Becouse when I enable this tab, "Forum" does not apear, I can enable and disable "Forum" tab by previously mentioned mod.

Is there some trick like I have to uninstall and install back this mod, or manualy edit some template? Disabling and enabling Tabs VB Soporte does not help.
It will probably be to do with Tabs VB Soporte

What settings do you set here: https://vborg.vbsupport.ru/attachmen...4&d=1264001585

Try adding misc to the THIS_SCRIPT field of the tab you want to use instead of "FORUM"
Reply With Quote
  #683  
Old 07-18-2010, 09:08 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetgc View Post
Hi,

Is there any way you can add an 'anonymous' features, so the person who is using the form can submit it anonymously. Like a checkbox feature of something???
Thanks
  1. Edit Form
  2. Add the following to both Form Hook: Form Start: and Form Hook: Before Submit:
    $vbulletin->userinfo['userid'] = 0;
    $vbulletin->userinfo['username'] = 'Anonymous';
Reply With Quote
  #684  
Old 07-18-2010, 09:24 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by riskofficer View Post
Or may be convert Dropdown select to Radio button? Is there a way to do that, so to don't lose all information containing in Dropdown field?

Bananalive, could you please, help me
Added in v4.1.6
Reply With Quote
  #685  
Old 07-18-2010, 09:33 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by riskofficer View Post
Thank you! Do you know where can I change width of dropdown menu? In default there is no such option in EasyForms.
Added in v4.1.6
Reply With Quote
  #686  
Old 07-18-2010, 09:38 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alexm View Post
Does anyone know how to make it so that an attachment is mandatory? Or at least if there is no attachment then put something in the custom output saying so?
Using the quoted code:

I've added line which prevents form being submitted if there are no attachments.

Quote:
Originally Posted by bananalive View Post
Form Hook: Before Submit:
PHP Code:
if (empty($postattach))
{
    
$currentattaches $db->query_read("
    SELECT dateline, filename, attachmentid
    FROM " 
TABLE_PREFIX "attachment
    WHERE posthash = '" 
$db->escape_string($posthash) . "'
    AND userid = " 
$vbulletin->userinfo['userid']
    );

    while (
$attach $db->fetch_array($currentattaches))
    {
        
$postattach["$attach[attachmentid]"] = $attach;
        
$attachcount++;
        
$formoutput str_replace('[attach]'.$attachcount.'[/attach]','[attach]'.$attach['attachmentid'].'[/attach]',$formoutput);
    }
}
if (
$attachcount == 0)
{
    
$complete false;

Then use this in Custom Form Output:

Code:
[attach]1[/attach]
Reply With Quote
  #687  
Old 07-18-2010, 09:39 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pltillman View Post
Is there a way that I can hook into the action of deleting a form entry result?
Sorry there are no hooks at that point.
Reply With Quote
  #688  
Old 07-18-2010, 09:44 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WILFMAN View Post
Is there any way I can stop the form title appearing in the output (post)?

Thanks
Edit Form

Remove the contents of the field: 'Form Output Top BB code'
Reply With Quote
  #689  
Old 07-18-2010, 09:45 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Billspaintball View Post
Bananalive, thank you for all the time and effort that you have put into creating this really handy mod.
I have been keeping an eye on it since it was released, and it now looks like it has all the features that I need.

I have just started playing with setting up some forms on my test system and have a question.
My scenario is that I have a form that submits its output to a forum and into the database.
I want to have a link in the forum post that is submitted that links right back to the edit function for this forms result so that users can easily edit their own form results if needed.

For example the link would be something like - http://testsite/forums/misc.php?do=e...ult&id=3&fid=1
I know I could just link to the list of forms with http://testsite/forums/misc.php?do=formresults&fid=1, but I would prefer to link to the exact form.

How would I get the id= variable to include in the url when submitting?
No. The post gets created before the database entry.

Edit:

Although, if you uncheck 'Save to Database' in Edit Form

Then add the following code to Form Hook: Before Submit:

PHP Code:
    if ($complete && !$show['editing'])
    {
        
$sdata serialize($qo);
        
$db->query_write("INSERT INTO " TABLE_PREFIX "formresults
        (fid, userid, username, time, title, output, sdata)
        VALUES ('"
.$form[fid]."', '".$vbulletin->userinfo['userid']."', '".$db->escape_string($vbulletin->userinfo['username'])."', ".TIMENOW.", '".$db->escape_string($threadtitle)."', '".$db->escape_string($formoutput)."', '".$db->escape_string($sdata)."')
        "
);
        if (
$form[submitmessage])
        {
            
$errormessage $form[submitmessage];
        }
        else
        {
            
$errormessage "Form was submitted successfully.";
        }
        
        
$formoutput .= "\r\n\r\n[url]http://testsite/forums/misc.php?do=editformresult&id=" $db->insert_id() . "&fid=" $fid "[/url]";
    } 
Reply With Quote
  #690  
Old 07-18-2010, 10:00 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alexm View Post
I may be missing something here, but I have my submit limit set to 1 (I only want them to be able to answer a survey once), however as administrator I can't edit any submissions, including my own, without this error: "Error, you have exceeded limit for number of times this form can be submitted."
I did fix that, but it appears to have unfixed itself

Anyways, fixed in v4.1.6
Reply With Quote
  #691  
Old 07-18-2010, 10:09 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alexm View Post
First of all well done on an excellent mod!

I was wondering if there was a way to sort the poll results as they appear in the graphs, either keep the options in the same order they appear in the form or sort them by %. At the moment the order they appear in the graphs seems random?

many thanks,

Alex
In v4.1.6 they are sorted by Decreasing %
Reply With Quote
Reply


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:21 PM.


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.14418 seconds
  • Memory Usage 2,385KB
  • 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
  • (1)bbcode_code
  • (2)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
  • (19)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
  • (1)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