Using the style option in the contact_form plugin - it's not working for me

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
agraddy

Using the style option in the contact_form plugin - it's not working for me

Post 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?
GwynPerry

Re: Using the style option in the contact_form plugin - it's not working for me

Post 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.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Using the style option in the contact_form plugin - it's not working for me

Post 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

Code: Select all

$style = true;
to

Code: Select all

$style = false;
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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Using the style option in the contact_form plugin - it's not working for me

Post 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?
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Using the style option in the contact_form plugin - it's not working for me

Post by stopsatgreen »

I'm using 1.0.1 (soon to upgrade to 1.0.2).
Locked

Return to “CMSMS Core”