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

#49 2006-01-11 07:55:10

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plug-in: zem_contact_reborn

Good work, and thanks.

Offline

#50 2006-01-13 16:09:12

Thirteen
Member
Registered: 2006-01-09
Posts: 40

Re: Plug-in: zem_contact_reborn

I hope this isn’t completely obvious, but I was wondering how to apply styles to the way the input forms/fields look like? I would like to be able to change the border style, size, colors, font, etc. of the form and submit button. There’s no attribute for class or id…so I’m wondering if there’s a way around this?

Btw, I’m aware that you could just set the style for input or textarea but I have more than one form on the site and don’t want the same styles to apply to all of them. I’d prefer to be able to add the styles only to the contact form in specific.

Any help would be greatly appreciated. Thank you!

EDIT: I was having a dumb moment. I figured out how to style the forms after all!

Another question I have- how would I go about getting the sender’s computer host/name as you normally would with a PHP script like gethostbyaddr($REMOTE_ADDR)? I know how to get the IP address, browser info, etc. but I’m having trouble with this one. Any ideas?

Last edited by Thirteen (2006-01-14 07:56:34)

Offline

#51 2006-01-13 19:40:07

Thirteen
Member
Registered: 2006-01-09
Posts: 40

Re: Plug-in: zem_contact_reborn

I’ve figured out how to customize the style, and along the way I discovered something odd. For the txp:zem_contact_email field, the help file says it contains the same attributes as txp:zem_contact_email. However, I noticed that it won’t recognize the size attribute for me. Specifying the size for other fields worked just fine, but it just wouldn’t work for the email field. In the end, I had to work around it via CSS- but I thought I’d mention that the size attribute isn’t working for the email field.

Last edited by Thirteen (2006-01-14 07:58:55)

Offline

#52 2006-01-13 20:48:21

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plug-in: zem_contact_reborn

Id just like to bump the BUMP of NeilA. Can this plugin be set to automatically copy the inquirer on the email.

Offline

#53 2006-01-14 19:20:44

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: Plug-in: zem_contact_reborn

Hoi,

I have a form who likes like this :
<code>
<div id=“submenu”>
<txp:zem_contact mailto=“postmaster@tamarawobben.nl”>
<p><txp:zem_contact_text label=“Name” required=1 /></p>
<p><txp:zem_contact_email required=“1” /></p>
<p><txp:zem_contact_textarea required=“1” /></p>
<p><txp:zem_contact_submit /></p>
</txp:zem_contact>
</div>
</code>

and in my page section there is :
<code>
<txp:if_section name=“contact”> <txp:output_form form=“email” /> </txp:if_section>
</code>

But now i get a error -message that to-adres is missing.
But i have put in the first sectence.

How can i make it work now ?

Roelof

Last edited by roelof (2006-01-14 19:21:09)

Offline

#54 2006-01-14 20:12:36

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

Re: Plug-in: zem_contact_reborn

Assuming you are using the “reborn” version of the plug-in as opposed to zem’s original version, you need to use the attribute “to” instead of “mailto”. There are one or two other things that may have changed. For instance “yes” and “no” are now used instead of “1” and “0”. You should double-check the help text.

Last edited by thebombsite (2006-01-14 20:18:13)


Stuart

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

Offline

#55 2006-01-14 22:29:29

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: Plug-in: zem_contact_reborn

thank you,

The mail-to change into to did the trick.
Does anyone know if the Captcha-plugin can work together with this reborn-plugin ??

Roelof

Offline

#56 2006-01-15 16:00:57

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Plug-in: zem_contact_reborn

Hi,

I found a small bug in the plugin code that prevents validation if label="" is used in the <txp:zem_contact> tag.

Line 209: ( $label ? (n.'</fieldset>') : (n.'<div>') ).

should be: ( $label ? (n.'</fieldset>') : (n.'</div>') ).

Offline

#57 2006-01-15 17:38:56

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

Re: Plug-in: zem_contact_reborn

Lot of bugs with this plugin. Also with the previous version. Has there been any answer from Zem on future plans? What is clearly needed is someone to pick this plugin up and run with it. Wish I knew enough about PHP but I am only intermediate skill level :-(

Offline

#58 2006-01-15 19:04:09

Thirteen
Member
Registered: 2006-01-09
Posts: 40

Re: Plug-in: zem_contact_reborn

That’s odd…I’m using the <code>label=” “</code> but it’s validating fine, I think. We’re talking about xhtml validation right? But that aside, things seem to be functioning okay in other areas as well (from what I can see after testing it left and right).

Last edited by Thirteen (2006-01-15 19:04:26)

Offline

#59 2006-01-15 19:22:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Plug-in: zem_contact_reborn

That’s because you are using label=" " and I used label="". The space seems to make the difference. In the first case the <fieldset> tags are used (that have the closing slash in the code), in the second case the <div> tags. Not that I understand why it is the way it is… :/

Offline

#60 2006-01-15 20:05:22

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

Re: Plug-in: zem_contact_reborn

Thanks Els. :)

Both Tranquillo and Anura have copies of the template so we shall see what we shall see.

Make sure you have the latest version. Some bugs have been dealt with already. Changing behaviour or adding new functionality is something else.

Version .04 added.

Last edited by thebombsite (2006-01-15 20:27:39)


Stuart

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

Offline

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

Board footer

Powered by FluxBB