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
  #542  
Old 06-02-2010, 04:22 PM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very interesting i will sure install this thanks for your efforts
Reply With Quote
  #543  
Old 06-02-2010, 08:02 PM
Bobbo Bobbo is offline
 
Join Date: Feb 2003
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would be an easy way to display custom variable data in a form email body. For example, I have a form, the user fills it out and clicks submit. The contents of that form get emailed to someone else. Now, in the Before Submit hook, I have some logic that sets a variable based on how the user filled out the form. I'd like the contents of that variable to be displayed in the body of the email.

The variable is completely custom and based on data returning from a SQL dB lookup.

Any ideas? Geesh, I love this mod. It offers so much flexibility!

********
Figured this out. I simply appended my information to $formoutput, ie, $formoutput .= "My variable: " .$row[variable];
This works fine. I would think there is a way to make it a template variable so I could then use something like {my_variable}, but suspect it might take a lot more work.
********

Bobbo
Reply With Quote
  #544  
Old 06-04-2010, 08:11 PM
rtrm rtrm is offline
 
Join Date: May 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great mod, thanks very much for all your hard work on it.

I have a small issue. When including an entered value for thread title, I can't include the value of the first field. On another form the values of the 2nd and 3rd field are included as {q_3} and {q_4}, so I figured I should use {q_0}, but that isn't recognized and the code is displayed. I tried {q_1}, but that produces nothing.
Reply With Quote
  #545  
Old 06-04-2010, 08:25 PM
vilhiem vilhiem is offline
 
Join Date: May 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to do CALCULATIONS on the fields so when it's appended to the table, a number is generated in a field based on the values entered in other fields ...?
Reply With Quote
  #546  
Old 06-05-2010, 12:20 AM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is one awesome mod...I've been using it since it's debut quite a while back.

Question: I have a situation to where I need to have files to be uploaded. So I direct the form to post into a forum. Problem is, I don't want that particular forum to be seen be anyone but myself, so I set the forum permissions so that only I can see it. This creates a problem with the attachments, it will not allow users to then upload attachments, when that forum is hidden. I can go in and make it so that they can make posts in in, but it is still hidden, and I can turn on that they can upload attachments, but if they can't view the forum, then they can't upload attachments in the form.

I have considered making this forum an "Admin Only" forum, and making so they can't get into it, but I would just rather have it not seen at all. Anyway to make this work?
Reply With Quote
  #547  
Old 06-06-2010, 11:53 PM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rtrm View Post
This is a great mod, thanks very much for all your hard work on it.

I have a small issue. When including an entered value for thread title, I can't include the value of the first field. On another form the values of the 2nd and 3rd field are included as {q_3} and {q_4}, so I figured I should use {q_0}, but that isn't recognized and the code is displayed. I tried {q_1}, but that produces nothing.
You need to use unique ID of that question, not his "position" in that specific form. So if you have question like this:

1. Favorite color _______ (Single Line Text Field) #44 ______ 10

Simply use {q_44} for thread title
Reply With Quote
  #548  
Old 06-07-2010, 06:05 AM
rtrm rtrm is offline
 
Join Date: May 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HolyKiller View Post
You need to use unique ID of that question, not his "position" in that specific form. So if you have question like this:

1. Favorite color _______ (Single Line Text Field) #44 ______ 10

Simply use {q_44} for thread title
Ah! Obvious really. Thanks very much.
Reply With Quote
  #549  
Old 06-07-2010, 07:30 AM
Cedric_FP Cedric_FP is offline
 
Join Date: May 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using the following code:

Code:
$forumid2 = 31;
if ($complete)
    {
        if (!$vbulletin->userinfo['userid'])
        {
            $vbulletin->input->clean_array_gpc('p', array(
                'humanverify' => TYPE_ARRAY,
            ));
            $newpost['humanverify'] = $vbulletin->GPC['humanverify'];
        }
        require_once(DIR . '/includes/functions_editor.php');
        require_once(DIR . '/includes/functions_bigthree.php');
        require_once('./includes/class_dm.php');
        require_once('./includes/class_dm_threadpost.php'); 
        require_once('./includes/functions_databuild.php');
        if (!$closed)
        {
            $open = 1;
        }
        else
        {
            $open = 0;
        }
        $threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
        /*$foruminfo = fetch_foruminfo($forumid);*/
        $threaddm->set_info('forum',$foruminfo);
        $threaddm->set_info('user', $vbulletin->userinfo);
        $threaddm->set('forumid', $forumid2);
        $threaddm->set('userid', $vbulletin->userinfo['userid']);
        $threaddm->set('title', $threadtitle);
        $threaddm->set('pagetext', $formoutput); 
        $allow_smilie = '1';
        $visible = '1';
        $threaddm->set('open', $open);
        if ($form[prefixid])
        {
            $threaddm->set('prefixid', $form[prefixid]); 
        }
        if ($form[iconid])
        {
            $threaddm->set('iconid', $iconid); 
        }
        $threaddm->set('allowsmilie', $allow_smilie);
        $threaddm->set('visible', $visible);
        $threaddm->pre_save();
        $threadid = $threaddm->save();
        unset($threaddm);
        build_thread_counters($threadid);
        build_forum_counters($forumid);  
        if (!empty($threaddm->errors))
        {
            $errorss .= $threaddm->errors;
            $errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
            eval(standard_error($errormessage));
        }
        $threadinfo = fetch_threadinfo($threadid);
        $newpost['postid'] = $threadinfo['firstpostid'];
        mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
        /*($hook = vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false;*/
        if ($form[poll] == 1)
        {
            $question = $form[pollquestion];
            $threadinfo = verify_id('thread', $threadid, 0, 1);
            $polloptions = count($polloption);
            $vbulletin->GPC['options'] = $polloption;
            $counter = 0;
            $optioncount = 0;
            $badoption = '';
            while ($counter++ < $polloptions)
            {
                if ($vbulletin->options['maxpolllength'] AND vbstrlen($vbulletin->GPC['options']["$counter"]) > $vbulletin->options['maxpolllength'])
                {
                    $badoption .= iif($badoption, ', ') . $counter;
                }
                if (!empty($vbulletin->GPC['options']["$counter"]))
                {
                    $optioncount++;
                }
            }
            $poll = datamanager_init('Poll', $vbulletin, ERRTYPE_STANDARD);
            $counter = 0;
            while ($counter++ < $polloptions)
            {
                if ($vbulletin->GPC['options']["$counter"] != '')
                {
                    $poll->set_option($vbulletin->GPC['options']["$counter"]);
                }
            }
            $poll->set('question', $question);
            $poll->set('dateline', TIMENOW);
            $poll->set('active', '1');
            $poll->set('public', $form['publicpoll']);
            $poll->set('multiple', $form['multiplepoll']);
            $pollid = $poll->save();
            $threadman = datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
            $threadman->set_existing($threadinfo);
            $threadman->set('pollid', $pollid);
            $threadman->save();
        }
        if ($form[submitmessage])
        {
            $errormessage = $form[submitmessage];
        }
        else
        {
            $errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $newpost[postid] . "#post" . $newpost[postid] . "\">here</a> to view the thread.";
        }
    }
How would I also create replies to the thread created? The replies don't have to contain form data, they are just standard replies such as "Reserved".

Thanks.
Reply With Quote
  #550  
Old 06-08-2010, 02:03 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vilhiem View Post
is there any way to do CALCULATIONS on the fields so when it's appended to the table, a number is generated in a field based on the values entered in other fields ...?
Form Hook: Before Submit:
PHP Code:
$qo[4] = $qo[4]+1;
$q[4] = $q[4]+1
4 is the question hash
Reply With Quote
  #551  
Old 06-08-2010, 02:26 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by riskofficer View Post
when editing form result, in date field in year cell -- entrie like "2010" is fine, but years 2009, 2008 are shown as "209, 208"

in excel export everything fine
Fixed in attached file
Attached Files
File Type: xml product-easyforms v4.1.4.xml (230.1 KB, 6 views)
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 05:00 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.06625 seconds
  • Memory Usage 2,383KB
  • 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
  • (1)bbcode_php
  • (4)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
  • (2)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