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
  #392  
Old 04-06-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 Tortikova View Post
Have you got sidebar widget for last active voting?
Huh?
Reply With Quote
  #393  
Old 04-06-2010, 10:10 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stuky4ever View Post
Im not using a custom output, and non of that worked.
Try upgrading to latest version.
Reply With Quote
  #394  
Old 04-06-2010, 10:10 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cedric_FP View Post
Can this form product customize output (when creating a new thread) of specific questions.

For example:

Question 1: How old are you?


Output:
  • 22 years old
Yes there is an option to create custom output when edit each form.
Reply With Quote
  #395  
Old 04-06-2010, 10:13 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Selcor View Post

Thank you very much!, You're right!.


I do not understand much English language:

In the section Edit Form - Thread / PM / Email Title use {q_*}
In the section Form BB code and Custom Output use {qo_*}

What is the difference between {q_*} {qo_*} and {qn_*} ???.

Edit:

Understood the difference between {qo_*} and {qn_*}.
{qo_*} sends the response and {qn_*} send the question.

One suggestion for future versions:
?One could be used ID relative and not absolute?, because when you copy a Form, it changes all the ID and we have to re-edit the entire Form.

Thanks!
The problem with relative question hashes is that if you re-order the questions then it would mess up all of the custom output.

I have added the option of 'Reference Name:' when creating/editing questions which can be used instead of question hashes and would remain the same when copying forms.
Reply With Quote
  #396  
Old 04-06-2010, 10:16 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kemical View Post
Thank you for this awesome mod!

Is there a way to have a form post to two separate forums at the same time? I run a forum for a World of Warcraft guild, and I setup a form for people applying to our guild. Right now the form posts to a public forum, but I would like it to also be posted to a more restricted forum as well.
You could copy the code for posting a new thread into Form Hook: Before Submit:

(Changing forumid 31 to your preferred forumid in line 1 of code below)

PHP 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($vbulletinERRTYPE_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'$threadid01);
            
$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'$vbulletinERRTYPE_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'$vbulletinERRTYPE_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.";
        }
    } 
Reply With Quote
  #397  
Old 04-06-2010, 10:37 AM
munsonfan15 munsonfan15 is offline
 
Join Date: Mar 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
Yes, it is possible with Easy Forms

For dropdown list of members, create a custom question with following php code:
PHP Code:
$answer .= '<select name="'.$formbit[id].'">';
$members $db->query_read("SELECT * FROM " TABLE_PREFIX "user
WHERE usergroupid = 2
ORDER BY username ASC"
);
    while(
$row $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if (
$row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>'
Change 2 to the desired usergroupid
Works like a charm - one addition if you could help me out please - how can I add secondary groups also?
Reply With Quote
  #398  
Old 04-06-2010, 11:07 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by munsonfan15 View Post
Works like a charm - one addition if you could help me out please - how can I add secondary groups also?
PHP Code:
$usgid 2;
$answer .= '<select name="'.$formbit[id].'">';
$members $db->query_read("SELECT * FROM " TABLE_PREFIX "user
WHERE usergroupid = '
$usgid' OR membergroupids = '$usgid' OR membergroupids LIKE "$usgid,%" OR membergroupids LIKE "%,$usgid" OR membergroupids LIKE "%,$usgid,%"
ORDER BY username ASC"
);
    while(
$row $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if (
$row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>'
Reply With Quote
  #399  
Old 04-06-2010, 11:21 AM
munsonfan15 munsonfan15 is offline
 
Join Date: Mar 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FANTASTIC! Thank you so much...Installed
Reply With Quote
  #400  
Old 04-06-2010, 02:30 PM
munsonfan15 munsonfan15 is offline
 
Join Date: Mar 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot get some custom ouput to work.

I have tried the following: {q_1}, {qo_1}, and {q_date} (date is the reference name I assigned_ and I iether get nothing or some funny symbols.

When I use {q_2} (this is a drop down box variable) that works everywhere I use it, in the body of the post and the post title - just dont know why the date question and radio box question do not work correctly.

the {qn_x} works and puts the actual question just fine.
Reply With Quote
  #401  
Old 04-06-2010, 05:15 PM
munsonfan15 munsonfan15 is offline
 
Join Date: Mar 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I thought all was well (except for my custom ouput problem above) until I tried to submit a form being a regular member instead of an Admin. I get a message that there is a Securuty Token problem and form cannot be sumbitted. I have checked all permissions and all looks ok. Not sure what that message means.

*** I figured some things outs...

I received the Security Token error if I have a member on both a primary and secondary usergroup AND have the displayed group anything other then default. If I change to Default it all appears to work ok
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 04:16 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.06920 seconds
  • Memory Usage 2,437KB
  • 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_php
  • (7)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
  • (4)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