Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#709 2009-12-12 15:36:27

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

Re: zem_contact_reborn 4.0.3.20

aswihart wrote:

I’ve basically got the functionality I want now by using .zemText {display:none;} to hide the email input field and label. I suppose someone could override the CSS and type in another email address, but they would still have to be logged in to get past rvm_if_privileged, and know to unhide those elements, which is unlikely. Thanks for getting me to this solution.

There is an alternative. Remove the zem_contact_mail tag and replace it with:

<txp:php>
  global $zem_contact_recipient;
  $zem_contact_recipient = rvm_privileged_user(array('type' => 'email'));
</txp:php>

Any way to get rid of the “Email: email@address” and “Secret:” elements of the email? I just want to include the stuff I’ve enclosed in the secret container tags.

If you look at the plugin code, you’ll see various occurrences of $msg[]. Each of those lines adds content to an email and automatically adds a line break. If you don’t use this plugin for any other contact forms, you could remove this part:

        foreach ($zem_contact_labels as $name => $label)
        {
            if (!trim($zem_contact_values[$name])) continue;
            $msg[] = $label.': '.$zem_contact_values[$name];
        }

And add a few lines like this that add only the contents of an input field (secret or not) to the email. You’ll have to set the name attribute for the input fields involved, for example: name="myname":

$msg[] = $zem_contact_values['myname'];

Offline

#710 2009-12-14 14:21:58

Ldx
Member
Registered: 2009-10-24
Posts: 15

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

Ldx, if you’re a bit familiar with PHP, this should get you started (put it in the thanks_form):

Ruud, thank you very much, I’ll do this way.

Offline

#711 2009-12-14 18:38:34

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: zem_contact_reborn 4.0.3.20

Thanks a lot Ruud, your support of this plugin means a lot, and you’ve really helped out a key feature for my site with the code and tips you provided. Happy holidays!

Last edited by aswihart (2009-12-14 18:38:52)

Offline

#712 2009-12-19 00:38:17

koobs
Member
Registered: 2008-11-25
Posts: 27

Re: zem_contact_reborn 4.0.3.20

Sorry if this is an obvious question… How do I apply my own classes to the submit button or is it even possible?

Thanks

Offline

#713 2009-12-19 07:21:18

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

Re: zem_contact_reborn 4.0.3.20

koobs wrote:

How do I apply my own classes to the submit button or is it even possible?

input.zemSubmit {}
div.blabla input.zemSubmit {}
input[type="submit"] {}

You can find all the classes names at the “Styling” section of the plugin help page.

Offline

#714 2009-12-19 09:24:31

koobs
Member
Registered: 2008-11-25
Posts: 27

Re: zem_contact_reborn 4.0.3.20

Thanks, I read that earlier, but I need to apply my own class names.

Is this possible?

Thanks

Offline

#715 2009-12-19 14:01:29

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

Re: zem_contact_reborn 4.0.3.20

If you don’t mind hacking plugin code, it’s possible. Using the built-in classes is easier.

Offline

#716 2009-12-22 21:03:36

June52521
New Member
Registered: 2009-12-22
Posts: 3

Re: zem_contact_reborn 4.0.3.20

Does zem_contact_reborn have a CC or BCC option? The only way I know to send the form to multiple recipients is to add a comma between email addresses on the TO line. This is not an option as everyone can see the email addresses.

to=“email1@test.com,email2@domain.com”

Any good workarounds? A search did not pull up if this feature exists or not. Thanks guys!

Offline

#717 2009-12-22 23:07:43

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

Re: zem_contact_reborn 4.0.3.20

June52521, there’s no CC or BCC option, but there is a copysender option. Perhaps that’s what you’re looking for.

Offline

#718 2010-01-10 23:48:50

davebias
Member
From: New York, NY
Registered: 2006-04-11
Posts: 16
Website

Re: zem_contact_reborn 4.0.3.20

I have having the most perplexing problem implementing zem_contact_reborn.

I’m using the latest version of the plugin (and the Lang plugin as well) in TXP 4.2.0

The code I’m using is:

<txp:zem_contact to="website@jewishpresenters.org" subject="Website Suggestion or Problem" label="">
<ol>
<li><txp:zem_contact_text label="Your Name" break="" /></li>
<li><txp:zem_contact_email label="Your Email Address" break="" /></li>
<li><txp:zem_contact_textarea label="Your Comments" rows="10" cols="20" break="" /></li>
<li><txp:zem_contact_text label="Problem Page or Item Link" break="" required="0" /></li>
<txp:zem_contact_submit label="Submit" />
</ol>
</txp:zem_contact>

For whatever reason – a reason that I simply cannot find a cause for – every time I try to submit the form, I get a “Nice Try” response, as if the form sees my input as spam and will not even send the form. I’ve tried three different email addresses and each elicits the same response. I’ve used this plugin with my server (Rackspace Cloud) before with no problems, so I don’t think that it’s a server-side issue.

I’m under a very tight deadline to get this demo site working (http://www.jewishpresenters.com/general_contact) for a presentation tomorrow and Tuesday. If there’s anyone who can help me, I’m ready to give you complete access to TXP and my server so we can get to the bottom of this. Contact me directly – me@davebias.org – if you can help.

Until then, I will continue to pull out my hair.

Last edited by ruud (2010-01-11 19:30:13)

Offline

#719 2010-01-11 00:51:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

Dave, does this post help?

Offline

#720 2010-01-11 01:20:14

davebias
Member
From: New York, NY
Registered: 2006-04-11
Posts: 16
Website

Re: zem_contact_reborn 4.0.3.20

Thanks Els. The “Nice Try” message is gone – but the form still does not appear to be working. I added a re-direct to a “thanks” page and that isn’t working either…

Offline

Board footer

Powered by FluxBB