Buy Now
Sign in

ChronoForms v4 and Joomla! 1.6

GreyHead , March 04 2011
GreyHead

Hi,

Just brief update on Joomla! 1.6.

I have taken Max's CFv4 RC1.4 and have a version running on 1.6. It's a bit buggy, the installer doesn't create the tables, some functionality is still broken and there are many parts that I haven't tested -- but there is a working component. I'll post here the main changes that were needed.

Bob




Fixes for 1.6
[list=a]
  • Replace all index2.php with index.php

  • Add id=”adminForm”to all <form name=”adminForm” . . .> tags if not already present

  • Add jimport( 'joomla.html.parameter' ); to construct functions where new JParameter is used

  • Add $mainframe =& JFactory::getFramework(); in place of global $mainframe;

  • Replace $mainframe->getSiteURL() with $uri = JFactory::getURI; $uri->base() or $uri->root()

  • [*]Add scripts to form_wizard.php
    				<script src="<?php echo JURI::Base(); ?>media/system/js/core.js" type="text/javascript"></script>
    <script src="<?php echo JURI::Base(); ?>media/system/js/mootools-core.js" type="text/javascript"></script>
    <script src="<?php echo JURI::Base(); ?>media/system/js/mootools-more.js" type="text/javascript"></script>
    <script src="<?php echo JURI::Base(); ?>media/editors/tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    [/*]
  • Change the installer xml file root tag to <extension></extension>

  • [*]Needs a CSS snippet to fix a bug with Validation message formatting with the 1.6 default template
    				.fc-tbx td, .fc-tbx tr {
    border: none;
    }
    [/*]
    [*]Messy fix around line 90 of index.php (administrator) to get the publish/unpublish images showing. Added the $image_path variable:
    				         <?php if((int)$form->published == 1): ?>
       <?php $image_path = $uri->base().'templates/'.$mainframe->getTemplate().'/images/admin/'; ?>
                <a href="#unpublish" onclick="return listItemTask('cb<?php echo $i;?>','unpublish')"><img border="0" alt="Published" src="<?php echo $image_path; ?>tick.png"/></a>
             <?php else: ?>
                <a href="#publish" onclick="return listItemTask('cb<?php echo $i;?>','publish')"><img border="0" alt="Unpublished" src="<?php echo $image_path; ?>publish_x.png"/></a>
             <?php endif; ?>
    [/*][/list:o]

    Bugs found and not yet fixed
    [list=1]
  • The Form Element drag and drop leaves two copies of the element (the second disappears after saving). Action drag and drop does not show this bug.

  • IE8 is a mess with many JavaScript errors in the Wizard (maybe resulting from the upgrade to MooTools 1.3 in Joomla! 1.6??)
  • [/list:o]

    Attachments
    04-03-2011 09-35-39.png
    04-03-2011 09-35-39.png
    (36.75 KiB)
    11254 Downloads/Views
    04-03-2011 09-36-28.png
    04-03-2011 09-36-28.png
    (38.93 KiB)
    11274 Downloads/Views

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    m
    mariokrupik

    Hello Greyhead,

    I just tried your modifications with the current 1.6RC, but saidly I don't get it to work. At the installation Screen i get a blank screen, even when editing the php.ini with error reporting switched on.
    Then I tried to install the Original Package, to do the modifications on the Server, but the Install fails too.

    Any chance you could wrap your Version up as an "Alpha" Installer Package for Joomla 1.6?

    thanks,
    Mario

    GreyHead

    Hi Mario,

    It was more of an experiment than anything else.

    Max has just released CFv4 RC1.6 so I'll try porting that over and document each step. And I'll see if I can find any good documentation for the Joomla! 1.6 installer to fix the table creation.

    Will take a while, I'll post here when I have anything working.

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    gasoline

    Any idea when a 1.6 version is working? I bought your extension and am now building a complex joomla 1.6 website but I need a lot of forms on the site.

    I assumed you would have a working extension already. Joomla 1.6 is now 4 months on the market and already almost 1,5 years available as pre production version.

    Are there any other options that you can suggest me in the meantime? I need the forms, and we have to launch the site end of March.

    I build custom made Joomla templates since 2005!

    admin

    Hi gasoline,

    I believe the J1.6 version of Chronoforms will be available before the 25th of March or so, the delay is only for the sake of stability of the new version, instead of releasing a new J1.6 version with bugs, we are waiting to have the V4 solid first then convert it, the conversion itself is not very hard as Bob has shown.

    Regards,
    Max

    Max
    If your main question got answered then please mark the answer using the button!

    gasoline

    I can't wait that long. I'm goiing to use RSforms.

    I build custom made Joomla templates since 2005!

    admin

    Hi,

    Until when you can wait then ? and I will try to speed up the process as much as I can.

    Regards,
    Max

    Max
    If your main question got answered then please mark the answer using the button!

    gasoline

    Don't hurry for me. I.m making a very complex site and can't afford to use extensions with possible bugs. I will be back for my next project ;-)

    I build custom made Joomla templates since 2005!

    m
    mariokrupik

    Hy Greyhead,

    do you still have your RC1.4 working? Could you Zip all those Files, so I can ftp them onto my Server? Chronoforms Files have been installed on my Site, but seems not be registered in the Database, as there is no Toolbar & Menulinks available. Any Idea how I could register them manually?

    As Max said 2 Months ago, that a 1.6 Version is out within a Week, I can't go for the Statement that it will be out very soon, and the Site needs to be up and working by next Week.

    Would be great if you could help me there,
    Mario

    GreyHead

    Hi Mario,

    OK - I'll update my files to the 1.6 release later today. (It's not useful to go for 1.4)

    I got my version to install by editing the files as uch as I could with search and replace on the installation package and then running the installer in Joomla! 1.6 to create the necessary files -- followed by another round of patching.

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    m
    mariokrupik

    thanks Bob,

    yes I followed your step by step tutorial, but somehow I get an Error at the Install Page, that Menulinks were not created.

    The only thing I weren't clear at your documentation is "jimport( 'joomla.html.parameter' );" where new Jparameter is used.
    I inserted the jimport class above each Jparameter line. Maybe this should only be done in each File once, and not multiple times in a single File.

    Mario

    GreyHead

    Hi Mario,

    OK, I'm just trying to find a working example of an installation file with MySQL queries.

    You only need the jimport once in a function; but calling it more than once shouldn't cause any problems.

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    m
    mariokrupik

    Hi Bob,

    I tried your steps again on my local wamp installation.
    I had to replace your "$mainframe =& JFactory::getFramework();" with "$mainframe =& JFactory::getApplication();" as I got an Error during install.

    After all errors during install were cleared out, I get an error of the Joomla installer
    "Error building Admin Menus" - "Installing component was successful."
    Files and Folders were installed properly, but as in the Error message, no menues apear at all.

    Typing http://mo-server-01/Eclipse-development/Joomla-1.6-SVN-source/administrator/index.php?option=com_chronoforms
    into Browser Bar, I get a blank Page returned.

    Mario

    GreyHead

    Hi mario,

    I sent you a PM with an experimental CFv4r1.6 installer for Joomla! 1.6

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    m
    mariokrupik

    Thank you very much Bob,
    but unfortunatly I do get the same error "Error building Admin Menus".

    I tried it on 2 different Sites with 1.6.1, same error.
    I will go and download a fresh Joomla Install, and try it again with demo content on my wamp install, and post back if there is any difference.

    Mario

    EDIT:

    Funny, but using a fresh copy of Joomla 1.6, the Install went flawlessy!
    I will go and check database tables, and try to erase all existing chronoforms tables.

    GreyHead

    Hi Mario,

    I'm testing on a bare 1.6.0 -- I guess that might be the difference. It sounds as though the problem could be to do with the menu problems I attributed to missing language files.

    I'll upgrade to 1.6.1 and try reinstalling (I'm also on WAMP)

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    GreyHead

    Hi Mario,

    Installation seems to be OK in Joomla! 1.6.1 too, no error messages received.

    >> Just seen your Edit too :-)

    Just a thought, are you running Joomfish on the other installations? I wonder if something else gets in the way somehow.

    Bob

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much

    m
    mariokrupik

    Ok, I got it working now.
    It had to do with the Database Entries already beeing done, by my last faulty installs.
    I had to drop the 2 Chronoforms Tables, plus the entries in _assets, _extensions and _menues

    Edit2:
    Just tried the same thing on my wamp installation, and now even my created Installation Package works. Seems everything worked ok, It only had to do with the database tables all time.
    Sorry for the trouble oops
    Mario

    m
    mariokrupik

    Bob, am I right, that there is actually no possibility to create your own Custom Form?

    I was trying to set up a form through the Forms-Manager, but there is only a little to no functionality present ATM. No Emails, etc. Menu Assignments are not working either, but I could temporarily use the External Link function.
    When I link to the Form, all I get is an empty Template, with the chronoforms Backlink.

    In the Wizard there are all Functions present, but as I got all my forms written in html/php code already, paired with Jquery and Css Styles, this ain't going to help me in any Case.

    Mario

    GreyHead

    Hi Mario,

    Click the New icon, give the form a name, then click the Code tab. You can paste the Form HTML there. Leave the Form Type as Custom.

    Save and Close the form.

    Click 'Wizard Edit' - you'll see a Warning message in the Preview tab so click Events.

    Drag a Show HTML action to the OnLoad event; then a Load CSS & Load JS actions.

    On the Load CSS action click the spanner icon and you can paste the Form CSS in there*.

    Note: You must click the spanner icon and then the Apply tag to save actions correctly.

    Drag an Email and a Show Thanks Message into the On Submit box . . .

    . . . and so on.

    Bob

    * I have Load CSS File and load JS File actions in the forums here if those are more useful.

    ChronoForms technical support
    If you'd like to buy me a coffee or two, thank you very much