Forums

ChronoForms v4 and Joomla! 1.6

GreyHead 04 Mar, 2011
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
[attachment=0]04-03-2011 09-36-28.png[/attachment]
[attachment=1]04-03-2011 09-35-39.png[/attachment]

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]
    mariokrupik 14 Mar, 2011
    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 14 Mar, 2011
    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
    gasoline 14 Mar, 2011
    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.
    Max_admin 17 Mar, 2011
    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, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    Max_admin 17 Mar, 2011
    Hi,

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

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    gasoline 17 Mar, 2011
    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 ;-)
    mariokrupik 18 Mar, 2011
    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 18 Mar, 2011
    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
    mariokrupik 18 Mar, 2011
    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 18 Mar, 2011
    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
    mariokrupik 18 Mar, 2011
    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 18 Mar, 2011
    Hi mario,

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

    Bob
    mariokrupik 18 Mar, 2011
    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 18 Mar, 2011
    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
    GreyHead 18 Mar, 2011
    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
    mariokrupik 18 Mar, 2011
    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 😶
    Mario
    mariokrupik 18 Mar, 2011
    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 18 Mar, 2011
    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.
    mariokrupik 18 Mar, 2011
    Ok, I'm sorry.

    I already tried the other way around, creating an empty form with the wizard, and then extending it via the form Manager. But that didn't work either first.

    Now everything seems to work fine.
    It even seems a lot better organized than before, only that there should be another tab in the Form Manager popping up, when you use the "Custom" Code - Explaining that all further modifications need to be done through the Wizard + adding the "Show Html".

    Great work so far,
    mario
    GreyHead 18 Mar, 2011
    Hi Mario,

    Some minor fixes as I find bugs in the J1.6 version

    [list=a]
  • In libraries/chronoform.php around line 185 the first part of the __checkval() function needs to be
    	function __checkVal(){
    		$mainframe = JFactory::getApplication();
    		$database =& JFactory::getDBO();
    		$query = "
    			SELECT * 
    				FROM `#__extensions` 
    				WHERE `element` = 'com_chronoforms' 
    					AND `client_id` = 1 
    					AND `type` = 'component'";
    		$database->setQuery($query);
    		$result = $database->loadObject();
    		jimport( 'joomla.html.parameter' );
    		$configs = new JParameter($result->params);

    This fixes changes in the jos_components (now jos_extensions) table and adds the jimport line.

  • In administrator\components\com_chronoforms\form_actions\show_html\cfaction_show_html.php lines 18, 144, 156, 179 & 244 needs to be
    $CF_PATH = $uri->root();
    The () is missing.

  • The horizontal link menu in the admin area is missing. I have a fix for this now, bit too complex to post here, contact me if you need details.
  • [/list:o]
    Bob
    kairey 18 Mar, 2011
    Hopefully the 1.6 version of V4 will be out next work having read Max's post above.

    In the meantime I think I will download the V4 for 1.5 and run it on an existing domain just to get used to it. I have read somewhere that V4 installs as a separate component to the old version is that correct? I'll get it working and replace the old component and hopefully 1.6 will be ready and waiting for me 😀
    GreyHead 18 Mar, 2011
    Hi kairey,

    ChronoForms v4 will install alongside CFv32. but won't run at the same time as the two require different versions of the MooTools library.

    In Joomla! 1.5.18 or later you need the MooTools Upgrade plug-in off for CFv3.2 and on for CFv4

    Bob
    ssnobben 20 Mar, 2011
    Here is some tips about J 1.6 database changes and below PHPDoc Blocks

    Joomla database changes 1.6
    http://www.theartofjoomla.com/home/9-developer/135-database-upgrades-in-joomla-16.html

    Andrew Eddie has published some excellent doc on JDatabaseQuery and the database changes in 1.6. Good resource for developers looking to upgrade Extensions to 1.6.

    Joomla Branch or Patches for PHPDoc J 1.6 info.

    Marius Doxygen
    http://www.jfusion.org/api16/class_j_table_nested.html

    Joomla code sniffer
    http://www.jfusion.org/api16/class_j_table_nested.html
    http://forge.joomla.org/gf/project/jcodesniffer/
    http://www.rouvenwessling.de/joomla/joomla16/

    Joomla core dev group discussions about this topic
    http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/8e46f9283c264346/b60f71fc6c1202e0?#b60f71fc6c1202e0

    This code Akeeba Release System is free from Akeeba guy Dinosys the guy that is doing exellent Admin tools and Akeeba backup for Joomla..Maybe you can use if for automatic updating of ChronoForms in future?

    http://www.akeebabackup.com/download/ars.html

    About Akeeba Release System

    Akeeba Release System is a file download component, primarily designed to cater for the needs of developers. It includes time saving features, Chameleon skinning, excellent URLs out of the box, automatic download item naming and descriptions, RSS feeds, Joomla! 1.6 XML update streams and more.

    This is a tips for helping translation of Chronoforms ini files etc with help of Google and later J 1.6.

    Language-File-Tool http://www.pages-and-items.com/extensions/language-file-tool
    ssnobben 20 Mar, 2011
    This is a good comp Manifest Update also for converting your J 1.5 to J 1.6 also.Auto update Joomla extension's configuration files from Joomla1.5 to Joomla1.6, save many hours of work.

    Manifest Update J comp
    Joomla1.6 extensions configuration xml file has many difference with Joomla1.5. When your developed extensions have a lot of parameters, it would be a dull and time-consuming task to update the menifest xml files.Manifest Update can help you done the job, all you have to do is one click.


    Demo
    http://www.codeis.com/manifest-update-demo

    Download
    http://www.codeis.com/manifest-update-download
    kairey 25 Mar, 2011
    Hi Bob

    How we doing, I left it a week and popped in to have a look but still nothing official for 1.6 yet?

    I am going to have to do something pretty soon, the site is live and needing enquiry forms on each product.

    Any further clues from Max?

    Thanks and have a good weekend!
    Max_admin 26 Mar, 2011
    Thanks ssnobben!

    @kairey, I'm trying to finish it by Monday, if not then it will be out by Wednesday or so hopefully.

    If you want to save time then you can build your forms on the V4 J1.5 version then import the DB tables when the J1.6 one is ready, no plans to have any differences at the DB level.

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    kairey 26 Mar, 2011
    Thanks Max look forward to it!
    Max_admin 30 Mar, 2011
    Hi all,

    Out on Wednesday as promised!🙂

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    kairey 30 Mar, 2011
    Your a star!!

    Now I better start learning how to use the V4 version 🙂
    kairey 30 Mar, 2011
    Oh no!

    Having briefly read the documentation I just realised how to I embed this form in articles like I did with the old Chronoforms in Joomla 1.5....?

    Have I missed something in the documentation 🤨
    GreyHead 30 Mar, 2011
    Hi kairey,

    I'm not sure what the question is. If you are asking about the ChronoForms plug-in for Joomla! 1.6 there isn't one yet. It take Max a little time to do the upgrade to the new Joomla! version (and the Joomla! 1.6 docs are also a bit thin).

    Bob
    kairey 31 Mar, 2011
    Yes Bob that is correct I needed the form to be at the bottom of each boat for charter, in previous versions of Chronoforms that has been with the plugin.

    Now I am stuck, after waiting patiently for a few weeks I still can't use it. Oh well just another disaster to add to the ever growing list 😑
    kairey 31 Mar, 2011
    Just thinking quickly......

    I guess at the moment I can only build a standalone form that is linked to from the menu or an article etc?

    If I put at the bottom of each page a "click to enquire" button this will take them to the form page, but can I get it to carry the value of the boat they are enquiring about? So when I receive their details I know what they are interested in?
    GreyHead 31 Mar, 2011
    Hi kairey,

    Add the id and/or value of the boat to the form link:
    <a href='index.php?option-com_chronoforms&chronoform=xxx&boat_is=yyy&value=999'>Click here</a>
    Then look the boat_id up in the Form HTML with a DB Record Loader Action or just add the value in a hidden input.

    Bob
    diver 01 Apr, 2011
    Here is a quick remake of Chronoforms_V4_RC1.5_Plugin for Joomla 1.6.x
    GreyHead 01 Apr, 2011
    Hi diver,

    Thank you.

    Bob
    saber 01 Apr, 2011
    Unfortunately the plugin leaves me with a blank page... 😟
    GreyHead 01 Apr, 2011
    Hi,

    The blank page is caused by a PHP Error. The fix for that is to add this line
    jimport( 'joomla.html.parameter' );
    around line 58 or components/com_chronoforms/libraries/chronoform.php
    		$form = $database->loadObject();
    		jimport( 'joomla.html.parameter' ); // <-- add this line
    		
    		if(!empty($form)){


    Unfortunately I still can't get diver's plug-in to work for me.

    Bob
    saber 01 Apr, 2011
    ...and all I can see now is: "Powered By ChronoForms - ChronoEngine.com"
    unfortunately I don't see the form.
    GreyHead 01 Apr, 2011
    Hi saber,

    Hmmm. . . all I got was the plug-in code
    {chronoforms}test_form_1{/chronoforms}
    :-(

    Bob
    Arnoldogo 01 Apr, 2011
    Hi all

    I just installed Chronoforms_J1.6_V4_RC1.7.zip and I get this message:

    Fatal error: Class 'JModel' not found in /home/itparati/public_html/modules/mod_weblinks/helper.php on line 14

    What could I be doing wrong ?

    Thanks all
    GreyHead 01 Apr, 2011
    Hi Arnoldogo,

    No idea - it's an error from the WebLinks Module. Possibly something is corrupt in your Joomla! installation???

    Bob
    diver 01 Apr, 2011
    My PHP Version is 5.3.4. Works fine.
    diver 01 Apr, 2011

    ...and all I can see now is: "Powered By ChronoForms - ChronoEngine.com"
    unfortunately I don't see the form.


    Can you see the form with link "Frontend view"? If no - put "Show html" in Actions "On load".
    kairey 03 Apr, 2011
    OK I'm lost.........

    Followed the tutorials, videos etc, nothing difficult in building the form at all, but I cannot get it to work.

    Cannot see anything but an error in frontend view, tried the menu item link to it and still the same....

    http://www.medboat.com/index.php?option=com_chronoforms&chronoform=contact_us

    Do you get an error? My ADSL has been playing up....

    Site is live, working perfectly, but I am struggling with the form?
    GreyHead 04 Apr, 2011
    Hi Kevin,

    I only see a blank page there - not even an error message.

    Please set site Error Reporting to maximum temporarily. That should show you an error message that you can copy and paste here.

    Bob
    kairey 04 Apr, 2011
    Morning Bob!

    Okay did what you asked above and it did find the error:

    Fatal error: Class 'JModel' not found in /homepages/34/d218308172/htdocs/medboat.com/modules/mod_jabulletin/helper.php on line 16

    The JABulletin module is the latest and most popular boats module at the foot of the pages, if I disable them the form shows, so that is partly good news!

    ...but I want these modules to show, well would like them to, especially when I add the quick reply form to each boat.

    Is this a Joomlart template problem now rather than the form?
    saber 04 Apr, 2011
    Hi diver and GreyHead
    Yes, thank you - I can see the Form when I click "Frontend view"!

    Unfortunately I can't find out how to set up a custom form. I only get the tabs "General", Code" and "JScript" so there is no way to set up emails and other settings as there was in the Joomla 1.5 Chronoforms component.
    When I go to Form Wizard or Easy Form Wizard a new form is created, which is not what I want.
    Did I miss something?
    GreyHead 04 Apr, 2011
    Hi saber,

    Please use the 'Wizard Edit' link just next to 'Frontend view'.

    Bob
    GreyHead 04 Apr, 2011
    Hi Kevin,

    Hard to know what to suggest. It's clearly a JA Bulletin error message but why that would show up on a page using ChronoForms is a mystery to me. If you'd like to email or PM me the JA Bulletin installer I'll put it on my test site and see if I can work out what might be happening.

    If I look at the form without the template that appears to be working OK - at least as far as I can tell from the front-end.

    Bob
    saber 04 Apr, 2011
    :oops:
    I think I am getting closer...
    kairey 04 Apr, 2011

    If I look at the form without the template that appears to be working OK - at least as far as I can tell from the front-end.



    Yes Bob that is correct and the form also works if I disable the 2 JABulletin modules at the foot of the page.

    This is when it all goes over my head 😀

    I'll look out the Installer and send it to you, tx!
    GreyHead 04 Apr, 2011
    Hi Steve,

    You can remove the error and (hopefully) get the form to show by making this change in the JA Bulletin helper.php file around line 16
    require_once JPATH_SITE.'/components/com_content/helpers/route.php';
    jimport( 'joomla.application.component.model' ); // <-- add this line
    JModel::addIncludePath(JPATH_SITE.'/components/com_content/models');


    I think that the error arises because the module assumes -- incorrectly in this case -- that the current component will have loaded this class.

    Bob
    kairey 04 Apr, 2011
    Steve!!!! Who is Steve 😀

    Will test it out Bob!
    kairey 04 Apr, 2011
    Oh just tested and only get a blank email with no inputted data?
    kairey 04 Apr, 2011
    Another point to note that someone might want to test....

    If I enter an incorrect captcha it highlights the box and tells me, but it also displays the thank you message below the form?

    The thank you displays correctly if the captcha is correct on a new page....
    GreyHead 04 Apr, 2011
    Hi Kevin,

    Add a 'Show Stopper' in the ReCaptcha OnFail Event after the Event Loop.

    Bob
    kairey 04 Apr, 2011
    Thanks again Bob, I just followed the video for setting that up so hence no "show stopper" I think at some point it is going to need a good manual for us thick people! 😛

    The email form results I think I know what that is, I didn't think you would have to create a email template to receive the data, just thought it would have emailed it all by default, no big deal....

    Just the tooltip not working, that could be a CSS issue but if its a problem I might just remove the tooltip....
    GreyHead 04 Apr, 2011
    Hi Kevin,

    Hmmm . . . we could all use a manual right now . . .

    Bob
    kairey 04 Apr, 2011
    Had to give up, its stopped working now and I ain't even done anything!
    kairey 04 Apr, 2011
    How this suddenly springs from nowhere is beyond me

    Fatal error: Call to undefined method CfactionEmail::_remove() in /homepages/xx/dxxxxxxxxxx/htdocs/medboat.com/libraries/joomla/filter/filterinput.php on line 172
    saber 04 Apr, 2011
    A manual would be great - I don't get my custom form to work...
    GreyHead 04 Apr, 2011
    Hi Kevin,

    Looks like a bug with plain text emails.

    Fix is to edit the code at line 140 of administrator/components/com_chronoforms/form_actions.email/email.php
    		if(!$mode){
    			$filter = JFilterInput::getInstance(); // <-- add this line
    			$email_body = $filter->clean($email_body, 'STRING'); // <-- edit this line
    		}

    Bob
    kairey 04 Apr, 2011
    Once again you done it!!!!!

    Are you a robot/computer or human 🙂

    Now any ideas on tooltips, although I am removing them at this minute...
    kairey 04 Apr, 2011

    Add the id and/or value of the boat to the form link:

    <a href='index.php?option-com_chronoforms&chronoform=xxx&boat_is=yyy&value=999'>Click here</a>
    Then look the boat_id up in the Form HTML with a DB Record Loader Action or just add the value in a hidden input.



    I know, I know, I have asked too many questions today!😛 ...but I haven't the foggiest idea what to do here...

    Can this be explained any easier?

    /index.php?option=com_chronoforms&chronoform=contact_us I can get that far but what values go in yyy and the value is that the ID of the article?

    Happy for the page title to be called into a hidden field, but again not got a clue....
    muggslab 05 Apr, 2011
    Hi Bob,
    I've read the entire thread from Page 1 - 5.
    Am I right to say that there's no official plugin for v4 at this point of time ?
    How should I link my form to a menu if that is the case ?
    GreyHead 05 Apr, 2011
    Hi muggslab,

    Two different things I think.

    There is no official plug-in yet to let you add a ChronoForm to an article. There is an unofficial version from diver which some people seem to have been able to use (it didn't work for me but there may be some other cause for that).

    The menu creator 'views' folder was not installed in the J1.6 version, Max has posted a fix here. I'm not sure if that's a ChronoForms problem of a Joomla! one - I see that there's an installer fix for this in the 1.6.1 release.

    Bob
    kairey 06 Apr, 2011
    Bob just wondered if you saw my reply above and if there is an easy way to explain it?
    GreyHead 06 Apr, 2011
    Hi Kevin,

    Sorry, I did see it and the left it to reply to later :-(

    You need to pass something to the form to identify the boat. Usually you will have some form of identifier that links to wherever the boat data is stored.

    Hard to say much more without knowing how your boat data is structured?

    Bob
    bruce_1236 06 Apr, 2011
    Hi Bob,

    you wrote there is an unoffical plugin from driver... its working for me... but there is an other general bug with the internal joomla caching function.

    if activated, the forms dont work anymore...
    it tried to find a solution, but no success, but iam no programmer...

    Is there any solution for this caching-"bug" or a possibility to deactivate caching for different contenst / ids or ithems in joomla?

    A solution would be great!
    Further the new version is very different to the older ones. I needed much time to bring my custom forms "nearly" to work for J1.6... So a manual would help!

    My first impression is, that this version needs lots of clicks (and time) to get a working form...

    I hope you can help me, thank you
    GreyHead 06 Apr, 2011
    Hi bruce_1236,

    I've got no idea what the cacheing problem is? Haven't seen it reported before, and you probably don't want to cache form pages.

    I agree that a manual would help - unfortunately I'm already spending too much time with the much larger number of posts here :-( Manual writing will need to wait.

    My experience so far is that using the Easy Form Wizard is about the same time as the previous version; it does take longer with the Avdanced Wizard until you get used to all the possible combinations.


    Bob
    kairey 06 Apr, 2011
    No need to be sorry you have been a great help to date!

    The only data to pass to the form, and it can be in a hidden field or displayed in a text box, is the page title, that is enough information for me to know what they are enquiring about. If I knew how to do that maybe I could experiment further myself...

    So if I have a click here to enquire button, that needs a string adding to pass to the form, and the form needs to pick up that data and send it to me. I just don't have a clue what syntax to use or how to do it.

    With regards to the problem above with Joomla cache, my site has no issues with the forms and caching. I did have some plugins that played up though and the authors of them told me what to add to stop their particular plugins holding data. As Bruce has got the plugin working maybe this is what is wrong?

    Time for dinner!
    bruce_1236 07 Apr, 2011
    Hi Bob,

    thank you for answer!
    Ok i find a solution for me with a hack of a joomla core files.

    I try again to explain:
    The problem: i use a from with this chronoplugin (from driver) in a Jommla-Content - in global config. the cache is "on (advanced)" - in this case, its not possible to send forms (reload of the form). If global cache is off - its works normal...

    now i made a hack of the file.php of the public function store:

    if(strstr($data,'<!--nocache-->')) return true;

    In this case the form works...
    Or is there a better way to stopp caching of the forms in content?

    Thank you for your great work here! I wouldn't complain me, i was only a little frustrated...
    Ajozi 07 Apr, 2011
    Hi,
    I tried including my ChronoForm in a Joomla content page with the help of diver's plugin. Now I get the following error message when loading the page:

    "Fatal error: Class 'JParameter' not found in .../components/com_chronoforms/libraries/chronoform.php on line 63"

    This is how the chronoform.php looks like (line 63 is bolt):
    	function getForm($formname){
    		$mainframe = JFactory::getApplication();
    		$database =& JFactory::getDBO();
    		$query = "SELECT * FROM `#__chronoforms` WHERE `name` = '".$formname."' AND `published` = '1'";
    		$database->setQuery($query);
    		$form = $database->loadObject();
    		
    		if(!empty($form)){
    			$this->form_details = $form;
    			$this->form_name = $form->name;
    			//load params
    			$this->form_params = new JParameter($form->params);	
    			//load actions
    			$query = "SELECT * FROM `#__chronoform_actions` WHERE `chronoform_id` = '".$form->id."' ORDER BY `order`";
    			$database->setQuery($query);
    			$this->form_actions = $database->loadObjectList();
    			return true;
    		}else{
    			$this->form_details = new stdClass();
    			$this->form_name = '';
    			$this->form_params = new JParameter('');
    			return false;
    		}
    	}


    Any idea how to solve that issue?
    darken21 07 Apr, 2011
    hi,

    i manage to get the form to show up in a joomla article and tried submitting the form. it worked for the first time and i received it, but all the stuffs typed in the fields are not shown in the email.

    i then tried a 2nd time, but this time onwards everytime i try to submit the form, it just shows a blank page, and i am not receiving any emails too.

    anyone can help me around this? im so close!!!
    GreyHead 07 Apr, 2011
    Hi all,

    @Ajozi: there's a fix for the JParameter bug here - a few posts after diver's plug-in.

    @darken21: Hard to know, normally if a ChronoForm works once then it keeps on working unless the settings are changed. Please post a link to the form so we can take a quick look.

    @Steve: in Joomla! 1.5 you can get the current page title from $document->title() or maybe $document->getTitle(). I don't yet know what the 1.6 equivalent is.

    Bob

    PS If you have distinct issues, please start a new topic, it's much easier to follow up that way :-)
    kairey 07 Apr, 2011
    Hey Bob you ignoring me? 😀
    GreyHead 07 Apr, 2011
    Hi Kevin,

    No I just called you Steve by mistake . . . it's been one of those weeks :-(

    Bob
    darken21 07 Apr, 2011
    hi greyhead,

    the link to my form is here. please help me take a look. thanks. i really need to solve this final part, i am so close.
    GreyHead 08 Apr, 2011
    Hi Darken21,

    That looks a like a PHP fatal error. Please temporarily set Error Reporting to Maximum for your site in the site Gloabal Configuration; then submit the form and copy and paste any error message that you see here.

    Bob
    darken21 08 Apr, 2011
    Hi Bob,

    Ok error message is "Fatal error: Call to undefined method CfactionEmail::_remove() in /home/medicare/public_html/libraries/joomla/filter/filterinput.php on line 172"
    darken21 08 Apr, 2011

    Hi Kevin,

    Looks like a bug with plain text emails.

    Fix is to edit the code at line 140 of administrator/components/com_chronoforms/form_actions.email/email.php

    		if(!$mode){
    			$filter = JFilterInput::getInstance(); // <-- add this line
    			$email_body = $filter->clean($email_body, 'STRING'); // <-- edit this line
    		}

    Bob



    Hi Bob,

    I tried this and my form is able to be sent and received now in email. However, the email doesnt contain any of the results in the fields that i filled in, only the IP address, thats all. can you help me? thanks!
    GreyHead 08 Apr, 2011
    Hi darken21,

    You probably need to add some content into the Email Template; unlike CFv3.2 there is no default template built for you.

    Bob
    muggslab 11 Apr, 2011
    Hi Bob,
    I am getting a js error on my firebug
    this.form.getProperty is not a function
    http://marketaccesscanada.ca/_TEST/strategyinstitute/components/com_chronoforms/js/formcheck/formcheck-yui.js
    Line 1


    Although I doubt there's any relevance, this error occurred after using the plugin found on this thread. I did the paramater import as suggested by you.

    Webpage: http://marketaccesscanada.ca/_TEST/strategyinstitute/contact.html
    Max_admin 11 Apr, 2011
    Hi guys,

    Hopefully we will have a new CF version for J1.6 ready today or tomorrow along with an official plugin with all errors fixed.

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    GreyHead 11 Apr, 2011
    Hi muggslab,

    I think this is the problem that we've seen in another thread when JQuery is loaded and not put into noConflict mode before the formcheck library is loaded. I can see no evidence of the noConflict code on the page either; this is still needed for the time being.

    BTW: you have two different versions of JQuery loading which might cause problems without the MooTools conflicts.

    @Max: it might be worth wrapping the formcheck class in a domready event so that it isn't called before other files are loaded.

    Bob
    Leonhartsberger 14 Apr, 2011
    Hello and congratulations for this great project.

    I tryed v3 before (only local) and now I was testing v4 with Joomla 1.6 to publish online. Everything looks ok, except that I can't make the plugin from diver to work. I need to publish the contact form inside an article and can't make it to render... it keeps showing {chronoforms}Contactos{/chronoforms}, where Contactos is the name of the form.

    Any ideas?

    Thanks in advance,
    Dani
    Max_admin 15 Apr, 2011
    Hi,

    @Bob, but the formcheck is already inside the domready event! :?

    @Dani, Do you have the plugin enabled ? I'm planning to release the official plugin very soon.

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    Leonhartsberger 15 Apr, 2011
    Yes, plugin is enabled... same as I did with version 3, but it's not working for some reason. When are you planning on publishing the official version?
    rushinge 15 Apr, 2011
    I could have sworn I had Diver's chronoforms plugin working just fine (I'm using Joomla 1.6.1) but I started getting the error "Class 'HTML_ChronoContact' not found in C:{...}\plugins\content\chronoforms\chronoforms.php on line 63"

    I did a search for HTML_ChronoContact in my IDE and the only reference I found was in \plugins\content\chronoforms\chronoforms.php.

    Where will you put the news when you release the official plugin version?
    cmlux 16 Apr, 2011
    Hi,

    I do not habe a folder/file with "form_actions.email"
    Where I can put this code otherwise for solving the error?

    Original message:
    ----------------------------------------------------------
    Fix is to edit the code at line 140 of administrator/components/com_chronoforms/form_actions.email/email.php

    Code: Select all
    if(!$mode){
    $filter = JFilterInput::getInstance(); // <-- add this line
    $email_body = $filter->clean($email_body, 'STRING'); // <-- edit this line
    }
    ----------------------------------------------------------

    Big Thank
    Claude
    Max_admin 17 Apr, 2011
    Hi,

    @Leonhartsberger, released few minutes ago!
    @rushinge, please install the new version OVER the old one, it will fix this issue.
    @cmlux, please install the new version OVER the old one, it will fix this issue.

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    GreyHead 18 Apr, 2011
    Hi Max,

    @Bob, but the formcheck is already inside the domready event! :?


    The custom setup for this form is; but the formcheck-yui.js file itself isn't and the file executes on load to create a new Class
    var FormCheck=new Class({Implements:[Options,Events] . . .

    Bo
    Leonhartsberger 19 Apr, 2011
    Thanks Max,

    It is now working!🙂

    I'll now try to discover how to make everything to work.

    Once again, congratulations for this great component!

    Regards
    Max_admin 21 Apr, 2011
    Hi Bob,

    I have never faced any issues because of that but I will test it and see if it has any side effects🙂

    @Leonhartsberger, you are welcome! 😀

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    davidakis 16 May, 2011
    I decided to upgrade to Chrohoforms v4 and Joomla! 1.6
    I set up a form but clicking on "frontend view" I am not able to see anything. I also tried to change the template, but the result is the same. Any suggestions? Thanks a lot.

    edit: I just solved. I put "Show html" in the onload box of the Actions folder.

    Thanks.
    hdwebpros 15 Jun, 2011
    Just my 2cents. Re-doing large forms, such as on-line applications is a pain in the arse. Chronoforms used to automatically create your email template. It would be a big bonus to the component if you could re-include that aspect.

    Thanks for listening (reading)
    Francesco Bedussi 21 Jun, 2011
    Hallo everyone,
    I've installed ChronoForm v4 RC1.9 on a Joomla 1.6.3.

    I've successfully configured and published a form.

    The form is very simple, it has a checkbox, a text imput for name and one for e-mail address.

    It should send an e-mail with a fixed attachment to people who fill it. I can get it to send the message, but I can't manage to send the attachment.

    I've found some posts with code patches for fixed attachments, but they all refer to joomla 1.5 and they all require to edit the form code, but (second problem!) I can see no form code for the actions, just for the front end.

    Can anybody help?

    Thanks in advance
    hdwebpros 07 Jul, 2011
    Am I right? You have to manually create your email templates in J 1.6?
    GreyHead 07 Jul, 2011
    Hi hdwebpros,

    Yes, you are right.

    Bob
    almchad 19 Jul, 2011
    Went to get Joomla 1.6 and now they are doing 1.7 have you guys worked with 1.7?
    GreyHead 20 Jul, 2011
    Hi almchad,

    I just upgraded my Joomla! 1.6 test site to 1.7 and ChronoForms seems fine. (The upgrade was messy and three seem to be a lot of forum reports about problems. In the end FTPing the new files worked OK.)

    Bob
    jmarian1 30 Jan, 2012
    Hi. This maybe not the right place to post this but I am not able to create a new topic here. Pardon me. Anyway, I install Joomla 1.6.6 full package and finds out that mootools library is not included with the installation so using the chronoform v4 is not working (no wonder i tried how many times to use the db record loader but I am unable to). Is there a tutorial or a way how can I get the Mootools Library 1.3 as it requires using the Chronoform v4 in Joomla 1.6? Please help.

    Jenny
    GreyHead 30 Jan, 2012
    Hi jmarian1,

    Joomla! 1.6.6 is out of date, it has been replaced by 1.7 and now by 2.5; and a correct installation of any of these certainly includes MooTools.

    You should be able to add a new topic by clicking the ChronoForms v4 link above where it says "Board index ‹ ChronoForms Forums ‹ ChronoForms v4"


    Bob
    jmarian1 30 Jan, 2012
    Hi Bob,

    Following your instructions, I actually deleted my new joomla 1.6.6 version in my server and install a brand new full package 1.7.3 version but still mootools is not included. I like working with chronoform v4 because that's what we have in other website as well and I am getting use to it but I don't want to install the 2.5 version yet. Is there any other way how to include mootools in the joomla? I don't want to work with joomla 1.5.23 because it is already outdated. Please help. I really need this to work as soon as possible. Thanks in advance.
    GreyHead 31 Jan, 2012
    Hi jmarian1,

    In my installations of Joomla! 1.7 and 2.5 the MooTools files are in /media/system/js/ with both compressed and uncompressed versions.

    Bob
    jmarian1 08 Feb, 2012
    Hi Bob,

    By all means, although mootools can't be seen in the plugin manager in the administrator site, it is automatically installed and enabled at the backend, right? I checked the file and yes, both are there. I just want to make sure that I don't need to hack the code to enable the mootool for v4 rc3.11. Thanks.
    GreyHead 08 Feb, 2012
    Hi jmarian1,

    MooTools is installed as a part of Joomla!. It's loaded into your pages by your template or by an extension. Most but not all templates do this for you.

    If it isn't loaded automatically you can usethe PHP code JHTML::_('behavior.mootools');

    Bob
    This topic is locked and no more replies can be posted.