Form Builder / Form Browser Beta

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Form Builder / Form Browser Beta

Post by sjg »

Hi folks,

I'm releasing a beta test of the new FormBuilder/FormBrowser module set. There have been a lot of changes. Please read all of this before proceeding!
  • The modules now require PHP 5.2.x
  • FormBrowser uses a new data format. It is NOT compatible with older FormBrowser data.
  • The FormBrowser data disposition in FormBuilder now stores the data in an XML format -- you can use this directly in your own modules, if you so choose.
Please DO NOT use these versions on production web sites unless you're prepared to deal with bugs. There have been substantial changes, and almost certainly new bugs introduced.

Please DO test them, play with them, and find where they break. Tell me where the documentation is lacking, unclear, or wrong. Post to the trackers! The more testing the modules receive, and the better the feedback I get, the better the final products will be.

Thanks,
___Samuel___

(As always, I apologize in advance for any errors, issues, etc, but I'm a one-man band on these modules, and they get worked on after my day job, side jobs, and family responsibilities are dealt with. I'd love the luxury of dedicating more time to these modules and implementing all of the great suggestions people give me, but there's just no way for me to do that right now.)
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Peciura

Re: Form Builder / Form Browser Beta

Post by Peciura »

XML format -- you can use this directly in your own modules
! osome !


EDIT:
The final release will include bug fixes, documentation, and unconditional love  ;D
Last edited by Peciura on Thu Nov 19, 2009 11:22 pm, edited 1 time in total.
moorezilla

Re: Form Builder / Form Browser Beta

Post by moorezilla »

Nice! Can't wait to take a look!
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Form Builder / Form Browser Beta - UPDATE

Post by sjg »

Hi everyone!

There are a number of bugs that have been identified in the beta. Some of them showstoppers. Doh!

I also got inspired and added some new features that people have been asking for.

I'll be releasing a new beta sometime this week. Thanks for everyone submitting bug reports and suggestions.

Thanks,
___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Form Builder / Form Browser Beta

Post by sjg »

OK, as promised, the new betas are on the Developer Forge.

Please report bugs to me. I think it's getting close to the actual release... famous last words ;)

There have been a fair number of bug fixes, and a couple of nice new features.

Enjoy!
___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
rab
Forum Members
Forum Members
Posts: 120
Joined: Wed Sep 05, 2007 8:35 pm

Re: Form Builder / Form Browser Beta

Post by rab »

I've been playing with the new beta (0.6b2) on various sites, both on localhost and production servers. All use PHP 5.2+, all are CMSMS v1.6.6, and all have different installed modules, but almost always these (although versions may vary slightly):

Captcha 0.4
CGCalendar 1.2.5
CGExtensions 1.17.6
CGSimpleSmarty 1.4.3
CMSMailer 1.73.14
Comments 1.9.2
CompanyDirectory 1.4.1
CustomContent 1.5.3
FileManager 1.0.1
FormBuilder 0.6b2
Forum 0.9.2
FrontEndUsers 1.6.11
Guestbook 1.1.12
JQueryTools 1.0.5
LightBox 1.0.1
MailTrain 1.0
MenuManager 1.6.2
ModuleManager 1.3.1
News 2.10.3
NMS 2.2.3
nuSOAP 1.0.1
Printing 1.0.4
Search 1.6.1
SiteMapMadeSimple 1.2.1
Smileys 0.2.0
ThemeManager 1.1.1
TinyMCE 2.5.5
Uploads 1.10.4

The only problem I've found so far is with the "File Upload" field. In a live site using Form Builder 0.5.12, creating a form with a "File Upload" field went smoothly and worked fine. After upgrading the module to 0.6b2, however, adding "File Upload" to a new form caused an error - blank page - and when I returned to the form, that field wasn't added. When I tried it on another live site - same result. NOTE: the form with the "File Upload" field originally created in the older version of FormBuilder still works just fine.

So, tried the same thing on 2 different localhost sites - same result, except this time the error was identified as:

Fatal error: Call to a member function GetContentOperations() on a non-object in C:\Apache2\htdocs\isb69\modules\FormBuilder\FormBuilder.module.php on line 694

Any clue what this might be? Please advise if you require more info.

Thanks!

PS - I should add that this module is one of the absolute best of all the modules I've been using (and I use a lot of them!) - very complete, powerful, flexible, easy to use and well documented. Not trying to butter you up, just stating a fact!
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Form Builder / Form Browser Beta

Post by sjg »

Thanks for the report.

This is using a FileUpload field and handling it with the Uploads module?

I have to admit, I'd only tested with the "native" file upload.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
rab
Forum Members
Forum Members
Posts: 120
Joined: Wed Sep 05, 2007 8:35 pm

Re: Form Builder / Form Browser Beta

Post by rab »

No, just added the "File Upload" field to the form - no tie-in with the "Uploads Module". It worked so well, didn't see the need to complicate things by integrating with another module!

Rab
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Form Builder / Form Browser Beta

Post by sjg »

Doh! Found it. Stupid bug...

Try editing FormBuilder.module.php, and at line 685 change it from:

Code: Select all

function CreatePageDropdown($id,$name,$current='',
      $addtext='',$markdefault =true)
     {
     // we get here (hopefully) when the template is changed
     // in the dropdown.
to

Code: Select all

function CreatePageDropdown($id,$name,$current='',
      $addtext='',$markdefault =true)
     {
      global $gCms;
      // we get here (hopefully) when the template is changed
      // in the dropdown.
(e.g., add the "global $gCms;" line)

I'll fix this in svn.

Thanks!
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
rab
Forum Members
Forum Members
Posts: 120
Joined: Wed Sep 05, 2007 8:35 pm

Re: Form Builder / Form Browser Beta

Post by rab »

That did it - thanks! Especially appreciate the super quick response!

Rab
rab
Forum Members
Forum Members
Posts: 120
Joined: Wed Sep 05, 2007 8:35 pm

Re: Form Builder / Form Browser Beta

Post by rab »

Oops - should have left well enough alone!

The above fix worked for the "File Upload" field by itself, but I got curious and tried it linked to the "Uploads" module ... and got this error:

Fatal error: Call to protected method Uploads::AttemptUpload() from context 'fbForm' in C:\Apache2\htdocs\isb69\modules\FormBuilder\classes\Form.class.php on line 2371

I'm done playing for now, but if this turns out to be as easy to fix as the last one, just thought I'd let you know so you could include it in svn.

Rab
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Form Builder / Form Browser Beta

Post by cb2004 »

Hi Samuel.

Have you thought about a field that adds and email address to the NMS database?
JeremyBASS

Re: Form Builder / Form Browser Beta

Post by JeremyBASS »

cb2004 wrote: Hi Samuel.

Have you thought about a field that adds and email address to the NMS database?
that can be done with a UDT and a check box off an opt out.... ex:

Code: Select all


global $gCms;
$firstName=$params['fld_17'];
$lastName=$params['fld_18'];
$email=$params['fld_20'];
//echo $email;
if(isset($email)&&$email!=""){ 
   if ($params['fld_30']=="Checked")
    {
if (!function_exists('MyGetModuleInstance'))
{
        function &MyGetModuleInstance($module)
        {
                global $gCms;

                if (isset($gCms->modules[$module]) &&
                        $gCms->modules[$module]['installed'] == true &&
                        $gCms->modules[$module]['active'] == true)
                {
                        return $gCms->modules[$module]['object'];
                }
                // Fix only variable references should be returned by reference
                $tmp = FALSE;
                return $tmp;
        }
}

$nms = MyGetModuleInstance('NMS');
if ($nms == FALSE)
	return false;
    //Did they click the checkbox?
        //Add user to NMS
        //array(1) -- represents the id of the mailing list to add them to.  Change the 1 to whatever you want.
        $nms->AddUser($email, array(1), $firstName . " " . $lastName);
        //Set the confirmed flag to true (they clicked the checkbox -- that's enough)
        $db =& $gCms->GetDb();
        $db->Execute('UPDATE ' . cms_db_prefix() . 'module_nms_users SET confirmed = 1 where email = ?', array($email));
    }
}



you'd change $params['fld_17']; etc to match what's in you form... here it is in action... http://www.visitnorthcentralidaho.org/T ... guide.html

HTH cheers
Jeremy
RappScallion
Forum Members
Forum Members
Posts: 17
Joined: Thu Oct 18, 2007 3:02 pm

Re: Form Builder / Form Browser Beta

Post by RappScallion »

Hi,

I'm having some problem getting this module to work. Probably cause I forget something or don't quite get it, but here's how i'm trying it:

- I make a simple form using the form builder, and I give this form the field name *Store Results for FormBrowser Module*, and a couple of other things to check it out. (also tried *store results in Database* but don't know if thats alright)

- Then I go to the form browser module, and make a new browser with the form from above as the type of form to browse.
This goes alright and I can see field types in the form browser, I can even go to the Administer but there is nothing to see.

Now I made a simple css site with on the left side the Form and on the right side the Form Browser. They are both visible when no entry has been made, but then when I put some stuff in the form and press submit, the whole Form Browser disappears from the site, and even the html in the site stops at the div where the browser supposed to be in. Also when I now click on administer to check out the data, i can't access it anymore it just shows nothing not even a administer layout.

Now i'm probably forgetting some things but I can't seem to figure out what... Maybe it has something to do with the Database Disposition but i cant find out what that means...

Could someone please tell me what i'm doing wrong and what i'm supposed to do to get this working?

Thanks in advance, Rapp.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Form Builder / Form Browser Beta

Post by sjg »

Rapp: it sounds like you're having some kind of module crash. It could be an outstanding bug of some sort.

Can you see anything in your php error log?
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Post Reply

Return to “Modules/Add-Ons”