Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#211 2007-06-12 08:13:38
- DarkEol
- New Member
- Registered: 2007-06-12
- Posts: 2
Re: zem_contact_reborn 4.0.3.19 (old version)
zem_contact_lang 4.0.3.6:
“If you have a dual-language site and the languages use separate “sections”, you can use the tag to enable different translations. An example of this usage is shown in the “forum thread”:http://forum.textpattern.com/viewtopic.php?id=13416. Our thanks to Els (doggiez) for this example.”
This thread doesn’t exist. So where I can see example of using different translations?
Offline
#212 2007-06-12 08:19:52
Re: zem_contact_reborn 4.0.3.19 (old version)
It does exist: http://forum.textpattern.com/viewtopic.php?id=13416
Offline
#213 2007-06-12 08:38:42
- DarkEol
- New Member
- Registered: 2007-06-12
- Posts: 2
Re: zem_contact_reborn 4.0.3.19 (old version)
Oooops… Thanks :-)
P.S. When I logged in I can see it. Otherwise forum answers: “Bad request. The link you followed is incorrect or outdated.”
Last edited by DarkEol (2007-06-12 08:44:06)
Offline
#214 2007-06-14 15:58:18
Re: zem_contact_reborn 4.0.3.19 (old version)
Hi all, here’s my question:
how can I make this wonderful plugin to always send the article excerpt AND the body? Last version sends only the excerpt if it is present, how can i disable this function?
Thanks to everyone
Edit. Other question: is there a way to avoid html entities to be shown in the email containing the article? I think it is caused by the tiny_mce editor, which I use, how can i fix it?
Last edited by vittorio (2007-06-14 16:03:26)
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#215 2007-06-14 19:41:27
Re: zem_contact_reborn 4.0.3.19 (old version)
In tiny_mce.js there is a configuration option “entity_encoding” that must be changed to “raw” to avoid unnecessary html entities.
To get both body and excerpt in the email, edit the plugin and change this line (around 15% from the top, around line 150, I think):
$msg[] = trim(strip_tags(str_replace($s_ar,$r_ar,(trim(strip_tags($thisarticle['excerpt'])) ? $thisarticle['excerpt'] : $thisarticle['body']))));
into:
$msg[] = trim(strip_tags(str_replace($s_ar,$r_ar,$thisarticle['excerpt'].$thisarticle['body'])));
Last edited by ruud (2007-06-22 17:28:59)
Offline
#216 2007-06-14 20:40:47
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: zem_contact_reborn 4.0.3.19 (old version)
Can someone tell me what I need to do to change the style of the legend border? Do I need to set a class in my form? Is there already a class I can just change in my css? (And do I need to use the legend tag itself? Right now I’m letting it do its thing automatically)
—
WebKat
Offline
#217 2007-06-14 21:12:21
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
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 ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
#221 2007-06-15 06:49:23
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
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
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
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,319
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