Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#976 2011-03-22 19:52:41
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
Lera, that’s caused by setting
label=""on multiple ZRC tags while at the same time not setting the name attribute for these tags, so either use a non-empty label or explicitly specify a the name attribute for each of the tags.
Yes, I have already adapted to this, but … Thanks.
I thought that you need to report it, maybe you’ll want it fixed. In some cases, this situation may not be very comfortable.
There is another question. For example, the user knows how to send mail. Can somehow make this field hidden and substitute back an email user?
Offline
#977 2011-03-22 21:08:40
Re: zem_contact_reborn 4.0.3.20
I don’t understand the question.
Offline
#978 2011-03-22 21:43:49
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
I don’t understand the question.
Oh, sorry for my english.
I begin to curse the days misspent in school.
The situation is as follows:
I use a plugin ign_password_protect.
I have a secure page with <txp:zem_contact />.
System, for example, knows RealName user.
I think she needs to know and email.
I want to on this page did not have an email address field, but the address was in my letter.
something like this:
<form method="post" action="/index.php?s=contact#zcr44043a89ee3708e2e64974d25a67f7c2">
<input type="hidden" name="zem_contact_nonce" value="48abacd85f570adf4595268833b36a04" />
<input type="hidden" name="zem_contact_form_id" value="44043a89ee3708e2e64974d25a67f7c2" />
<input type="hidden" name="Email" value="user@ mail.ru" />
<textarea id="invalid" class="zemTextarea zemRequired" name="invalid" cols="58" rows="8"></textarea>
<input type="submit" class="zemSubmit" name="zem_contact_submit" value="Отправить" />
</form>
Offline
#979 2011-03-22 22:17:40
Re: zem_contact_reborn 4.0.3.20
If I understand correctly, you have a ZCR form behind password protection, so the person using the form has to log in first and therefore you know who that person is and what his/her email address is. Assuming you have a tag to print the email address on the website called <txp:abc_logged_in_email /> (perhaps fictional, but not hard to write, I assume), you could do this:
<txp:zem_contact_email default='<txp:abc_logged_in_email />' />
That would show an email field with pre-filled email address of the user that’s logged in. You could of course hide that field entirely by applying an appropriate CSS rule.
Offline
#980 2011-03-22 22:25:55
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
If I understand correctly, you have a ZCR form behind password protection, so the person using the form has to log in first and therefore you know who that person is and what his/her email address is. Assuming you have a tag to print the email address on the website called <txp:abc_logged_in_email /> (perhaps fictional, but not hard to write, I assume), you could do this:
<txp:zem_contact_email default=’<txp:abc_logged_in_email />’ />
That would show an email field with pre-filled email address of the user that’s logged in. You could of course hide that field entirely by applying an appropriate CSS rule.
Thanks, I’ll try to do it.
Offline
#981 2011-03-23 00:50:16
Re: zem_contact_reborn 4.0.3.20
I have done something similar. Although I’m using ign_password_protect to provide site login functionality, I also use mem_self_register to provide additional access to user information – ign_password_protect and mem_self_register work well together.
Here is what I have in my ZCR form:
<txp:zem_contact to_form="contact_to_form" from='<txp:mem_profile var="email" />' subject='Message from <txp:mem_profile var="RealName" />
What this does is send an email with the from field being whatever is in the logged-in user’s profile. Of course, it loses something if there is no email address for that user.
Offline
#982 2011-03-23 01:24:21
Re: zem_contact_reborn 4.0.3.20
aslsw66 wrote:
I have done something similar. Although I’m using
ign_password_protectto provide site login functionality, I also usemem_self_registerto provide additional access to user information –ign_password_protectandmem_self_registerwork well together.
Here is what I have in my ZCR form:
<txp:zem_contact to_form="contact_to_form" from='<txp:mem_profile var="email" />' subject='Message from <txp:mem_profile var="RealName" />
What this does is send an email with the from field being whatever is in the logged-in user’s profile. Of course, it loses something if there is no email address for that user.
Thanks, I’ll try that too.
Offline
#983 2011-04-06 23:33:25
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: zem_contact_reborn 4.0.3.20
I use the following to build a select menu with predefined options:
<txp:zem_contact_select list="Please select…,Item 1, Item 2, Item 3" selected="Please select…" label="Enqiring about…" required="0" />
That works as expected, but I’m wondering, whether there is a way to append the selected item to the email’s subject line, so it would read “Website enquiry – Item 2”. At the moment I get the default subject line as defined in the attribute <txp:zem_contact subject="Website Enquiry" (etc.)>
Last edited by masa (2011-04-06 23:34:56)
Offline
#984 2011-04-07 00:08:36
Re: zem_contact_reborn 4.0.3.20
I think you’ll find there is an attribute called subject_form which will allow you to create a customised subject line for the email. The help documentation even includes an example of a subject line derived from a select menu.
I’m just about to start experimenting with this myself…
Offline
#985 2011-04-07 21:30:48
- frickinmuck
- Member

- Registered: 2008-05-01
- Posts: 118
Re: zem_contact_reborn 4.0.3.20
Running into a problem with the multi form element of this plugin. I test it and it works fine, but I notice that email addresses that have a dot in them (i.e. firstname.lastname@emailaddress.com) do not work. Do I need to escape that first dot, or what can I do to get this working? Any ideas?
The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.
Offline
#986 2011-04-08 08:45:35
Re: zem_contact_reborn 4.0.3.20
There should be no relation between using multiple forms and the email address used. ZCR uses TXP’s built-in is_valid_email function to check if the email address is valid. Do you get an error message?
Offline
#987 2011-04-08 18:07:24
- frickinmuck
- Member

- Registered: 2008-05-01
- Posts: 118
Re: zem_contact_reborn 4.0.3.20
I don’t get any error message, but no one with a . in their email address receives their message. And I should maybe make it clearer – I’m not talking about using multiple forms, I’m talking about the version of the contact form that uses multiple addresses with a menu to select the recipient.
The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.
Offline
#988 2011-04-08 19:13:36
Re: zem_contact_reborn 4.0.3.20
What happens if you use a standard ZCR contact form where you set a recipient address that contains a dot in the username part of the address?
Offline
#989 2011-04-08 19:30:22
- frickinmuck
- Member

- Registered: 2008-05-01
- Posts: 118
Re: zem_contact_reborn 4.0.3.20
Never mind – I just created a test email address with a dot in it, added it to the select form and it worked just fine. The issue is that all the people who have dots in their email addresses are not getting the inquiries from that form, while those without dots are. But obviously it’s not the dot, since I can get it working with an email address that has a dot in it.
This is clearly something on the client side, or on the email server or something, not a problem with the form itself.
The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.
Offline
#990 2011-04-09 11:36:47
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: zem_contact_reborn 4.0.3.20
aslsw66 wrote:
I think you’ll find there is an attribute called
subject_formwhich will allow you to create a customised subject line for the email. The help documentation even includes an example of a subject line derived from a select menu.
Perfect, thanks!
Offline