Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1171 2012-06-07 23:06:15
- fbox
- Member
- From: Melbourne
- Registered: 2006-02-18
- Posts: 42
Re: zem_contact_reborn 4.0.3.20
Hi James, do you happen to be using Gmail or Google Apps for your email? You say the email addresses exist and belong to the same domain/hosting account.
I’ve had similar sounding issues with messages being filtered out prior to even reaching a spam folder at Google Apps, due to SPF on our server end and other email security settings at Google’s end. I can’t explain how the PHP upgrade might have contributed to this, but the symptoms sound very similar.
To get around it I edited zem_contact_reborn to manually set the ‘envelope sender’ in the message headers using a -f flag:
Near line 229:
if (mail($to, $subject, $msg, $headers,"-f ".$from))
and near line 235:
mail(zem_contact_strip($zem_contact_from), $subject, $msg, $headers,"-f ".$from);
Hopefully that would help mail delivery, even if you’re using your local mail server.
– L.Offline
#1172 2012-06-12 16:19:30
- pafruu
- Member

- From: New Brunswick, Canada
- Registered: 2010-01-14
- Posts: 65
Re: zem_contact_reborn 4.0.3.20
Hello all,
after redaing some 20 pages of porst, I couldnt find the answer I was looking for so here is my question.
I am using zem_contact_reborn so that volunteers can sign up to volunteer at a specific camp(s). I am using the zem_contact_checkbox and I have put it not required as I have 4 choices of camps to choose from.
As I understand it, putting all 4 required would prevent the form to submit as all checkbox would have to be selected. Although I really need my volunteers to indicate which camps they want to volunteer for.
Here is the code for the form:
(...)
<tr>
<td colspan="2"><h4>I want to be at ...</h4></td></tr>
<tr>
<td colspan="2">
<txp:zem_contact_checkbox group="Campselect" label="Kids Kamp" name="Kids Kamp" required="0"/><span class="early">July 3 - 7 </span><br>
<txp:zem_contact_checkbox group="Campselect" label="Family Camp" name="Family Camp" required="0" /><span class="early">July 14 - 29 </span><br>
<txp:zem_contact_checkbox group="Campselect" label="Young Adult Camp" name="Young Adult Camp" required="0"/><span class="early">Aug 3 - 5</span><br>
<txp:zem_contact_checkbox group="Campselect" label="Youth Camp" name="Youth Camp" required="0"/><span class="early">Aug 6 - 11</span></td>
</tr>
(...)
Is there a way that I can tell Zem_contact to make sure that 1 or more of those checkboxes are selected?
I’m sorry if this question seems easy, its just that I am not that good with php, Am I right to assume that it is a php issue?
Thaks for your help in advance
Patrick
{Edited to add bc.. for better code display. – Uli}
Last edited by uli (2012-06-12 16:49:13)
I try, and I try, and I try…. and sometimes I achieve
Offline
#1173 2012-06-12 21:06:26
Re: zem_contact_reborn 4.0.3.20
@pafruu, you can probably do this by combining ZCR with adi_contact
Offline
#1174 2012-06-13 10:09:33
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: zem_contact_reborn 4.0.3.20
@fbox
OMG! That was legendary. Ive spent a week trying to figure this out. It now works, thanks to you. I owe you a beer :)
James
Last edited by txpdevcoder (2012-06-13 10:30:03)
Offline
#1175 2012-06-13 12:06:18
- pafruu
- Member

- From: New Brunswick, Canada
- Registered: 2010-01-14
- Posts: 65
Re: zem_contact_reborn 4.0.3.20
thank you ruud, I will try that :)
I try, and I try, and I try…. and sometimes I achieve
Offline
#1176 2012-06-14 06:47:09
Re: zem_contact_reborn 4.0.3.20
I’m getting a ‘Function split() is deprecated’ error using <txp:zem_contact_select /> … I searched the forum and found that I have to change ‘split’ into ‘explode’ in the plug-in code. But than I’m getting the error ’406 Not Acceptable’. It means I’m not permitted to change the file or something … !? Some help is appreciated on how I must tackle this one.
Last edited by RedFox (2012-06-14 09:05:24)
Offline
#1177 2012-06-14 20:41:52
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
I think I had that once. If I remember correctly, this helped in my case.
Offline
#1178 2012-06-15 07:51:30
Re: zem_contact_reborn 4.0.3.20
@Els: Mm … I can’t get a .htaccess file (with ‘SecFilterScanPOST Off’) into /textpattern … !? … what has to be the precise content of that file, Els?
Last edited by RedFox (2012-06-15 07:53:24)
Offline
#1179 2012-06-15 08:28:47
Re: zem_contact_reborn 4.0.3.20
And a new question …
Is it possible to feed <txp:zem_contact_select /> from outside?
Let say the owner of a site publishes an article about a new tango lesson and in the included form he/she wants that specific activity into <txp:zem_contact_select /> … I presume it has to be done via a custom_field … !? … but I’m a noob with this kind of things so some help is really appreciated.
Last edited by RedFox (2012-06-15 08:36:28)
Offline
#1180 2012-06-15 08:38:03
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: zem_contact_reborn 4.0.3.20
something like this should work for you. I do this in an ordinary select but should work inside a zem_contact_select
<select id=“list”>
<txp:article_custom wraptag=”“ break=”“ section=“events” limit=“20”>
<option value=”<txp:title />”><txp:title /></option>
</txp:article_custom>
</select>
if you dont have an events section, switch that out and pick up on article catagories instead. that way they will come from anywhere in the site.
My bad. just realised zem_contact_select needs a list. something like this should work but not tested.. its off the top of my head.
<txp:zem_contact_select label=“Aktiviteit” list=’<txp:article_custom wraptag=”“ break=”“ section=“events” limit=“20”><txp:title />, </txp:article_custom>’ />’ break=”<em>*</em>” />
alternatively you can try <txp:variable /> instead of wasting a custom feild on it.
be advised that internet explorer will cut the select options off if they are too long and you have set a width on the select.
Last edited by txpdevcoder (2012-06-15 08:56:17)
Offline
#1181 2012-06-15 09:56:33
Re: zem_contact_reborn 4.0.3.20
@txpdevcoder: Thanks.
The code that works almost perfect: <txp:zem_contact_select label="Aktiviteit" list="<txp:article_custom wraptag="" break="," category="formulier" limit="20" ><txp:title /></txp:article_custom>" break="<em>*</em></li><li>" />
But now there are UTF characters in the titles. See the form … how do I solve this?
Offline
#1182 2012-06-15 10:03:22
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: zem_contact_reborn 4.0.3.20
I think its becase you have but the comma into the break tag, and TXP is converting it to html. You need to escape the caracter i think, or dont put it in the break. i put mine after the title tag, and left the break empty, did this not work?
Last edited by txpdevcoder (2012-06-15 10:07:27)
Offline
#1183 2012-06-15 13:10:45
Re: zem_contact_reborn 4.0.3.20
No, it didn’t work … :(
The question is now how to escape the HTML … !?
Offline
#1184 2012-06-15 13:14:12
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: zem_contact_reborn 4.0.3.20
usually it is a back slash, but maybe not for textpattern…. try:
<txp:zem_contact_select label=“Aktiviteit” list=”<txp:article_custom wraptag=”“ break=”\,” category=“formulier” limit=“20” ><txp:title /></txp:article_custom>” break=”<em>*</em></li><li>” />
Offline
#1185 2012-06-15 13:20:34
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: zem_contact_reborn 4.0.3.20
Try <txp:title no_widow="0" />
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline