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
  #712  
Old 08-05-2010, 09:16 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TMSBrad View Post
I'm working on the custom form output. How would I structure the if statement to check if something is null? What about is not null?
<vb:if condition="$q[2]">not null<vb:else />null</vb:if>
<vb:if condition="$q[2]">Value Entered<vb:else />No Value</vb:if>
Reply With Quote
  #713  
Old 08-05-2010, 09:23 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thunderclap82 View Post
Can a person filling out the form attach a file?
Yes when the form is creating a new thread
Reply With Quote
  #714  
Old 08-05-2010, 09:29 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
If this is not possible, how can I change sub links that I see when I'm using a form? Currently I'm not using a Forum on my site, only a CMS, so when a visitor goes to fill a form, now he see a links that he don't understand (FAQ, Calendar, Forum actions, Quick links) so I would like that I can hide this links or to have the same links like when I'm reading articles (Sections).

Please, and thank you!

Find this line in plugin Easy Forms - Forms Tab:
PHP Code:
$vbulletin->options['selectednavtab'] = 'forms'
Replace with:
PHP Code:
$vbulletin->options['selectednavtab'] = 'vbcms'
or
PHP Code:
$vbulletin->options['selectednavtab'] = 'articles'
Reply With Quote
  #715  
Old 08-05-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 Nikola Bosnjak View Post
I can see that other members had a problem with deleting a form, but can not find the answer. I'm having the same problem, when I click on Delete form noting happens, and also when I want to delete a question in this (any) form, nothing happens.

EDIT: Ok, I found my way how to do it. Just put a URL manually ...misc.php?do=deleteform&fid=1. Is there some bug in this script, how to fix it? Becouse when I click some links on Form screen, I get only URL ...misc.php# and obviously nothing happens.
I've changed how it's handled for next release, so it will work for those who don't have javascript browsers.
Reply With Quote
  #716  
Old 08-05-2010, 05:01 PM
vap0r-7 vap0r-7 is offline
 
Join Date: Jun 2008
Location: South Carolina
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to say thanks, this is one of the best mods to have available and use.

It is extremely easy and user friendly. It has made a huge difference for our website and allows for even more opportunities without having to worry about having to get a brand new XML form created or revised.

Again, great job and many thanks, this has saved many hours of time and frustration.
Reply With Quote
  #717  
Old 08-05-2010, 08:11 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Choez View Post
For the exact same reason why I asked if it's possible to submit a form to threads 'twice'. I've looked at the code and found the section where the threads are created; but I can't get it modified to a working version, missing comments in the code of what does what :P (understandably).

Any hints or help here would be heavily appreciated.
Search and you shall find: https://vborg.vbsupport.ru/showpost....&postcount=229
Reply With Quote
  #718  
Old 08-05-2010, 08:49 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am wondering I I setup a forum using Easy Forms if there is any way to intergrate this into vbadvanced?
Reply With Quote
  #719  
Old 08-09-2010, 04:47 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Banana,

I think I have a good one for you.

I am setting up a custom question to ask my moderators to select a name belonging to usergroup 2.

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>'
That works great; I've given this question the reference of shuser. This will allow my moderators to select the name they want. When they click submit, I want the name selected to have the primary usergroup changed to usergroup 18. Here is what I tried as my first test (Form Hood: Before Submit):

PHP Code:
if ($complete) {
    
$userinfo=fetch_userinfo($qo[shuserid]);
    
$user=$userinfo;
    
    
//$userinfo = $vbulletin->userinfo;
    
$user['usergroupid'] = 18;
    
    if (empty(
$user['usergroupid'])) {
        
$user['usergroupid'] = 2;
    }
    
    
$getusergroupid iif($userinfo['displaygroupid'] != $userinfo['usergroupid'], $userinfo['displaygroupid'], $user['usergroupid']);
    
    
$user_usergroup =& $vbulletin->usergroupcache["$user[usergroupid]"];
    
$display_usergroup =& $vbulletin->usergroupcache["$getusergroupid"];

    
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
    
$userdata->set_existing($userinfo);
    
$userdata->set('usergroupid'$user['usergroupid']);
    
$userdata->set_usertitle(
        
$user['customtitle'] ? $user['usertitle'] : '',
        
false,
        
$display_usergroup,
        (
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true false,
        (
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true false
    
);

    require_once(
DIR '/includes/functions_ranks.php');
    
    if (
$user['userid'] == $vbulletin->userinfo['userid']) {
        
$vbulletin->userinfo['usergroupid'] = $user['usergroupid'];
        
$vbulletin->userinfo['displaygroupid'] = $user['usergroupid'];
    }

    
$userdata->save();

Obviously, now I realize that the usergroup update code was meant to use a userid, not the username. So, what do you suggest? I was thinking that I could find a way to use the username for searching for the userid, I need to remember how I did that in the past, and then put that into the code. Do you know how to do that off hand? I'll keep searching.

Thanks.
Reply With Quote
  #720  
Old 08-09-2010, 05:09 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the following with no luck for the top part. I think this is mostly correct, but I must be doing a variable the wrong way.

PHP Code:
if ($complete) {
    
$shuserid $vbulletin->db->query_first("select userid from vBull_user where username='{$qo['shuser']}'");
    
$userinfo=fetch_userinfo($qo[$shuserid]); 
Reply With Quote
  #721  
Old 08-09-2010, 06:23 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sarcoth View Post
I tried the following with no luck for the top part. I think this is mostly correct, but I must be doing a variable the wrong way.

PHP Code:
if ($complete) {
    
$shuserid $vbulletin->db->query_first("select userid from vBull_user where username='{$qo['shuser']}'");
    
$userinfo=fetch_userinfo($qo[$shuserid]); 
maybe instead of if ($complete) try using if (isset($qo['shuser']))?
Also make sure that $qo['shuser'] is correct, and it's not actually something like $qo[1]
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 09:29 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.08012 seconds
  • Memory Usage 2,403KB
  • 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
  • (7)bbcode_php
  • (6)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