Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Plug-in: zem_contact_reborn

#337 2006-03-13 20:57:07

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plug-in: zem_contact_reborn

Anybody know how to affect the lang file to read something like:

Hey, thanks for writing me, have a great Saturday. (when its saturday)

I saw some php scripts around, but I wouldn’t know how to implement them in the current php? Or for that matter how ot implement them inside normal html, although I could probably figure that one out eventually.

Thanks,

matthew


Offline

#338 2006-03-13 21:35:46

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: Plug-in: zem_contact_reborn

Replace the email_thanks message in the language plugin like this:

‘email_thanks’ => ‘Hey, thanks for writing me, have a great ‘.date(‘l’), // it’s a small L

Offline

#339 2006-03-14 00:23:11

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plug-in: zem_contact_reborn

tranquillo,
I ended up being able to use the thanks_form.
I had forgotten that was available. Thanks though.

Matthew

like so

<code>
<h3>Hey Thanks.
Your note is on its way.
Have a great
<?php
echo date(“l”);
?>!</h3>
</code>

Last edited by ma_smith (2006-03-14 00:49:14)


Offline

#340 2006-03-14 01:07:34

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plug-in: zem_contact_reborn

Also,
Does anyone understand how to use the:
<code>
<div id=“error”><txp:zem_contact form=“contact_form” show_input=“no” /></div>
<div id=“inputform”><txp:zem_contact form=“contact_form” show_error=“no” /></div>
</code>
Tags to show the errors where you’d like them to show up, rather than “default” above the form?
I’m having a little trouble getting a hold of this one.

When I apply the show_error=“no” to the form I wish to show, and the show_input=“no” to the error bits where I don’t want to see the form, I end up getting

Two forms, one with red erros, one without.

The “message” textarea on both becomes a new kind of element and thus loses its styling.
It goes from textarea#message to .zemRequiredErrorElement

Help would be appreciated


Offline

#341 2006-03-14 02:22:08

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Plug-in: zem_contact_reborn

Hi, have not visited this thread for a while, and wanted to check if there has been any progress on the foreign language front (character issues with drop down select boxes – using a Norwegian character creates an error with a drop down)?

Also, if a user submits a form but forgets to add information to a drop down select, does it get “remembered” now along with an error message/red text?

Thanks!

Offline

#342 2006-03-14 09:51:57

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: Plug-in: zem_contact_reborn

@ma_smith: “Two forms, one with red erros, one without.”
This feature doesn’t work correctly,yet. It should in the next version.

Offline

#343 2006-03-14 13:06:23

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plug-in: zem_contact_reborn

Good to know I’m not going cuckoo. Thanks.


Offline

#344 2006-03-14 13:53:04

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plug-in: zem_contact_reborn

@jstubbs – The error functions are now working correctly with the drop-down “select” fields and labels as is remembering any selections already made. The foreign characters issue remains at the moment though it is being looked at.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#345 2006-03-15 10:56:08

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: Plug-in: zem_contact_reborn

I just attempted to upgrade zem_contact_reborn from .12 to .17, and now the contact page load fails with the following error:

Fatal error: Call to undefined function zem_contact_gTxt() in C:\Program Files\xampp\htdocs\thi\textpattern\lib\txplib_misc.php(459) : eval()’d code on line 13

That’s on my locally-hosted site, but a similar error occurred on the live site (different path). I had to restore a database backup to get .12 back, since I didn’t have a copy on hand.

Any idea what could be causing this error? Have others had success running this plugin in a PHP5 environment?

Offline

#346 2006-03-15 11:02:55

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: Plug-in: zem_contact_reborn

“Any idea what could be causing this error?”

Version .14 (03/02/06)
This latest version now splits the language file out into a separate plug-in. <strong>You will need both for it to work properly.</strong> This will allow people to “localise” the language file and not need to worry about it when the main plug-in needs updating unless new “text output” has been added. I will let you know if that happens. The information about “localisation” included in the previous release has now been moved to the new plug-in.

Offline

#347 2006-03-15 12:31:33

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

Re: Plug-in: zem_contact_reborn

Okay, this might be again that I am just messing up but is everything working ok to everybody else when copysender is set to yes? I have tested this on two sites, with version .16 and .17 and when the copysender is yes, senders copy is received but no actual email.

code for email form is
<code><txp:zem_contact to=“address@domain.com”>
<txp:zem_contact_text label=“Nimi” size=“40” /><br />
<txp:zem_contact_email label=“Email” size=“40” /><br />
<txp:zem_contact_textarea label=“Viestisi” rows=“10” />
<txp:zem_contact_submit label=“Lähetä” />
</txp:zem_contact></code>

and I am using some additional <code><txp:if_section name=”“></code> -tags in contact_lang depending on if user is on finnish or english section.

Offline

#348 2006-03-15 17:48:57

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: Plug-in: zem_contact_reborn

tranquillo wrote:

Version .14 (03/02/06)
This latest version now splits the language file out into a separate plug-in. <strong>You will need both for it to work properly.</strong>

That did the trick. Thanks!

I’m running into one more small problem. When I try to include some HTML in the <legend> element of the contact form (i.e. the “label” attribute of the <txp:zem_contact /> tag), I end up getting an error message telling me that the Form I’m using to output the contact form is missing. It’s not, so I’m assuming this must have something to do with the way Txp parses template tags. Is there a way around this?

Offline

  1. Index
  2. » Archives
  3. » Plug-in: zem_contact_reborn

Board footer

Powered by FluxBB