chronoforms 'acts strange' after inserting php code

Iwan 16 Sep, 2010
L.s.,
after i inserted php code into the form html and clicking apply the looks of chronoforms changed in the back-end >> no more tabs, but all the form info is under eachother on one page: General, Setup Emails, Emails Templates, Form Code etc. Going back again to forms management and the form i'm trying to alter results in good 'back-end make up' again

Besides that chronoforms is now telling me that my chronoforms install is not validated (and i can't find back my "instant code":oO)

I did try to insert the workaround mentioned in your forum:
<?php
if ( !$mainframe->isSite() ) { return; }
. . .
But doing this resulted in errors reports on the url from the form in the frontend of my website so i took away this workaround again. Without it, the form is working in the frontend, but it seems that chronoforms is now croocked in the backend resulting in the issues mentioned above.

Please, do you know what to do?
GreyHead 16 Sep, 2010
Hi Iwan,

Please check for typos in the workaround code. I have it working on many forms with no problems in the front-end. (The code you've posted look good.)

Bob
Iwan 17 Sep, 2010
Thanks a lot for your swift reply and you were right Greyhead (loving that nickname;)

It was not just a typo, but more of a Noobs mistake in the php code that i copied and pasted.
I'll explain my error so other noobs like me are able to see what was causing the error(s).

instead of replacing the <?php that starts the code, i placed the workaround code (coloured in the next example) after this opening tag, resulting in wrong code that started like:

<?php
<?php
if ( !$mainframe->isSite() ) { return; }
. . .
$script = "
new Calendar({ date_1: 'd/m/Y', date_2: 'd/m/Y' },
{
navigation:1,
direction: 7,

Notice the double <?php opening tag in the WRONG EXAMPLE ABOVE! And you can also see that the three dots are still there. (i think that) the three dots that end this code should also be taken away when inserting, resulting in the good code that looks (starts) like this:

<?php
if ( !$mainframe->isSite() ) { return; }
$script = "
new Calendar({ date_1: 'd/m/Y', date_2: 'd/m/Y' },
{
navigation:1,
direction: 7,
GreyHead 17 Sep, 2010
Hi Iwan,

Perfect, thank you.

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