Topic: mbForms - Form Builder - RELEASED!

But I need some help!!

Basically just want people to have a look at the admin 'create form' section and double check that you guys think it's ok, easy to use etc...

Current functionality is only on the admin side and you can only:
- View the list of created forms
- Create a form.
- Delete a form.

Didn't want to start on edit until I was 100% sure on the main form.

Anyhoo you guys can check it out at http://wolfcms.mikebarlow.co.uk/admin with the user: admin and the password: 123456

Let me know what you guys think of it anyway and hopefully we should be looking at the first version should be out in the next week or two!

Last edited by snsmurf (2010-08-16 22:18)

2

Re: mbForms - Form Builder - RELEASED!

Looks very promising, Mike! cool I had a quick play around, and it seemed pretty intuitive. Created and deleted nicely. Is there any way of seeing the form on the frontend yet?

Re: mbForms - Form Builder - RELEASED!

Nope not yet! Just the admin..was getting the admin section finished before doing the front end!

Re: mbForms - Form Builder - RELEASED!

List me for beta testing that plugin.
It looks good so far.

Re: mbForms - Form Builder - RELEASED!

Yeah, no problem...Any suggestions?

Re: mbForms - Form Builder - RELEASED!

UPDATE!!!

Nearly there, if you go to the link again the admin area is now finished (minus documentation and final checks).
Also if you go to the Contact Us page in the admin you'll see in the body how easy it is to call a mbForm form.

Also the front end is now finished (again minus final testing and a thorough bug check). So if you now go to the front end of that wolf installation (http://wolfcms.mikebarlow.co.uk) and go to the contact us page you'll find the form that I've set up.

If you do test and you want a copy of the email it sends you make sure you fill out the email field correctly and i'll forward the email on (unless you change the form recipient in the admin of course).

So yeah, knock yourselves out testing it and let me know if anything goes wrong.

Important note however, there is a bug with the Email helper so you'll need to fix this before mbForms will work. See the issue i created here for the fix

So all that's left to do on it is:
- test (which will be greatly sped up if some people could test it for me, pleaseeeeeee).
- write the docs (shouldn't take too long)
- write the install / uninstall script!

So with that in mind, we could be looking at a first release by next weekend!

Re: mbForms - Form Builder - RELEASED!

Hear ye, Hear Ye!

Here be the beta release of mbForms!
You'll need to manually fix the bug I mentioned in my post above about the Email helper before it will fully work! Not my fault!

Anyway, here's a download link to get the beta release I'll make an official stable release sometime later this week if no one has any problems using it!

mbForms Download Link

Re: mbForms - Form Builder - RELEASED!

snsmurf wrote:

Hear ye, Hear Ye!
Anyway, here's a download link to get the beta release I'll make an official stable release sometime later this week if no one has any problems using it!


I hear ye.
I'll test the plugin and keep you posted on my findings, I realise its a early beta so I'll be gentle..
I guess its okay to provide a Dutch translation at this point?

Last edited by Fortron (2010-08-16 23:00)

Re: mbForms - Form Builder - RELEASED!

Yeah, i don't envisage much of the text changing so if there are it will just be code change.

If you want to hold off on doing the translation for a day or so though as I was planning on putting together a template il8n file so you don't have to look through all the files trying to find all the text to translate.
Should make it alot easier for you!

10

Re: mbForms - Form Builder - RELEASED!

snsmurf wrote:

If you want to hold off on doing the translation for a day or so though as I was planning on putting together a template il8n file so you don't have to look through all the files trying to find all the text to translate.
Should make it alot easier for you!

I'm looking forward to trying this soon! But about i18n -- Wolf will produce the translator's template automagically, won't it?

That should save a bit of hassle for you, smurfy!

Re: mbForms - Form Builder - RELEASED!

Well bugger me....I didn't know that was there!

Wolf continues to surprise me!

EDIT: It does actually look broken though...looks like a quote issue or something!

Last edited by snsmurf (2010-08-17 09:40)

12

Re: mbForms - Form Builder - RELEASED!

snsmurf wrote:

EDIT: It does actually look broken though...looks like a quote issue or something!

Here's another surprise! The name of your internationalization directory should be "i18n" rather than the current "il8n". wink

(Fixed Email.php, btw.)

Re: mbForms - Form Builder - RELEASED!

snsmurf wrote:

EDIT: It does actually look broken though...looks like a quote issue or something!

Very possible... The translator code that generates the translation template does so by parsing the PHP code. It will generally speaking generate a correct template, but can choke on quote usage.

Post 0.7.0 I will see if we can't make it more robust. (we probably can)

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: mbForms - Form Builder - RELEASED!

ohhhhh sad I'm a fool, I keep reading the 1 as an 'l'.

Re: mbForms - Form Builder - RELEASED!

snsmurf wrote:

ohhhhh sad I'm a fool, I keep reading the 1 as an 'l'.

Lol... maybe change your font? wink

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: mbForms - Form Builder - RELEASED!

mvdkleijn wrote:
snsmurf wrote:

ohhhhh sad I'm a fool, I keep reading the 1 as an 'l'.

Lol... maybe change your font? wink

Or some (better) glasses.. wink

Re: mbForms - Form Builder - RELEASED!

Even better...both!

Re: mbForms - Form Builder - RELEASED!

Courtesy of david, here's a full tpl for the mbforms i18n files. The documentation was originally in there but after some consideration I've decided to take it out of the languages.

If people want it back in there, give me a shout and i can slot it back in.

www.mikebarlow.co.uk/downloads/mbforms_en_template.txt


UPDATE

Rather then spamming my own thread, i'll just edit here...

Just updated the beta release:

- Taken the documentation bit out the i18n file (as mentioned above).
- Named the i18n folder correctly tongue
- Moved the css to the root of the plugin so it's loaded automatically (cheers fortron!)
- Also setup for / id attributes for the labels / inputs of the dynamically added form items in the admin area.
- Added the 'extras' variable to the front end views as I realised I'd missed them out!

This will probably be the last beta, if everything is all groovy then I'll give it an official release later this week (probably the weekend!)

Last edited by snsmurf (2010-08-18 22:56)

Re: mbForms - Form Builder - RELEASED!

Sorry for the triple post!

mbForms has officially been released now. There were two or three bug fixes since the last beta release. There hasn't been anything major so any forms you already have setup should still work a o k!

Enjoy!

Download Link

Re: mbForms - Form Builder - RELEASED!

And added to the plugin repository...

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: mbForms - Form Builder - RELEASED!

Maby add some "class" or "id" functionalities, so you can use css to update the forms layout.

Thumbs up

Re: mbForms - Form Builder - RELEASED!

IDs are generated automatically on the front end based on the items id number in the db. This is however subject to change if you update that menu.

Classes can be added via the "extras" field as highlighted when adding a form.

23

Re: mbForms - Form Builder - RELEASED!

Sqlite support

<?php

/**
 * mbForms
 * 
 * Form Builder Plugin for WolfCMS
 * Please keep this message intact when redistributing this plugin.
 * 
 * @author        Mike Barlow
 * @email        mike@mikebarlow.co.uk
 * 
 * @file        enable.php
 * @date        16/08/2010
 * 
 */
// check for some constants
if (!defined("CMS_ROOT"))
{
    die("Invalid Action");
}

$PDO = Record::getConnection();

$driver = strtolower($PDO->getAttribute(Record::ATTR_DRIVER_NAME));

// setup the table
if ($driver == 'mysql')
{

    $table1 = "CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "mbforms` (
  `id` int(10) NOT NULL auto_increment,
  `formname` varchar(255) NOT NULL,
  `emailto` varchar(255) NOT NULL,
  `usecaptcha` tinyint(1) NOT NULL default '0',
  `successtpl` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM ;";

    $table2 = "CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "mbforms_items` (
  `id` int(10) NOT NULL auto_increment,
  `formid` int(10) NOT NULL,
  `label` text NOT NULL,
  `extras` text NOT NULL,
  `orderno` int(5) NOT NULL,
  `type` varchar(10) NOT NULL,
  `formvalues` text NOT NULL,
  `isrequired` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM ;";
}

if ($driver == 'sqlite')
{
    $table1 = "CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "mbforms` (
  `id` INTEGER NOT NULL PRIMARY KEY,
  `formname` varchar(255) NOT NULL,
  `emailto` varchar(255) NOT NULL,
  `usecaptcha` tinyint(1) NOT NULL default '0',
  `successtpl` text NOT NULL
);";

    $table2 = "CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "mbforms_items` (
  `id` INTEGER NOT NULL PRIMARY KEY,
  `formid` int(10) NOT NULL,
  `label` text NOT NULL,
  `extras` text NOT NULL,
  `orderno` int(5) NOT NULL,
  `type` varchar(10) NOT NULL,
  `formvalues` text NOT NULL,
  `isrequired` tinyint(1) NOT NULL default '0'
);";
}

$PDO->exec($table1);
$PDO->exec($table2);

$settings = Plugin::getAllSettings('mbforms');
if (!is_array($settings) OR count($settings) != 2)
{
    // setup the plugin settings
    Plugin::setAllSettings(array(
            'publickey' => '',
            'privatekey' => ''
            ), 'mbforms');
}

Thumbs up

24

Re: mbForms - Form Builder - RELEASED!

Thanks for this useful plugin. One recommendation, I would be much happier with an easier random number math test (9+5=?) than the capcha

+ I have just tried the i18n and the template has issues with single quote.

regards,
gabor

Last edited by rezgab (2010-09-01 17:10)

Thumbs up

Re: mbForms - Form Builder - RELEASED!

Just released 1.0.1. Fixes a bug when the forms were placed on the homepage!

www.mikebarlow.co.uk/downloads/mbforms.zip