Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2007-11-16 18:43:28

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

Is there any way to override zem_contact send_article so that it always sends the whole article and not an extract (if it exists?)

Edit the plugin code and replace this line:

$msg[] = trim(strip_tags(str_replace($s_ar,$r_ar,(trim(strip_tags($thisarticle['excerpt'])) ? $thisarticle['excerpt'] : $thisarticle['body']))));

with:

$msg[] = trim(strip_tags(str_replace($s_ar,$r_ar, $thisarticle['body'])));

Offline

#74 2007-11-16 20:30:57

mwillse
Member
From: brooklyn, ny
Registered: 2006-06-26
Posts: 83
Website

Re: zem_contact_reborn 4.0.3.20

Thanks Ruud for the quick reply. I’ve tried to convince them to upgrade from 4.0.3. I know it’s important. I’ll try again.

The form sends with your adjustment. It also gives the proper error notice if I don’t submit an email address. But, it doesn’t give the Message Sent confirmation. It’s not essential, but if it’s an easy fix.

thanks again.

Offline

#75 2007-11-16 22:15:50

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

I don’t see any function calls between the sending of mail and the thanks message that would give problems with TXP 4.0.3. Post your ZCR form code here. Are you using a thanks_form or a redirect or is the thanks attribute set to an empty string? Does the resulting (empty) thanks page contain ‘zemThanks’ in the HTML somehere?

Offline

#76 2007-11-17 10:09:08

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

Re: zem_contact_reborn 4.0.3.20

Hi guys,

Sorry to break your topics… but I have a [big] problem with the use of “to_form” attribute into ZCR_Reborn. I’d read all the topic about all version of ZCR. I think I’m a [very] bad TXP user :(

So here is the problem :

I have a page named “contact” (it’s a good start, no? :) without any article tag (strange idea, no?) !!!
I create an article associated to this page and use a custom_field to store the address e-mail.
I use a delfault ZCR form with to_form=“my_form”. This to_form(misc type) call my address custom_field. Obviously, this don’t work at all.
I had try a lot of solutions : txp:php call into zem_contact form ; the use of an article to store ZCR form ; mysql request to find my custom_field and so on…

Could you help me just a little? :)

Tks lot!

Signed : a TXP idiot user.

Last edited by Pat64 (2007-11-17 10:09:34)


Patrick.

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

Offline

#77 2007-11-17 12:36:25

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

Patrick,

<txp:zem_contact to_form="mytoform" ...

mytoform:

<txp:custom_field name="FieldName" />

Offline

#78 2007-11-17 17:33:35

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

Re: zem_contact_reborn 4.0.3.20

Yes ruud, I try this…but that’s don’t work…and I can’t understand why. Is this because I haven’t any txp:article tag into my page?

Last edited by Pat64 (2007-11-17 17:34:00)


Patrick.

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

Offline

#79 2007-11-17 18:27:53

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

Yes, that could be the problem if you’re on a section/category page, instead of on an individual article page.

Offline

#80 2007-11-22 20:38:24

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

Re: zem_contact_reborn 4.0.3.20

Following on from my post initiated on page 7 – the emails are still not getting through.

Is there a way for me to debug the SMTP connection i.e. some sort of trace as to what happens with the SMTP connection from zem_contact_reborn? The server error logs I have access to are clean (its the first place I looked). A show_error=“1” attribute leaves me none-the-wiser…

Thanks.

Last edited by giz (2007-11-22 20:40:10)

Offline

#81 2007-11-22 21:09:04

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

Gary, you need the help of your webhost to debug this. Have them look at the mail server log files to see what happens to the emails that ZCR/PHP sends. The actual SMTP connection is outside the view of ZCR; that’s between PHP and the mailserver… or even one step further.

Offline

#82 2007-11-22 22:41:46

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

Gary, you need the help of your webhost to debug this. Have them look at the mail server log files to see what happens to the emails that ZCR/PHP sends. The actual SMTP connection is outside the view of ZCR; that’s between PHP and the mailserver… or even one step further.

Thanks Ruud – will do. I’ll be firm ;)

Offline

#83 2007-11-27 20:09:16

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: zem_contact_reborn 4.0.3.20

It’s not clear to me whether this plugin supports to="addressOnetld.com,addressTwo.tld.com” @

Can anyone confirm whether I can do this?

Last edited by mrdale (2007-11-27 20:10:23)

Offline

#84 2007-11-27 20:57: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

That is supported. The “to” address is fed directly to the PHP mail function.

Offline

Board footer

Powered by FluxBB