Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2007-03-26 21:33:23
Re: zem_contact_reborn 4.0.3.19 (old version)
I have pretty much non-existent PHP skills but couldn’t it be done by something like: if the first item in the list array is selected then show an isRequired error else submit the form? Maybe based on a skipFirstItem attribute to zem_contact_select or something. If something could be coded like that I don’t mind editing the plugin in this specific case for my purposes.
Also copysender doesn’t seem to work for me. Shouldn’t it just be:
<txp:zem_contact to="email[at]site.com" form="contact-form" copysender="1" />
Then in contact form have at least:
<txp:zem_contact_email label="Email Address" />
Refresh Dallas and other Refreshing Cities.
Offline
#110 2007-03-28 15:31:35
- two7s_clash
- Member
- From: VA
- Registered: 2007-02-13
- Posts: 15
Re: zem_contact_reborn 4.0.3.19 (old version)
PLugin is very handy, but when I’m using the <txp:zem_contact_select /> tag, it inserts, most mysteriously the world “Option” in my markup.
<code>
<div id=“formtitle”>Contact form</div>
<div class=“row”><label class=“col1”>Title: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“title” /></span>
</div>
<div class=“row”><label class=“col1”>Name: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“name” required=“yes” default=“REQUIRED” /></span>
</div>
<div class=“row”><label class=“col1”>Company: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“company” required=“yes” default=“REQUIRED” /></span>
</div>
<div class=“row”><label class=“col1”>E-mail: </label>
<span class=“col2”><txp:zem_contact_email label=”“ break=”“ name=“email” required=“yes” default=“REQUIRED”/ /></span>
</div>
<div class=“row”><label class=“col1”>Addresss: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“address”/></span>
</div>
<div class=“row”><label class=“col1”>City: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“city” /></span>
</div>
<div class=“row”><label class=“col1”>State: <span class=“col2”>
<txp:zem_contact_select label=”“ list=”,AK,AL,AR,AS,AZ,CA,CO,CT,DC,DE,FL,FM,GA,GU,HI,IA,ID,IL,IN,KS,KY,LA,MA,ME,MD,MH,MI,MN,MO,MP,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,PR,PW,RI,SC,SD,TN,TX,UT,VI,VT,VA,WA,WI,WV,WY” />
</span>
</div>
<div class=“row”><label class=“col1”>Zipcode: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“zip” size=“10” max=“10” /></span
</code>
Results with:
<code>
<div id=“formtitle”>Contact form</div>
<div class=“row”><label class=“col1”>Title: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“title” /></span>
</div>
<div class=“row”><label class=“col1”>Name: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“name” required=“yes” default=“REQUIRED” /></span>
</div>
<div class=“row”><label class=“col1”>Company: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“company” required=“yes” default=“REQUIRED” /></span>
</div>
<div class=“row”><label class=“col1”>E-mail: </label>
<span class=“col2”><txp:zem_contact_email label=”“ break=”“ name=“email” required=“yes” default=“REQUIRED”/ /></span>
</div>
<div class=“row”><label class=“col1”>Addresss: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“address”/></span>
</div>
<div class=“row”><label class=“col1”>City: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“city” /></span>
</div>
<div class=“row”><label class=“col1”>State: <span class=“col2”>
<txp:zem_contact_select list=”,AK,AL,AR,AS,AZ,CA,CO,CT,DC,DE,FL,FM,GA,GU,HI,IA,ID,IL,IN,KS,KY,LA,MA,ME,MD,MH,MI,MN,MO,MP,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,PR,PW,RI,SC,SD,TN,TX,UT,VI,VT,VA,WA,WI,WV,WY” />
</span>
</div>
<div class=“row”><label class=“col1”>Zipcode: </label>
<span class=“col2”><txp:zem_contact_text label=”“ break=”“ name=“zip” size=“10” max=“10” /></span>
</code>
Existing is plagiarism.
Offline
#111 2007-03-28 15:52:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.19 (old version)
Er… I may be missing something, but aren’t those two blocks of code exactly the same?
And you can use bc.
instead of <code></code> to display code for better readability :)
Offline
#112 2007-03-28 16:44:10
Re: zem_contact_reborn 4.0.3.19 (old version)
James, Els is right, you’ve posted the TXP code twice. No “option” in sight.
tinyfly, send me an email (left side of this post)
Last edited by ruud (2007-03-28 16:44:51)
Offline
#113 2007-03-30 15:53:35
Re: zem_contact_reborn 4.0.3.19 (old version)
Hi!
I use this plugin, and I think is very good.
I’m writing a plugin and would want to use ZCR for sending email with precompiled message.
I’have try to sobsitute the classic call function
<txp:zem_contact />
width a php function
zem_contact($zem_atts,$zem_thing);
into the plugin.
It work good, but when i declare the $zem_thing value I must use a
<txp:zem_contact_### />
tags otherwise if i use a normal html tag
<label for="send_order" class="zemTextarea zemRequired send_order">Message</label><br /><textarea id="send_order" class="zemTextarea zemRequired" name="send_order" cols="58" rows="8"></textarea>
and submit the form it don’t find the variable and don’t send the value (in this case of the textarea).
There is a solution of that?
Very thanks.
Offline
#114 2007-03-30 19:53:34
Re: zem_contact_reborn 4.0.3.19 (old version)
Ok. sorry I have found a solution. It’ very easy but….. sorry.
<txp:zem_contact_textarea default="$variable" />
only another question.
If I want to disabled textarea?
Offline
#115 2007-03-30 21:29:11
Re: zem_contact_reborn 4.0.3.19 (old version)
marcoK, to get a textarea that is disabled, you can create a regular HTML textarea (not using zem_contact_reborn tags). This will give you a textarea that is disabled (only shown to the visitor, not included in the email). At the same time you can add a zem_contact_secret tag with the default information that you want to have included in the email when the form is submitted. (this won’t be shown to the visitor).
Offline
#116 2007-04-03 16:44:11
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: zem_contact_reborn 4.0.3.19 (old version)
Is there a way to have the To in the Contact tag send to more than one email address? I see there is a to_form, but how is it used?
Thanks very much, Lee
Last edited by lee (2007-04-03 16:45:07)
Offline
#117 2007-04-03 17:07:13
Re: zem_contact_reborn 4.0.3.19 (old version)
You can put the email addresses comma-separated in the “to” attribute. You can also put them in the to_form (a TXP form, type “misc”), also comma-separated.
Last edited by ruud (2007-04-03 17:07:27)
Offline
#118 2007-04-03 17:27:35
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: zem_contact_reborn 4.0.3.19 (old version)
Thanks one again for you help Ruud, it’s much appreciated.
Offline
#119 2007-04-11 23:21:28
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: zem_contact_reborn 4.0.3.19 (old version)
a host has requested that a ‘Host Name’ be set using FromHost() function … as their mail server filter refuses anything without a host name (so I understand)
refer: http://au2.php.net/manual/en/ref.mail.php#68087
is this something within the scope of this plugin? or should it be set within PHP??
any leads appreciated, in the dark here!
Offline
#120 2007-04-12 06:50:17
Re: zem_contact_reborn 4.0.3.19 (old version)
Ruud, is the latest version of this plugin MLP compatible? Sorry, I can’t remember, and thought I would ask. If its not MLP compatible, do you have any idea when it might be?
Second, I have a question on usage of the form. I have a client who would like to have about 10 events with zem_event. If a user registers for an event (via ZCR), then would it be possible to have a drop down select box with the current list of events, so the user could select which event he/she is interested in? The list would have to be dynamic.
Not sure how to do this would ZCR…
Main problem right now is that MLP seems to change queries on the fly (according to Zem) which affects zem_event mini calendar. Hopefully MLP and ZCR work together!
Offline