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

#409 2006-03-30 14:39:48

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: Plug-in: zem_contact_reborn

.co is the domain for Colombia, so technically, me@mypost.co is a valid address. Not sure about me@mypost.c though.

Offline

#410 2006-03-30 18:42:11

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

Re: Plug-in: zem_contact_reborn

Stuart,
or coder type people,

How hard would it be to add a parameter for the id’s of the input to be specified:

ie: input id=“contact-message”

I have a contact form on every page, and then when i have the TXP default comments form, they don’t validate because of the id’s

Any thoughts or ideas?


Offline

#411 2006-03-30 18:49:37

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

Re: Plug-in: zem_contact_reborn

Rather than mess with the plug-in code why don’t you surround the form with a div and use conditionals like:-

<code>
<txp:if_section name=”“>
<div id=“home”>
<txp:else />
<div id=”<txp:section />”>
<txp:if_section></code>
<br />

or similar or if you use that for you “body” tag or something use “div class=” instead?

Last edited by thebombsite (2006-03-30 18:52:16)


Stuart

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

Offline

#412 2006-03-30 19:16:20

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

Re: Plug-in: zem_contact_reborn

Stuart,
Its not a div I need to rename, but the inputs.

I can’t change that with html or css, its a code thang.

:)

Matthew


Offline

#413 2006-03-30 19:26:32

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

Re: Plug-in: zem_contact_reborn

Yes I understood that, but if you surround the form with a div that has a different class or id depending on which page you are looking at you can use something like “#home form#zemContact input#email” and only the first bit – “#home” – needs to change for ALL your inputs. Did I explain that properly?


Stuart

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

Offline

#414 2006-03-30 21:20:33

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

Re: Plug-in: zem_contact_reborn

Stuart,
That works for styling. It doesn’t change validation though right?
Maybe this is some html trickery I didn’t know about?

The area in question is here: artiswork.org/word/daily-bread

Sorry if I am belaboring a point Stuart, and there’s something I don’t get?

:)

Matthew


Offline

#415 2006-03-30 21:28:16

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

Re: Plug-in: zem_contact_reborn

Oh I see. Now why didn’t you put that link in in the first place? ;)

I need to think. Hang on.


Stuart

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

Offline

#416 2006-03-30 21:33:09

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

Re: Plug-in: zem_contact_reborn

:) Sorry about that Stuart. One begins to think of you as some sort of Lord of Zem Reborn and we end up intuiting things more than writing them down clearly.

Thx.

M


Offline

#417 2006-03-30 21:35:53

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

Re: Plug-in: zem_contact_reborn

I’ll have you know that according to one comment on my blog today I’m merely a god. ;)


Stuart

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

Offline

#418 2006-03-30 21:42:30

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

Re: Plug-in: zem_contact_reborn

Use the name=“whatever” attribute. The id will use the $name value.


Stuart

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

Offline

#419 2006-03-31 16:57:58

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Plug-in: zem_contact_reborn

Feature request: Can you make it so that the zem_contact_submit can take the attribute src="" and if it has a src the type should be changed to type="image" instead of type="submit"? This would allow for image submit buttons like the submit button on this page.

Offline

#420 2006-03-31 19:56:08

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

Re: Plug-in: zem_contact_reborn

Thanks for that tinyfly. I’m still learning with this “button element”. I’ll work it into .18 but wouldn’t we also require a “type” attribute to change from “submit” to “image”? And whilst I’m thinking about it, will an empty <code>src=”“</code> validate assuming someone is using the default type=“submit”? And by validate I do mean Strict.

Last edited by thebombsite (2006-03-31 19:59:31)


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