Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#451 2008-10-13 14:49:25

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: zem_contact_reborn 4.0.3.20

I’ve got another request for the plugin: Could you make it possible for a zem antispam plugin to use getSecret() like in the Textpattern comments antispam API? Currently zem_contact_reborn creates a nonce and stores it in the DB but does not use a secret.

I’m passing some variables in a form and I need the secret value to compute a MD5 hash of values + secret in order to detect if the form values were altered by a malicious spammer. I find this more convenient than creating a special database to store temporary session variables (it’s slower, you need to create an additional table and clean up the old data, and so on).


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#452 2008-10-13 15:36:29

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: zem_contact_reborn 4.0.3.20

lee wrote:

I’d like to have a “Report this comment” link next to each comment which when clicked redirected to a page that has zem contact on with a hidden field auto filled with the url of the comment. Anyone done this or know if it’s poss.

then the_ghost wrote:

You can make some link with GET paramert, where the URL of comment would be stored, and th new page just output this GET variable into hidden field, AFAIK zcr know hidden fields and can work with server variable such as GET

I did something like what the_ghost is suggesting with a combination of the chs_if_urlvar and asy_wondertag plugins. Instead of passing the article URL as a GET variable, I passed the article ID #. I then used the <txp:article_custom /> tag as an attribute value for a ZCR tag in order to put the relevant article’s title into the subject field of the contact form.

You can see the result by clicking the “contact us for details” link on the Kentucky Derby item listed here (please don’t send the message unless you really want to inquire about the auction item).

In your case, you could send both the article ID and comment ID as GET variables. This would avoid sending an URL as a variable, which has security implications.

Offline

#453 2008-10-14 18:57:15

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: zem_contact_reborn 4.0.3.20

Thanks very much guys.

Offline

#454 2008-10-24 14:18:09

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: zem_contact_reborn 4.0.3.20

I’m using 4.0.3.20 of contact_reborn and experiencing a strange problem!

When the form is embedded in an article I do not get the thank you message displayed when the form is submitted – just a blank form. I’ve checked the page source and there’s nothing in there at all.

Apart from that – the email is being received ok.

If I put the form code into a page – then it works as expected.

Any ideas what could be surpressing the display of the message?

Also – any future support for file uploads sent as attachements to messages (to support a contact for allowing people to submit their CV’s!)

Doug.

Offline

#455 2008-10-26 18:25:45

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

Re: zem_contact_reborn 4.0.3.20

I just found out that for a couple of sites, that have a gmail address set as the ‘to’ address, the mails are not received anymore. There is no error when a message is submitted, the thank you message displays as usual. The email just never arrives. (No, they are not in gmail’s spam folder either, nor are there any filters that could affect these mails.) I don’t know exactly when it changed, the last mail that got delivered was about a week ago. I didn’t change anything on those sites. Both sites are with the same host, on the same server.
Any clues where to look? I can’t find anything in the error logs, and in the access logs my attempts to submit the mail form look like "POST /kontakt/ HTTP/1.1" 200 5141 so that doesn’t look wrong either.

Offline

#456 2008-10-26 18:50:51

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 sending to other email addresses does work, you’ll want to check the mail server logs for clues.

Offline

#457 2008-10-26 18:56:03

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

Re: zem_contact_reborn 4.0.3.20

Thanks. No idea where to find those… I’ll have to contact the host I guess.

Offline

#458 2008-10-29 10:10:28

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

Re: zem_contact_reborn 4.0.3.20

I using zem_contact_send_article.
After clicking the send article link the contact form appears in every article of the page.

How can I prevent it?


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#459 2008-10-29 10:14:14

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: zem_contact_reborn 4.0.3.20

I asked a similar question to this a while ago but I will ask it a different way and maybe one of you php wizes’ may be able to help me.

I want to link two buttons, a send email form:-

<txp:zem_contact to="XXXX@XXXXXX">
<txp:zem_contact_text label="Name... " break="" />
<br />
<txp:zem_contact_email break="....." />
<txp:zem_contact_textarea label="Question 1" break="" />
<txp:zem_contact_textarea label="Question 2" break="" />
<txp:zem_contact_textarea label="Question 3" break="" /> 
<txp:zem_contact_textarea label="Birth Date"  /> 
 <txp:zem_contact_submit label="Send" />
which question is most important to you?
<txp:zem_contact_select list="1,2,3" label=""/>
</txp:zem_contact>
Which gives a send button

and Paypal Buy Now button

<form name=”_xclick” action=“https://www.paypal.com/cgi-bin/webscr” method=“post”>
<input type=“hidden” name=“cmd” value=”_xclick”>
<input type=“hidden” name=“business” value=“me@mybusiness.com”>
<input type=“hidden” name=“currency_code” value=“USD”>
<input type=“hidden” name=“item_name” value=“Email Reading”>
<input type=“hidden” name=“amount” value=”$30.00”>
<input type=“image” src=“http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif” border=“0” name=“submit” alt=“Make payments with PayPal – it’s fast, free and secure!”>
</form>

Which gives a

I want to be able to click a “buy now button” which simutaneously activates both the “send email button”, and “buy now button”.

Any help would be very much appreciated.

Offline

#460 2008-10-29 10:30:20

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: zem_contact_reborn 4.0.3.20

Will there be an option to upload and send a file for this plug-in in the future.

Offline

#461 2008-10-29 10:40:27

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: zem_contact_reborn 4.0.3.20

Olli wrote “Will there be an option to upload and send a file for this plug-in in the future”.

Hi Oliver,
Um are you replying to my post? Yes except I would’d have a clue how to make a plugin, maybe one makes the php script and wraps it in the “plugin ‘compiler” I’m thinking aloud!

Offline

#462 2008-10-29 12:59:35

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

Re: zem_contact_reborn 4.0.3.20

One question concerning support of multiple languages for “thanks” and errors. I went through the forum and found only one approach in the French section, but it shoots “Unknown tag attribute” at me when I try it.

Now, there is no problem to use a different thanks message for different forms, as there is a tag attribute for this. What I need is a similar solution for all status/error messages.

Does anyone know a workaround for this?

Offline

#463 2008-10-29 14:42:55

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

Re: zem_contact_reborn 4.0.3.20

datorhaexa wrote:

I went through the forum and found only one approach in the French section, but it shoots “Unknown tag attribute” at me when I try it.

Maybe you should contact François about that, I’ve been using his solution for a while in the past and it worked at the time.

If your contact forms are in different sections, you might try my workaround posted here. If not, it might even work using a custom field to set the language, and replace if_section with if_custom_field (the form would need to be in an individual article context in that case).

Last edited by els (2008-10-29 14:45:45)

Offline

#464 2008-10-29 15:19:10

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

Re: zem_contact_reborn 4.0.3.20

Lovely! That will do all right, Els, thanks a lot!

Offline

#465 2008-11-04 09:02:56

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: zem_contact_reborn 4.0.3.20

I want the name of the article (<txp:title />) to appear in a <txp:zem_contact_text /> field as the default=“value”. Is that possible?

Thanks for any help.

Offline

Board footer

Powered by FluxBB