3.0stable migrate form to 3.1RC2

wvanderspek 25 Feb, 2009
After migrating my form from 3.0 to 3.1RC2 the layout of my form is gone.
Another topic told that the style1.css was missing in com_chonoforms/css. Indeed it was, i placed the style1.css in the directory but not solved the problem.
When looking at the generated html code i saw this line
<!--[if gte IE 6]><link href="http://test.run4funkrimpen.nl/components/com_chronocontact/themes//css/style1-ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if gte IE 7]><link href="http://test.run4funkrimpen.nl/components/com_chronocontact/themes//css/style1-ie7.css" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if !IE]> <--><link href="http://test.run4funkrimpen.nl/components/com_chronocontact/themes//css/style1.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->

The path to the style1.css is not correct, there are 2 dashes after themes//.

Can you look at this problem: You can finde the page at : http://test.run4funkrimpen.nl/informatie/inschrijfformulier.html
GreyHead 25 Feb, 2009
Hi wvanderspek,

As far as I can see that is because there isn't a theme set. I think that if you use the Transform Form icon on the toolbar you will be able to add one of the two default themes to your form and this problem will go away.

There does seem to be a bug in the code here too. For a quick workaround open chronocontact.html.php and look for these two lines around line 31
		<?php JHTML::_('behavior.mootools'); ?>
        <?php if((!trim($rows[0]->theme))||(trim($rows[0]->theme) == 'default')){ ?>
and replace them with these lines
		<?php JHTML::_('behavior.mootools'); ?>
        <?php if (!trim($rows[0]->theme) ) { $rows[0]->theme = 'default' } ?> // insert this line
        <?php if((!trim($rows[0]->theme))||(trim($rows[0]->theme) == 'default')){ ?>
Note: Not tested and may need de-bugging

Bob

Later: edited to remove an extra (
wvanderspek 25 Feb, 2009
Hi Bob,

Thanx, I am going to fix it. You will here from me.

greetings,
Willem
wvanderspek 25 Feb, 2009
Bob,

I used the transfom form, but after that i am not able to set the default theme. When selecting my form and use the wizard edit button i get the message "Sorry but this form was not created using the wizard".

gr,
Willem
wvanderspek 25 Feb, 2009
Hi Bob,

Problem with layout is solved, i made a little change in the next line:
<?php if(!trim($rows[0]->theme)) { $rows[0]->theme = 'default'; } ?>


Now the layout is ok. Thanx.

Only the wizard edit does not work, see previous post.

greetings,
Willem
Max_admin 25 Feb, 2009
Hi Bob,

Nice fix!

Hi Willem,

unfortunately, forms created using V3.0 can't be edited using the wizard on V3.1 RC2, you must have the form created using the wizard on V3.1 RC2 to be able to edit it there!

Cheers,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wvanderspek 26 Feb, 2009
Hi Max,

Thank you for our answer and quick support, also Bob.

For me it's not such a big problem, i can build it again in 3.2.

greetings,
Willem
stmoist 19 Mar, 2009
I have had a number of problems as well with layouts, I've found it's just easier and faster to rebuild the forms with 3.2. If I had a ton of forms to migrate, I'd probably use one of the solutions listed above.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger