Page 1 of 1
Using the style option in the contact_form plugin - it's not working for me
Posted: Thu Mar 02, 2006 11:15 pm
by agraddy
Hi,
I am trying to use the style option for the contact_form plugin.
I want to turn the default styles off.
I've tried
Code: Select all
{contact_form email='email@site.com' style=false}
Code: Select all
{contact_form email='email@site.com' style='false'}
Code: Select all
{contact_form email='email@site.com' style=0}
Code: Select all
{contact_form email='email@site.com' style='0'}
Nothing seems to work.
I am using CMS Made Simple 0.11.2
PHP Version 4.4.1
Does the style option actually work? If so, how do you use it?
Re: Using the style option in the contact_form plugin - it's not working for me
Posted: Fri Mar 03, 2006 11:17 am
by GwynPerry
The stylesheets for the content forms are inline, which I think means they override everything else. Look in plugins/function.contact_form.php, line 65-71.
There are several things wrong with that form from an XHTML/CSS point of view. No labels, no IDs, things like that. I'm working on a custom version for my site which I may release, although I've heard of another one- feedback_form or something like that. I'd check that out if I were you- it may serve your purposes.
Re: Using the style option in the contact_form plugin - it's not working for me
Posted: Mon Sep 25, 2006 9:38 pm
by stopsatgreen
I'm having the same problem; I want to turn the default styles off, but it doesn't seem to work. I've even opened up function.contact_form.php and changed
to
Still doesn't work.
I had to take the rather drastic step of removing the:
Code: Select all
<?php echo ($style) ? $elementStyle: ''; ?>
command from each element.
Re: Using the style option in the contact_form plugin - it's not working for me
Posted: Tue Sep 26, 2006 6:03 am
by tsw
hmm, I just tested this a while ago (on a svn install..) and it worked..
there was a problem with that code but its with this commit
http://trac.cmsmadesimple.org/cgi-bin/t ... geset/3437
which version are you using?
Re: Using the style option in the contact_form plugin - it's not working for me
Posted: Wed Sep 27, 2006 9:27 am
by stopsatgreen
I'm using 1.0.1 (soon to upgrade to 1.0.2).