Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#217 2007-06-14 21:12:21

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

In your CSS:

form.zemContactForm legend { your legend style }

Offline

#218 2007-06-14 21:17:32

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

Thank you!



WebKat

Offline

#219 2007-06-14 21:28:28

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

I was mistaken—apparently it’s not “legend” that I need. I’m trying to restyle the line that goes around the form… right now it’s the sort of grey and white “3-d” style line, and I want it styled like this: {border: 1px solid #fae4b4;}

I also just saw that while the box is the full width of the window in Firefox, it is only the width of its content in IE… I’d like to have it be the width of the window, as it is in Firefox.

(you can see the page I’m looking at here: http://opalcat.com/newsletter/subscribe-to-the-newsletter )

Last edited by OpalCat (2007-06-14 21:30:03)



WebKat

Offline

#220 2007-06-14 23:39:26

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,763
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

fieldset {border: 1px solid #fae4b4;}


Where is that emoji for a solar powered submarine when you need it ?

Offline

#221 2007-06-15 06:49:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

form.zemContactForm fieldset { border: 1px solid #fae4b4; width: 99%}

Offline

#222 2007-06-15 09:47:28

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,528
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi ruud!

Sorry but I need some advices.
If I’m right :
The “secret” ZCR tag can be send within the e-mail form but it’s not visible within the xhtml source. Is that right?

I’m trying to send this line by e-mail:

echo zem_contact_secret(array(
'label'=>'.$variable.',
'name'=>'Commande',
));

… but it’s not shown in my e-mail.
How to make that rule?
Ths lot.

Cheers,

Last edited by Pat64 (2007-06-15 09:52:47)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#223 2007-06-15 10:32:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

echo zem_contact_secret(array('label' => 'Commande'), $variable);

or

<zem_contact_secret label="commande">
  <txp:php>global $variable; echo $variable</txp:php>
</zem_contact_secret>

Assuming you want this in the email: Commande: contents of $variable

Last edited by ruud (2007-06-15 10:37:09)

Offline

#224 2007-06-15 10:38:03

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,528
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

Tks lot ruud!

I think you are my prefered Core Developper :)

Regards,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#225 2007-06-15 23:39:04

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,284

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi Ruud, is filling the email field always required? I’m asking because I use <txp:zem_contact_email label="E-Mail-Adresse" required="no" />, which is apparently correct, as the help text lists the same options for zc_email as for zc_text fields. But it forces me to fill in an email address. I’d need a contact form for “older europeans”, please ;)

Last edited by uli (2007-06-15 23:40:25)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#226 2007-06-16 09:12:01

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

uli, that’s a known bug. Edit the plugin, near the botton, there’s a function called zem_contact_lAtts. Change all occurrences of == to ===.

I have a week vacation now, so I’ll probably have enough time to release a fixed version.

Offline

#227 2007-06-16 12:56:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,284

Re: zem_contact_reborn 4.0.3.19 (old version)

Change all occurrences of == to ===.”

Sounds simple enough to try it. I have to apply it to exactly the following part, right? (I.e. I’ll change 4 occurences of ==.)

function zem_contact_lAtts($arr, $atts)
{
    foreach(array('button', 'copysender', 'checked', 'required', 'send_article', 'show_input', 'show_error') as $key)
    {
        if (isset($atts[$key]))
        {
            if ($atts[$key] == 'yes') $atts[$key] = 1;
            elseif ($atts[$key] == 'no') $atts[$key] = 0;
            else $atts[$key] = intval($atts[$key]);
        }
    }
    if (isset($atts['break']) and $atts['break'] == 'br') $atts['break'] = '<br />';
    return lAtts($arr, $atts);
}

Would you please release a compressed version, too? Thanks a lot.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#228 2007-06-16 13:13:00

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Only two really, just the yes/no ones.

I’ll probably go the compressed route by default for new versions, offering a non-compressed version only for the very very few people who don’t have zlib compiled into their PHP. The benefits probably outweigh the disadvantages for plugins this size.

Last edited by ruud (2007-06-16 13:15:53)

Offline

Board footer

Powered by FluxBB