T minus zero Already?
Forms
Written by Mostafa Muhammad   

 

Looks like it, 2nd term is over , that felt much shorter than the first , anyway , I'll talk about what's been done in this term and what I'm hoping to achieve beyond GSoC 2008

Transition to mootools 1.2

That took some work to get done, I were adviced to move to mootool 1.2 since J! is upgrading to that version anyway, I also cleaned up the javascript code while I was at it.

A good question would be , Isn't the current version of Joomla! running 1.11? well , yes, and yes 1.11 is not compatible with 1.2 so you would expect the component not to work on the current version of J! "1.5.6 as of writing this".

The good news is , I managed to workaround this at the expense of a single non-fatal javascript error in the design view, The workaround simply unloads J!'s mootools 1.11 and loads 1.2, You shouldn't notice any difference while working with the component, unless you have debugging enabled on IE.

Simple HTML element

This one got me pulling out what's left of my hair (Which is few), I was trying to have an edit-in-place function with a WYSIWYG editor that allows the user to write HTML anywhere within the form much like he would in articles, but I'm afraid I failed at that for technical reasons I'm yet to discover, I settled for non-wysiwyg editor that accepts simple html and plain text, But I promise that this is NOT the end of it Insha'Allah.

Mailer function

Mailing in JForms is implemented as a "storage plugin", Currently it allows the administrator to decide if he wants to send form data to a particular E-mail or send "Submission confirmation message" to the user who fills the form , That's if the user specify's an E-mail in the form , The component has its way of knowing if that E-mail is acutally a user E-mail or not, I'll talk on that in the documentation, it would make more sense with pictures , Insha'Allah.

Localization support

Just went around to see if any string weren't enclosed in JText::_() calls , Wrote simple a language file so I think it should be easier to localize the component now

There's still about 5% of strings that aren't wrapped in JText::_() calls becuase they appears in independent files that are not loaded within Joomla! Context, but this issue will be looked upon as soon as possible.

Minor fixes and additions

Among the things that has been added to the component are:

  • Pre-defined lists "Countries and US States for the time being".
  • Multiple checkbox field.
  • "onClick" javascript handler can be specified for "button" elements
  • Ability to set default "Selected" values for all basic elements.

Countless fixes "But as always that doesn't mean we're bug-free yet :P"

What I would like to do beyond GSoC 2008

  • Review, optimize and document the core of the component.
  • Work on implementing missing features "e.g. Nested forms".
  • Improve records view "allow search and easy manageability".
  • Introduce a new plugin type "Export plugins" that will allow user to export stored records in various formats.
  • Theming Engine.

Oh , You wanna see the latest version, ha?

Latest version JForms 0.5 Alpha

 


For those who might be wondering what's T minus zero :P

 

Show other articles of this author

40 Votes

4 Comments

Feed
  1. Good catch :) , You have caught the single PHP 5 call I used through out the whole project, It should work fine on Php5.

    I will attempt to fix this to work on Php4 Although I recommend that you move on to Php5 hosting instead.

    http://gophp5.org/

    :)
  2. It gave me an error in the admin site:

    Parse error: syntax error, unexpected T_VARIABLE in /home/username/public_html/myfolder/administrator/components/com_jforms/models/form.php on line 343
  3. The current release is still an Alpha so It is not suitable for use on Production websites, However, I'd appreciate any help in testing the component and squashing bugs in the following days. :)
  4. Hi there...
    I would like to know if I can use this tool in production.

Add Comment


    • >:o
    • :-[
    • :'(
    • :-(
    • :-D
    • :-*
    • :-)
    • :P
    • :\
    • 8-)
    • ;-)



    Click to get a new image.