Forums

Problem editing elements.php on default theme

blakex 13 May, 2009
Hi, I have problem with editing the theme.
I've already edited the elements.php on Default them,
but this has no effect on the form(cleaning joomla cache is also has no effect.)
what is the solution ? or If editing elements.php has no effect, What is the actual file I should edit ?

thanks
Max_admin 14 May, 2009
Hi blakex,

Whats the path for the file you edited ? and what are you trying to achieve ? this will help me tell which file should be edited!

remember that you can simply add a complete new theme and transform to it instead of editing the default one!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
blakex 16 May, 2009
the path is components/com_chronocontact/themes/default/elements.php -> no effect

if I edit on /administrator/components/com_chronocontact/themes/default/elements.php , it also has no effect

my purpose is I want to remove : <div class="cfclear"> </div>
GreyHead 16 May, 2009
Hi blakex,

You probably don't need to delete the div - just change the css for .cfclear. You can set display:none to hide it completely.

Bob
blakex 16 May, 2009
Hi,
to delete the div is just the beginning,
for further scenario I want to restructure all the page for integrating with my design. (just edit the css not solving my problem)

further experiment,
I create folder with the name Theme2 and copy default theme folder to Theme2. ---> Still not work.

how to solve this problem?
GreyHead 16 May, 2009
Hi blakex,

Turn off the ChronoForms styling, edit the Form HTML by hand and add your own CSS to do exactly what you want.

Bob
blakex 17 May, 2009
I can't find the option to turn off ChronoForms styling

But I Can make it works now by editing directly Form HTML on the 'Form Code Tab'.
It seems the script doesn't allow to editing php from external editor, it should edited from 'Form Code Tab'

thank you for the direction
GreyHead 17 May, 2009
Hi blakex,

I can't find the option to turn off ChronoForms styling


If you set "Load Chronoforms CSS/JS Files?" to 'No' then the stylesheets won't be loaded (and some js files may not be loaded also to you'll need to do that by adding the code to the Form HTML if you want them included).

It seems the script doesn't allow to editing php from external editor, it should edited from 'Form Code Tab'


That's correct. If you want to use an external editor then you can put your PHP+HTML into an external file - I use com_chronocontact/includes/[form_name]/formhtml.php and add a 'require' statement in the Form HTML box.
<?php
require_once(JPATH_BASE.DS.'components'.DS.'com_chronocontact'
    .DS.'includes'.DS.'form_name'.DS.'formhtml.php');
?>
Note: if you do this ChronoForms is unable to parse the code and some features may not work automatically.

Bob
Max_admin 18 May, 2009
Hi,

you should edit :/administrator/components/com_chronocontact/themes/default/elements.php

then reopen the form in the wizard and save it again so the form code is regenerated with the new data!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.