Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#631 2009-06-07 13:43:13
- yeahdisk
- Member
- Registered: 2006-01-23
- Posts: 17
Re: zem_contact_reborn 4.0.3.20
Hi – I’m trying to split my existing contact form into 3 parts – and I would like to pass a text-field variable from the first part into the other parts…
Essentially, I want the first part to collect the USER ID and 2 other pieces of info.
Something like
<txp:zem_contact from="defaultfromemail" subject="User Details" to="mycompanyemail" >
<txp:zem_contact_text label="USER ID" />
<txp:zem_contact_text break="" label="Idea" />
<txp:zem_contact_text break="" label="Timeframe" />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>
Then, when the user clicks submit, they should be presented with the second form.
I would like the text entered into the USER ID field from the first page to be pre-populated into the form on the second page??
Something like
<txp:zem_contact from="defaultfromemail" subject="User Details" to="myothercompanyemail" >
<txp:zem_contact_text label="USER ID" /> // This should be prepopulated with the USER ID entered on the first page?
<txp:zem_contact_text break="" label="Company Name" />
<txp:zem_contact_text break="" label="Job Title" />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>
Then, a third and final page with a separate form again – again prepopulated with the original USER ID in a text field??
Is that possible to pass variables between zem_contact using (i’m guessing) some txp:php tags??? And what would be the best way to go between forms? Would it be tp include the next zem_contact form in the ‘thanks’ form of the previous one???
I hope that makes sense – any help would really be appreciated!
(I am doing this because my existing form is a little bit long and unwieldly – If I can split it up it would really help me and my users).
Last edited by yeahdisk (2009-06-07 14:00:09)
Offline
#632 2009-06-08 06:19:59
Re: zem_contact_reborn 4.0.3.20
Hello.
I use zem_contact_reborn on my client’s site. He recently got a new domain (.aero) and when I try to use his new email address (using that new domain) the form outputs the error “Sorry, unable to send email.”
Is there anyway to add a list of valid domains to the script itself? Or would you suggest a different solution?
thanks!
Sid
Offline
#633 2009-06-08 15:28:52
- yeahdisk
- Member
- Registered: 2006-01-23
- Posts: 17
Re: zem_contact_reborn 4.0.3.20
Re: my previous post
I think I am almost there by embedding a second zem_contact form in the “thanks form” of the first form.
This allows me to pass on the required information, however the second zem_contact (the one embedded in the thanks form) does not work? I get no error messages when I click submit, but the thanks message does not show (the screen just goes back to showing the first form), and the contact email is not sent.
Any suggestions as to why this would happen?
zem_contact form 1:
<txp:zem_contact from="default@mail.com" subject="Info" to="company@mail.com" thanks_form="test_thanks" >
<txp:zem_contact_text label="USERID" />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>
zem_contact form 2 (the one embedded within the form “test_thanks”:
<txp:zem_contact from="default@mail.com" subject="Info" to="company@mail.com" thanks="thankyou for your idea" >
<txp:php>
global $zem_contact_form;
echo zem_contact_secret(
array(
'label' => 'USERID',
'value' => $zem_contact_form['USERID']
)
);
</txp:php>
<txp:zem_contact_text label="Idea" />
<txp:zem_contact_submit label="Register" />
</div>
</txp:zem_contact>
Last edited by yeahdisk (2009-06-08 15:30:47)
Offline
#634 2009-06-18 14:51:29
Re: zem_contact_reborn 4.0.3.20
Hi all,
Is it possible to implement a registration with verficiation with zem_contact_reborn? Any other alternatives are welcome too!
Thanks,
Husain
Offline
#635 2009-06-19 00:58:38
Re: zem_contact_reborn 4.0.3.20
Hi guys, I need some help with configuring for SMTP authorization… because all of a sudden my email-forms/newsletter stop working and my host tells me I need to use SMTP authorization. :( :(
I managed to edit the txplib_misc.php thanks to this: http://forum.webfaction.com/viewtopic.php?id=1916 and get that working but when I try digging in to the zem_contact (and postmaster) plugin I really don’t know exactly what to remove and replace with my limited knowledge of php.
So… any pointers would be much appreciated!
Oh yeah, I have the latest versions of TxP (4.0.8) and the plugins.
Last edited by paperboy (2009-06-19 01:00:13)
Offline
#636 2009-06-19 09:24:23
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: zem_contact_reborn 4.0.3.20
paperboy,
if you read throught this forum around this page you will see I had a similar problem.
I didn’t manage to solve it but if you want I can forward you the email with amended files Joe kindly sent me.
Offline
#637 2009-06-20 12:42:06
- Clayton
- Member
- Registered: 2009-06-12
- Posts: 14
Re: zem_contact_reborn 4.0.3.20
Is it possible to put a rel=“nofollow” on txp:zem_contact_send_article ? I’m using it in all articles in this way and googlebot seems almost obsessed with crawling every one, and I fear it might class it as duplicate content
Offline
#638 2009-06-21 02:38:42
Re: zem_contact_reborn 4.0.3.20
@redbot
Yes please forward me the files. I added my email address to my profile.
Thanks!
Offline
#639 2009-07-07 11:44:48
- mfos
- Member
- Registered: 2008-12-11
- Posts: 34
Re: zem_contact_reborn 4.0.3.20
Hi,
I’ve read some of the posts on this thread but none appear to help.
I have an article (actually a product) and using send_article so the user can send an email with some details of the article/product in the email.
I have this on the article form:
<txp:zem_contact to="myemail@email.com" send_article="1" form="send_product" />
<txp:zem_contact_send_article />
My form is:
<div class="fieldcontainer">
<txp:zem_contact_text label="Name" required="1" break=""/>
</div>
<div class="fieldcontainer">
<txp:zem_contact_email break=""/>
</div>
<div class="fieldcontainer">
<txp:zem_contact_text label="Phone" break="" min=7 max=15/>
</div>
<div class="textareacontainer">
<txp:zem_contact_textarea label="Your question" required="1" cols="48"/>
</div>
<txp:zem_contact_submit label="Send" />
It keeps asking for a recipient field but I don’t want the user to type one in themselves so I removed it ( i know the instructions says to add this). I want the email to go straight to the email address as declared in the article form.
In summary, is there a way to send on information from an article (excerpt, title etc) in an email using the send_article tag?
Help would be vastly appreciated.
Cheers
Mike
Offline
#640 2009-07-07 16:52:37
Re: zem_contact_reborn 4.0.3.20
mfos / Mike, I think you shouldn’t be using the send_article form, which is intended for sending sending articles to an email address supplied by the visitor, but instead use zem_contact as a normal contact form, perhaps using the zem_contact_secret tag to add additional information to the email.
Offline
#641 2009-07-17 06:53:57
Re: zem_contact_reborn 4.0.3.20
A client wanted to collect form submissions in a spreadsheet so I created a little plugin with the plugin API that takes submitted data and spits it into a Google Spreadsheet. What I am trying to figure out is how to get an error message into the subject line of the email if the insert fails, that denotes that the form will have to be entered manually. Something like ERROR inserting Any Ideas?
Thanks as always
Offline
#642 2009-07-27 05:05:01
- Rimfya
- Member
- Registered: 2007-11-22
- Posts: 31
Re: zem_contact_reborn 4.0.3.20
A few questions with this plugin
1. Can I style (using HTML and inline CSS) the email that is sent to the recipient?
2. Can I have a confirmation email sent to the user of the form?
Thanks!
Offline
#643 2009-07-27 09:03:06
Re: zem_contact_reborn 4.0.3.20
- no, just plain text emails (HTML email is evil!)
- yes, see the plugin documentation (‘copysender’ attribute on the main zem_contact tag)
Offline
#644 2009-07-27 13:07:40
Re: zem_contact_reborn 4.0.3.20
Rudd – Any thoughts on how to hook the outgoing email and add an error note if my google spreadsheet script returns an error? I am using the zemcontact.submit callback for the plugin.
thanks
Offline
#645 2009-07-27 13:28:08
Re: zem_contact_reborn 4.0.3.20
Dayne, try adding something like this at the end of your spreadsheet script. It’ll get added at the bottom of the email, below the other fields:
if ($google_spreadsheet_error)
{
zem_contact_store('unique name', 'unique label', 'error message');
}
Offline