Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2007-06-16 13:47:13

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: zem_contact_reborn 4.0.3.19 (old version)

Thanks, Ruud. Kloppt! :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#230 2007-06-17 03:43:43

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

I am using this with Postmaster and wanted to include a hidden field that shows me what page they submitted the form from. I tried this but it didn’t work: <txp:zem_contact_secret name="zemSubscriberCustom10" value="<txp:title />" />

Ideas?



WebKat

Offline

#231 2007-06-17 11:08:01

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

Re: zem_contact_reborn 4.0.3.19 (old version)

OpalCat, you can do it this way:

<txp:zem_contact_secret name="zemSubscriberCustom10">
  <txp:title />
</txp:zem_contact_secret>

Last edited by ruud (2007-06-17 11:09:49)

Offline

#232 2007-06-17 17:09:08

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

Hmm… I tried that but when I view source on my article that section isn’t there. The tag just parses out to blank space. I tried adding a comment tag right before it <!--test--> to make sure that I wasn’t just somehow getting an old version, but the next article I loaded showed the comment tag but then a blank area where the stuff ruud gave me was entered. It’s the weirdest thing. :(



WebKat

Offline

#233 2007-06-17 18:47:12

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

Re: zem_contact_reborn 4.0.3.19 (old version)

That’s what it is supposed to do. Otherwise it wouldn’t be ‘secret’ :)
You will see it appear in the email that is sent.

Offline

#234 2007-06-17 20:35:13

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

Ok. That’s not what I need it to do. I don’t read the emails that are sent, and I really don’t keep them around for future reference… it’s just people signing up for my newsletter and updates. I want the form to automatically fill in the “Custom 10” field with the name of the article that they signed up from, so that when I’m in the Postmaster interface and I look at a subscriber’s info, I can look at that field and see where they came from. Similar to the way I can have them tell me their location for Custom 1. In HTML you can set a value to a hidden form element that passes that value on…



WebKat

Offline

#235 2007-06-17 21:15:16

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Either Postmaster hooks into the zem_contact_reborn variables to get the form information (in that case zem_contact_secret should work fine) or it accesses the form input directly in the $_POST array (in that case you can use a normal <input type=“hidden”… /> tag). I assume Postmaster is tight enough linked to zem_contact _reborn to be able to use zem_contact_secret, but you may want to ask that question in the Postmaster topic.

Offline

#236 2007-06-18 07:26:31

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: zem_contact_reborn 4.0.3.19 (old version)

Good news! I decided to test this before bugging the Postmaster folks, and it worked: <input type="hidden" name="zemSubscriberCustom10" value="<txp:title />">



WebKat

Offline

#237 2007-06-22 14:52:24

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud wrote:

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,(trim(strip_tags($thisarticle['excerpt'] . $thisarticle['body']))));

I’m sorry Ruud, I’ve been out for a while and only read your reply today. I looked into the tiny_mce.js file, but the “entity_encoding” is reported more times, where should I change it to “raw”? And second question: I changed the code in the plugin as you said, but i get an error, are you sure the code is correct?

I’m sorry, I probably could fix these things myself if I were just a bit more expert…
Thank you


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#238 2007-06-22 17:33:59

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

Re: zem_contact_reborn 4.0.3.19 (old version)

vittorio, you’re right, the correct code is (still not tested, but this time the ()’s match):

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

I’ve never used tiny_mce.js myself, but searching this forum for “entity_encoding”, I find a reference to this website which says:

tinyMCE.init({
	...
	entity_encoding : "raw"
});

Last edited by ruud (2007-06-22 17:34:24)

Offline

#239 2007-06-23 21:32:41

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

Re: zem_contact_reborn 4.0.3.19 (old version)

I would like to have the label placed before the inputfield (on the same line). I’ve been trying to do this with CSS styles, but I can’t get it working. Is there an example available, which I can use?

Offline

#240 2007-06-23 21:50:31

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Sharon, if it’s for the contact form in the website in your profile add break="" as an attribute to your input tags, otherwise it uses the default break attribute which is set to <br />

Offline

Board footer

Powered by FluxBB