Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#637 2009-06-20 12:42:06

Clayton
Member
Registered: 2009-06-12
Posts: 14

Re: zem_contact_reborn 4.0.3.20

Is it possible to put a rel=“nofollow” on txp:zem_contact_send_article ? I’m using it in all articles in this way and googlebot seems almost obsessed with crawling every one, and I fear it might class it as duplicate content

Offline

#638 2009-06-21 02:38:42

paperboy
Member
From: Gothenburg, SE
Registered: 2006-01-24
Posts: 30
Website

Re: zem_contact_reborn 4.0.3.20

@redbot

Yes please forward me the files. I added my email address to my profile.
Thanks!

Offline

#639 2009-07-07 11:44:48

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: zem_contact_reborn 4.0.3.20

Hi,
I’ve read some of the posts on this thread but none appear to help.

I have an article (actually a product) and using send_article so the user can send an email with some details of the article/product in the email.

I have this on the article form:

<txp:zem_contact to="myemail@email.com" send_article="1" form="send_product" />
<txp:zem_contact_send_article />

My form is:

<div class="fieldcontainer">
<txp:zem_contact_text label="Name" required="1" break=""/>
</div>
<div class="fieldcontainer">
<txp:zem_contact_email break=""/>
</div>
<div class="fieldcontainer">
<txp:zem_contact_text label="Phone" break="" min=7 max=15/>
</div>
<div class="textareacontainer">
<txp:zem_contact_textarea label="Your question" required="1" cols="48"/>
</div>
<txp:zem_contact_submit label="Send" />

It keeps asking for a recipient field but I don’t want the user to type one in themselves so I removed it ( i know the instructions says to add this). I want the email to go straight to the email address as declared in the article form.
In summary, is there a way to send on information from an article (excerpt, title etc) in an email using the send_article tag?

Help would be vastly appreciated.

Cheers
Mike

Offline

#640 2009-07-07 16:52:37

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

mfos / Mike, I think you shouldn’t be using the send_article form, which is intended for sending sending articles to an email address supplied by the visitor, but instead use zem_contact as a normal contact form, perhaps using the zem_contact_secret tag to add additional information to the email.

Offline

#641 2009-07-17 06:53:57

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Re: zem_contact_reborn 4.0.3.20

A client wanted to collect form submissions in a spreadsheet so I created a little plugin with the plugin API that takes submitted data and spits it into a Google Spreadsheet. What I am trying to figure out is how to get an error message into the subject line of the email if the insert fails, that denotes that the form will have to be entered manually. Something like ERROR inserting Any Ideas?

Thanks as always

Offline

#642 2009-07-27 05:05:01

Rimfya
Member
Registered: 2007-11-22
Posts: 31

Re: zem_contact_reborn 4.0.3.20

A few questions with this plugin

1. Can I style (using HTML and inline CSS) the email that is sent to the recipient?
2. Can I have a confirmation email sent to the user of the form?

Thanks!

Offline

#643 2009-07-27 09:03:06

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

  1. no, just plain text emails (HTML email is evil!)
  2. yes, see the plugin documentation (‘copysender’ attribute on the main zem_contact tag)

Offline

#644 2009-07-27 13:07:40

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Re: zem_contact_reborn 4.0.3.20

Rudd – Any thoughts on how to hook the outgoing email and add an error note if my google spreadsheet script returns an error? I am using the zemcontact.submit callback for the plugin.

thanks

Offline

#645 2009-07-27 13:28:08

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

Dayne, try adding something like this at the end of your spreadsheet script. It’ll get added at the bottom of the email, below the other fields:

if ($google_spreadsheet_error)
{
  zem_contact_store('unique name', 'unique label', 'error message');
}

Offline

#646 2009-07-27 13:43:17

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Re: zem_contact_reborn 4.0.3.20

Thanks Ruud… any way you can think of to append it to the subject line?

Offline

#647 2009-07-27 15:33:11

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

Hmm… in your script, create a global variable ($googlerror) that contains the error message.
Then set up zem_contact to use a subject_form, containing something like this, which will append the error message to your normal ‘this is my subject’ subject line:

this is my subject <txp:php>global $googlerror; echo $googlerror;</txp:php>

Offline

#648 2009-07-27 19:02:56

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Re: zem_contact_reborn 4.0.3.20

ruud or anyone – can’t seem to get it in the global scope here is the plugin overview:

register_callback(‘my_function’,‘zemcontact.submit’);

function my_function() {

//connect to google with un and pw

//provide wrong pw to check error message insert

//if connect to google do insert
//works fine when given correct pw

//fail to connect
$googlerror = “did not connect”;

return $googlerror;

}

Then the form:

<txp:zem_contact to="emailaddress" thanks="Your Form has been submitted thank you for your interest." label="my label" subject_form="subject-google" > rest of form works great with above code whether connection fails or connects

subject form:

<txp:php>global $googlerror; echo $googlerror . " - ";</txp:php>My form went through and mailed

But just get the “-” + subject message in the subject line failed or not, I would add a check here of course to make sure googlerror was defined but I get nothing either way……..I am just not getting it into the global scope, I think any thoughts?

Last edited by cuda (2009-07-27 19:12:51)

Offline

Board footer

Powered by FluxBB