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
  #1252  
Old 04-16-2011, 12:14 AM
SpaceStar SpaceStar is offline
 
Join Date: Apr 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Superb. Working.

Just a simple question, maybe it's asked and answered before...

When a user has submitted the form, is there a way of validating the answered and show the result to user?

Thamks
Reply With Quote
  #1253  
Old 04-16-2011, 09:08 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by clubvr4 View Post
Hello great hack!

Is it possible to make attachments mandatory?
Edit Form -> Form Hooks -> Form Hook: Before Submit:
PHP Code:
$currentattaches $db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "attachment WHERE posthash = '" $db->escape_string($posthash) . "' AND userid = " $vbulletin->userinfo['userid'] );
$attachcount $currentattaches['countrows'];
if (!
$attachcount)
{
$complete false;
$customerror .= '<div class="blockrow"><div>Error, No attachments!</div></div>';

Reply With Quote
  #1254  
Old 04-16-2011, 09:15 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 have two question to this mod:

1.)
How can i link the "new thread"-button of a forum to a form?
In a forum with the ID = 46 the "new thread" should be replaced by a form with the ID = 4
If someone like to create a new thread, he should use the form nr. 4, wich "Post a new Thread" in the forum.

2.)
The forum above MUST have a prefix, but not always the same prefix => users should be able to use a prefix that fits to the form.
I created a custom question with the following php-code inside:
PHP Code:
require_once(DIR '/includes/functions_prefix.php'); 
$thisanswer $q[$formbit[id]]; 
if (!
$form['forumid'])
{
$form['forumid'] = 46;
}
$prefix_options fetch_prefix_html($form['forumid'], $thisanswertrue); 
$answer '<select name="' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">'
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>'
$answer .= $prefix_options
$answer .= '</select>'
The question will be shown on the form, but there are no prefixes displayed! How can i get it running?



Can anyone give me a help please?

kr Chris
1. Vbulletin AdminCP -> New Plugin
Hook location: newthread_form_start
Php code:
PHP Code:
if (in_array($forumid, array(1,2))) 

header'Location: http://www.youriste.com/forums/misc.php?do=form&fid=8' ) ; 

2. Add the following to the custom php question, do you get the right forumid (46) at the top of the form?
PHP Code:
print_r($form['forumid']); 
Reply With Quote
  #1255  
Old 04-16-2011, 09:16 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
I am running vB4.0.7 currently and all forms have been taken from my 3.8.6 version.

I have just tried to add a new "e-mail to me" form, but I have several issues.

1. I have a prefilled username question (which doesn't align in the centre, like the others, but instead shows on the left under the question).

2. I enter an E-mail title and it doesn't save -I get diverted to http://www.myforum.com/#main-forums

3. The same thing happens when I select the tickbox for E-mail Form. (as number 2 above). Previously there was a box that appeared where I would enter the e-mail address that I want the form enailed to, this no longer shows.

4. Form Submit Limit Per User: doesn't save either

5. After Form is Submitted - Form submitted Message doesn't save.

Please can you help me with the above (or anyone else)? I desperately need your help in this, as I need to add these as soon as please.


I also have search engine friendly URLs and vBSEO installed.

Many Thanks.
It may be caused by vbseo, can you disable it on page misc.php and see if that has an effect?
Reply With Quote
  #1256  
Old 04-16-2011, 09:17 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zushiba View Post
What would be the easiest way to go about putting a character limit on text and textarea fields?
Edit Question, set maxlength
Reply With Quote
  #1257  
Old 04-16-2011, 09:19 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kether1 View Post
Dom,

Is there a way to group all of a member's threads created when submitting via this forms modification?

For example:

Lets say a form can be submitted multiple times by a member.

When visiting the forum section where the form is published, is it possible to have all of 'Member A's' threads grouped together (like a sub-forum) and all of Member B's responses grouped together?

Like this:
FORUM where form creates a new thread.

Member A
----first submitted response,
----second submitted response,
----Third...

Member B
----First submitted response,

Member C
----first submitted response,
----second submitted response,
SO, when a member clicks on this forum, they see a list of sections titled with the username. And if they click that name, they see all of the threads that person created by submitting the form.

I hope I explained this where it can be understood.

Thanks!
Kether
You will need a separate modification for this which alters thread list.
Reply With Quote
  #1258  
Old 04-16-2011, 09:20 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpaceStar View Post
Superb. Working.

Just a simple question, maybe it's asked and answered before...

When a user has submitted the form, is there a way of validating the answered and show the result to user?

Thamks
By using quiz mode, php hooks or <vb:if condition=""> in custom output.
Reply With Quote
  #1259  
Old 04-16-2011, 01:24 PM
Za4a Tuner's Avatar
Za4a Tuner Za4a Tuner is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
1. Vbulletin AdminCP -> New Plugin
Hook location: newthread_form_start
Php code:
PHP Code:
if (in_array($forumid, array(1,2))) 

header'Location: http://www.youriste.com/forums/misc.php?do=form&fid=8' ) ; 

This works fine, now the button "New Thread" roots to the form

but:
Quote:
Originally Posted by bananalive View Post
2. Add the following to the custom php question, do you get the right forumid (46) at the top of the form?
PHP Code:
print_r($form['forumid']); 
This won't work
The forum-id is correct (it's from my liveforum)
Can you give me a "step by step" instruction, what i have to do, that a dropdown-field with the prefixes of a specified forum will be shown?

The form should create a new thread in forum-id = 46, and the prefixes of this forum sould be listed in the form, cause they are required for a new thread!


kr Chris
Reply With Quote
  #1260  
Old 04-16-2011, 09:29 PM
ascroft ascroft is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there.

One thing I noted today, when the thread is moved to the correct forum, is that it doesn't update the 'header' type of information in the forum summary i.e. last post details, no. of threads/posts. The thread itself is there fine. Example is: http://www.shackchat.co.nz/listings/...lington-Region

I am thinking this needs more code to be added to the plugin in possibly?

Many thanks

Mark



Quote:
Originally Posted by bananalive View Post
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
  #1261  
Old 04-18-2011, 03:19 PM
Darksome Darksome is offline
 
Join Date: Apr 2011
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New to vB but slowly picking things up. I think I will find this mod extremely useful, but I'd like to know how I can add an 'insert image' button to the vbeditor question section, next to the email and insert link buttons for example.

Or indeed, can it be replaced with all the interface options as if posting a new thread such as; post icons and the tag box?

Cheers
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:22 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.06700 seconds
  • Memory Usage 2,418KB
  • 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_code
  • (7)bbcode_php
  • (9)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