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
  #1142  
Old 03-03-2011, 11:29 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found how to add the form to a Sticky thread in the Book Review Form, so that could work for me if there is not a way to have it displayed at the top of the forum.

However, testing the form inside the Sticky thread has lead to some issues.

1. The form is displayed inside of a scrolling box in the post. Is there a way to get it to just show the entire form in the post?

2. I also tried to get the form to redirect the submitter to the Book Review forum. The problem is that it loads that new page inside the same scrolling box that form is in on the post in the Sticky thread. Anyway around that?

Thanks for the great mod and all the help you have been giving us!
Reply With Quote
  #1143  
Old 03-03-2011, 11:34 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo View Post
Okay, I installed this mod and have a working form that posts a thread in my Book Review sub-forum. Is there a way to have the form its self displayed at the top of that forum, instead of in a link buried in the man nav menu?
You could edit template FORUMDISPLAY

HTML Code:
<vb:if condition="$foruminfo['forumid']==2">
<iframe src="misc.php?do=form&fid=1&embed=1" width="100%" height="300"></iframe>
</vb:if>
Add it above :

HTML Code:
<div id="above_threadlist" class="above_threadlist">
Reply With Quote
  #1144  
Old 03-03-2011, 11:57 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dom, that worked to display the form in the forum. Is there a way to make it so that the form is shown again after they submit it? Right now if I have it set for them to see the Thank You message, it display that new page inside the box the form was in. If I set it to redirect to the forum, it also does that inside the box the form was in.

Thanks again!
Reply With Quote
  #1145  
Old 03-03-2011, 12:24 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo View Post
Thanks Dom, that worked to display the form in the forum. Is there a way to make it so that the form is shown again after they submit it? Right now if I have it set for them to see the Thank You message, it display that new page inside the box the form was in. If I set it to redirect to the forum, it also does that inside the box the form was in.

Thanks again!
Set the redirect url to:
HTML Code:
http://www.yoursite.com/forums/misc.php?do=form&fid=1&embed=1
This will display 'Thank you' message and redirect them back to the form again.
Reply With Quote
  #1146  
Old 03-04-2011, 01:27 AM
russellw russellw is offline
 
Join Date: Jan 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
Have you tried un-installing and then re-installing it. The default page when a 'do' isn't called is the smilies so the hooks aren't exec'ing. Do you get any error messages at the top of the page?
Thanks for the response. I have tried installing and uninstalling several times but I shall try again.

There are no errors on the page and none in the error log either but a bit of digging through my upgrade notes shows that we commented out a line in global.php because with it in vbportal refused to run.

the line was:

Code:
//	($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
I note that a couple of other hacks use the global_start hook (and I presume this one does too) so I will disable them and see what happens when I uncomment the line.

Cheers
Russ

by way of PS:

After disabling the 3 hacks that used the hook and uncommenting the line, vbportal is the only thing that works - everything else just returns a blank page.

There is an error in the error log (at least):

Code:
PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required './../global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/global.php(350) : eval()'d code on line 49
.. so that might make a useful starting point. Of course, line 350 is the hook code shown above which is obviously where the issue is.
Reply With Quote
  #1147  
Old 03-04-2011, 06:42 AM
russellw russellw is offline
 
Join Date: Jan 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok - after some snooping I found that the vbportal hook was the root cause of the evil as it was redirecting global.php to the wrong location.

I removed the hook and reinstalled Easy Forms but with the same result. A look in the db shows no hooks relating to Easy Forms - I presume from a look at the xml file there should be?

Cheers
Russ

PS: I edited the xml and uploaded the hooks fine - still a couple of permission based errors but I'm getting there.
Reply With Quote
  #1148  
Old 03-04-2011, 06:59 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked a treat Dom, thanks again.
Reply With Quote
  #1149  
Old 03-04-2011, 08:02 PM
ascroft ascroft is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi thanks for this -

1. Previously I have used a plugin as follows:

if (in_array($forumid, array(53,9999)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}

This linked a particular form to a particular forum and was called from newthread_form_start- presume I should be listing all of the forumids in this plugin that I want the form launched from?

2. Also, in the view form after applying the mods below against the question I just get a list of forums and can't select one? Kind of related to this, can I control what forums can be selected from (want the same as the forums that they form can be launched from in 1 above) and give them different names i.e. not show PW_Dunedin but Dunedin? Also the threadid picker which was previously using a custom question (thanks to you previously) seems to have stopped working - can't see the pick list any more for this. Other info - in the default for the formbody I had set the threadid to 'none' as the custom question then sorted that, but for the post thread I have to specify a forum - not sure if that is the issue?

Thanks.

Quote:
Originally Posted by bananalive View Post
  1. Edit Form
  2. Add 'Custom' Question
    • Type
      Code:
      Custom
    • Reference
      Code:
      forumid
    • PHP Code
      PHP Code:
      foreach ($vbulletin->forumcache AS $forumid  => $forum)
      {
      if (
      $qo['forumid']==$forumid)
      {
      $forum['selected'] = ' selected="selected"';
      }
      $answer .= "<option value="$forumid"$forum[selected]>$forum[title]</option>";
      }
      $answer .= "</select>"
    • Compulsory:
      Code:
      Yes
  3. Form Hook: Form Start:
    PHP Code:
    $form['forumid'] = $qo['forumid']; 
  4. Form Hook: Before Submit:
    PHP Code:
    $forumid $form['forumid'] = $qo['forumid']; 
Reply With Quote
  #1150  
Old 03-05-2011, 04:05 PM
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 thanks for this -

1. Previously I have used a plugin as follows:

PHP Code:
if (in_array($forumid, array(53,9999))) 
{  
header'Location:/listings/misc.php?do=form&fid=8' ) ;  

This linked a particular form to a particular forum and was called from newthread_form_start- presume I should be listing all of the forumids in this plugin that I want the form launched from?

2. Also, in the view form after applying the mods below against the question I just get a list of forums and can't select one? Kind of related to this, can I control what forums can be selected from (want the same as the forums that they form can be launched from in 1 above) and give them different names i.e. not show PW_Dunedin but Dunedin? Also the threadid picker which was previously using a custom question (thanks to you previously) seems to have stopped working - can't see the pick list any more for this. Other info - in the default for the formbody I had set the threadid to 'none' as the custom question then sorted that, but for the post thread I have to specify a forum - not sure if that is the issue?

Thanks.
1. Add them in a comma seperated list so for forumids: 53,9999,34,55,66 you would want
PHP Code:
if (in_array($forumid, array(53,9999,34,55,66))) 
{  
header'Location:/listings/misc.php?do=form&fid=8' ) ;  

2. I missed the first line of the code off of the example. Updated original post: https://vborg.vbsupport.ru/showpost....postcount=1135

PHP Code for the custom question, should be: (This includes the limit to show only forums: 53,9999,34,55,66)

PHP Code:
$answer "<select name="$formbit[id]" id="q_" $formbit[id]  . "">";
foreach (
$vbulletin->forumcache AS $forumid  => $forum)
{
if (!
in_array($qo['forumid'], array(53,9999,34,55,66)))
{
continue;
}
if (
$qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value="$forumid"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>"
Reply With Quote
  #1151  
Old 03-05-2011, 10:48 PM
ascroft ascroft is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - thanks - progress here.

1. I have changed the plugin to launch the form from forums 53 & 65. Thanks.

2. The PHP code now shows the full forum list in the form if I don't filter - but doesn't show anything in the drop down if I restrict this. For example only including 53,65 in the array?

3. The thread prefix which is also working off a drop down doesn't show anything in the list either until I submit, then it says its missing, and then the drop down is populated. I can then select and submit - as long as the filter isn't on as per 2.

The form hook before submit presently shows:

$form['prefixid'] = $qo['prefix'];
$forumid = $form['forumid'] = $qo['forumid'];

The first row I already had for the prefix, and then added the second row now. Maybe they should be reversed?

btw the PHP in the custom question for the prefix is:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';


Finally, my initial test posted the thread in to the forum I launched the form (and is the default forum in the form body) from even though I selected another forum from the drop down list. I may have to do more testing re this point once a couple more of the other things are clarified.

Many thanks for your help.


Quote:
Originally Posted by bananalive View Post
1. Add them in a comma seperated list so for forumids: 53,9999,34,55,66 you would want
PHP Code:
if (in_array($forumid, array(53,9999,34,55,66))) 
{  
header'Location:/listings/misc.php?do=form&fid=8' ) ;  

2. I missed the first line of the code off of the example. Updated original post: https://vborg.vbsupport.ru/showpost....postcount=1135

PHP Code for the custom question, should be: (This includes the limit to show only forums: 53,9999,34,55,66)

PHP Code:
$answer "<select name="$formbit[id]" id="q_" $formbit[id]  . "">";
foreach (
$vbulletin->forumcache AS $forumid  => $forum)
{
if (!
in_array($qo['forumid'], array(53,9999,34,55,66)))
{
continue;
}
if (
$qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value="$forumid"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>"
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:55 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.05651 seconds
  • Memory Usage 2,415KB
  • 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
  • (5)bbcode_code
  • (3)bbcode_html
  • (8)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