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
  #1222  
Old 04-07-2011, 02:32 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by woffie View Post
Any idea when the IE issue is going to be resolved?
I'm not sure how to fix the problem, it works for all other browsers - I can only suggest using a browser other than IE.
Reply With Quote
  #1223  
Old 04-07-2011, 05:58 PM
hoochblues hoochblues is offline
 
Join Date: Jun 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
I wouldn't suggest a dropdown list as it would be very big.

Create a custom question, with the following php code:

PHP Code:
$answer '<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>'."\r\n";
$answer .= '    <script type="text/javascript"><!--'."\r\n";
$answer .= '        function setAjax()';
$answer .= '        {';
$answer .= '            if (document.getElementById(\'userfield\'))';
$answer .= '            {';
$answer .= '                snc = new vB_AJAX_NameSuggest(\'snc\', \'userfield_txt\', \'userfield\');';
$answer .= '                snc.allow_multiple = false;';
$answer .= '            }';
$answer .= '        }'."\r\n";
$answer .= '    --></script>'."\r\n";
$answer .= '<div id="userfield" class="popupmenu nomouseover noclick nohovermenu">                    <input class="primary full textbox popupctrl" name="'.$formbit['id'].'" id="userfield_txt" tabindex="1" autocomplete="off" value="'.$formbit['value'].'" />                </div>'
Then: Edit Form -> Form PHP Hooks -> Form Hook: Form Start:

PHP Code:
$vbulletin->templatecache['shell_blank'] = str_replace('<body>','<body  onload="setAjax()">'$vbulletin->templatecache['shell_blank']); 
This looks pretty good. The only problem I found was it allows me to enter the name of a user that doesn't exist. But I think it is almot there.
Reply With Quote
  #1224  
Old 04-07-2011, 08:15 PM
Za4a Tuner's Avatar
Za4a Tuner Za4a Tuner is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
i get some problems with grid-questions!

If i create a grid-question, the output doesn't work, if a individuell output-style is used!
I'll attach three screenshots to show what i mean.

screen 1: Settings Output-Styling
screen 2: Preview of the grid )submitting would cause the same "array"-effect
screen 3: Preview with a standard outputstyling

vB-version: 4.1.2 Suite
php-version: 5.3.5
mysql: 5.1.51
easyform: 4.2.6
Attached Images
File Type: jpg easy-grid- 1.jpg (9.1 KB, 0 views)
File Type: jpg easy-grid- 2.jpg (15.8 KB, 0 views)
File Type: jpg easy-grid- 3.jpg (15.6 KB, 0 views)
Reply With Quote
  #1225  
Old 04-08-2011, 08:08 AM
ascroft ascroft is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there - tried that.

I removed the variables for the form (as they don't change when you copy) - anyway this shows the forum ID of what I selected in the drop down but it posted in to the default forum. (65 is the ID of the other forum) Its like it doesn't actually update it prior to submission.

Property Wanted - Dunedin - Copy

Property Wanted - Dunedin - Copy
What are you seeking?

Test001

What location are you interested in?

65

Please select the property category

W9025

Seeking contact from

Real Estate Agents
Private Owners

Particular suburb being sought (if any)

-

Style of property wanted

Bungalow

Construction preferred

Brick

How old can the property be

-

No. of bedrooms wanted

Two

No. of living rooms wanted

Two

No. of bathrooms wanted

Two

Other Features being sought

Garage/Off Street Parking
Near public transport
Heat pump or similar
Fully insulated

Looking to rentHave references available

-

Other details if looking to rent

-

Looking to buyApprox. $ you are looking to spend

-

Other commentsOther comments on the property wanted

-

Add any attachments

Quote:
Originally Posted by bananalive View Post
Try creating a copy of the form, and test that - just to double check that there isn't something happening with tthis fid.
Reply With Quote
  #1226  
Old 04-08-2011, 09:59 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ascroft View Post
Hi there - tried that.

I removed the variables for the form (as they don't change when you copy) - anyway this shows the forum ID of what I selected in the drop down but it posted in to the default forum. (65 is the ID of the other forum) Its like it doesn't actually update it prior to submission.

...
Try this...

AdminCP -> Plugins & Products -> Add New Plugin

Hook Location
Code:
newthread_post_complete
Title
Code:
Move Thread created by easy forms
PHP Code
PHP Code:
if ($fid == 43)
{
$forumid $q['forumid'];
$dataman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost'); 
$dataman->set_existing($threadinfo);  
$dataman->setr('forumid'$forumid);  
$dataman->pre_save(); 
if (
count($dataman->errors) > 0

    foreach (
$errors as $error)
    {
        
$errorss .= $error"<br />";
    }
    
$errormessage "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
    eval(
standard_error($errormessage));

else 

$dataman->save();  
$foruminfo fetch_foruminfo($forumid);
$threadinfo fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo$foruminfo$vbulletin->userinfo['userid'], TIMENOW);    
}

Plugin is active
Code:
Yes

Change 43 to appropriate form id.
Reply With Quote
  #1227  
Old 04-08-2011, 10:05 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Za4a Tuner View Post
Hello,
i get some problems with grid-questions!

If i create a grid-question, the output doesn't work, if a individuell output-style is used!
I'll attach three screenshots to show what i mean.

screen 1: Settings Output-Styling
screen 2: Preview of the grid )submitting would cause the same "array"-effect
screen 3: Preview with a standard outputstyling

vB-version: 4.1.2 Suite
php-version: 5.3.5
mysql: 5.1.51
easyform: 4.2.6
I'll have a look into this...
Reply With Quote
  #1228  
Old 04-08-2011, 10:15 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hoochblues View Post
This looks pretty good. The only problem I found was it allows me to enter the name of a user that doesn't exist. But I think it is almot there.
For the username check...

Form Hook: Before Submit:
PHP Code:
$checkuser $vbulletin->db->query_first("SELECT userid FROM " TABLE_PREFIX "user WHERE username = '".$vbulletin->db->escape_string($q['username'])."' ");
if (!
$checkuser['userid']&&$q['username'])
{
$preview true;
$complete false;
$inputerror[344] = '<font color="red">Invalid Username</font>';
$incompleteqs[] = $qn['username'];

Change 344 to the question hash

and make sure the Username Suggest question has Reference Name of:
Code:
username
Reply With Quote
  #1229  
Old 04-08-2011, 12:55 PM
Za4a Tuner's Avatar
Za4a Tuner Za4a Tuner is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i figured out a nother problem with the grid-questions:
If i use a comma for a "item", i'll brake the line and put all the text after the comma as a new "radiobutton"

e.g.:
when the text for the "Grid Rows" (4 rows) is like:
ok
yes
maybe
no, but next year


the question will shown as 5 rows:
ok
yes
maybe
no
but next year
Reply With Quote
  #1230  
Old 04-08-2011, 08:35 PM
ascroft ascroft is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much. Nice solution. All good now. I can now finalise my other bits and pieces on the site and get ready to launch. :-)

Mark

QUOTE=bananalive;2182257]Try this...

AdminCP -> Plugins & Products -> Add New Plugin

Hook Location
Code:
newthread_post_complete
Title
Code:
Move Thread created by easy forms
PHP Code
PHP Code:
if ($fid == 43)
{
$forumid $q['forumid'];
$dataman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost'); 
$dataman->set_existing($threadinfo);  
$dataman->setr('forumid'$forumid);  
$dataman->pre_save(); 
if (
count($dataman->errors) > 0

    foreach (
$errors as $error)
    {
        
$errorss .= $error"<br />";
    }
    
$errormessage "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
    eval(
standard_error($errormessage));

else 

$dataman->save();  
$foruminfo fetch_foruminfo($forumid);
$threadinfo fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo$foruminfo$vbulletin->userinfo['userid'], TIMENOW);    
}

Plugin is active
Code:
Yes

Change 43 to appropriate form id.[/QUOTE]
Reply With Quote
  #1231  
Old 04-09-2011, 10:44 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Za4a Tuner View Post
i figured out a nother problem with the grid-questions:
If i use a comma for a "item", i'll brake the line and put all the text after the comma as a new "radiobutton"

e.g.:
when the text for the "Grid Rows" (4 rows) is like:
ok
yes
maybe
no, but next year


the question will shown as 5 rows:
ok
yes
maybe
no
but next year
Fixed in attached file
Attached Files
File Type: xml product-easyforms v4.2.7.xml (307.3 KB, 10 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 03:49 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.09423 seconds
  • Memory Usage 2,428KB
  • Queries Executed 28 (?)
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_code
  • (5)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
  • (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
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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