Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2005-05-26 19:36:15

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

Perhaps someone can post details of exactly what part of the HTML code is causing validation problems?


Alex

Offline

#86 2005-05-26 21:02:34

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: [outdated] zem_contact, flexible mailto form

It’s the “name” attribute that throws the whole thing. I did some searching and this is one thing I found:

Via jayseae – The first thing that got me was the form itself. The form tags need to be outside of your block – for instance, form, then div. Close your /div, then close the /form. If you don’t do this, then the validator won’t read your block correctly – it will throw all sorts of errors, mostly having to do with disallowed elements.

So apparently if you can just throw a div inside the form element then things should work. Let me know if this helps. Thanks Zem.


To even the least of these…

Offline

#87 2005-05-27 00:02:19

bizartist
Member
From: Los Angeles, CA
Registered: 2005-03-11
Posts: 62
Website

Re: [outdated] zem_contact, flexible mailto form

I can verify that this works. I created a test page where I copied the xhtml output from my (very simple) zem_contact form into a blank page, and made a little validation link at the bottom. Sticking a div between the form tag and it’s contents appears to solve the validation problems with 1.0 strict: Test Page


After enduring years of Art School, mild mannered Owen Waring noticed some unusual changes… the constant bombardment of criticism, it seems, had altered his DNA. Half pixel pusher, half programmer, he had become…. THE BIZARTIST

Offline

#88 2005-05-27 19:48:08

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

Re: [outdated] zem_contact, flexible mailto form

Hi Zem -

Can you tell me does this line specify a 10 minute time limit on submitting the form?

safe_delete("txp_discuss_nonce", "issue_time < date_sub(now(),interval 10 minute)");

Can I change it to inverval 30 minutes to increase it?

Thanks,
Cameron


“If you build it, they will come.”

Offline

#89 2005-05-27 20:18:25

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

Can you tell me does this line specify a 10 minute time limit on submitting the form? Can I change it to inverval 30 minutes to increase it?

Yes, and yes.


Alex

Offline

#90 2005-05-27 22:42:08

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: [outdated] zem_contact, flexible mailto form

How bout where to add that div in the code? I would gladly hack it up today for a hamburger on Tuesday!


To even the least of these…

Offline

#91 2005-05-28 13:27:10

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

Re: [outdated] zem_contact, flexible mailto form

Sorry for bumping this… Would someone have a look at my post #82 please?

(I’ll take ‘no, not possible’ for an answer too, you know)

Offline

#92 2005-05-30 21:29:44

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [outdated] zem_contact, flexible mailto form

OK guys and gals,

I have hacked this to validate xhtml 1.1

Added classes to label tags. (instead of “label for=”____” “)
Added fieldset
Added div wrapper in form element

This is my new site so it’s not really finished just yet.
The w3c link is at the bottom of the page.

email me if you need it now. I am going to try and have somebody recompile it back into a plugin.

Oh @doggiez: It would probably be easier to just add the messages in all three laguages to the plugins output. ??

Last edited by soulship (2005-11-24 20:09:20)

Offline

#93 2005-05-30 21:38:19

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

Re: [outdated] zem_contact, flexible mailto form

> soulship wrote:

> Oh @doggiez: It would probably be easier to just add the messages in all three laguages to the plugins output. ??

That would be a workaround, yes, thank you. Hadn’t thought of that.
I’m also keeping an eye on this thread.

Last edited by doggiez (2005-05-30 21:39:24)

Offline

#94 2005-05-30 21:57:54

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [outdated] zem_contact, flexible mailto form

@doggiez

I don’t know how, but I guess you could make three different versions of the plugin… One in each language and name them differently install them seperatly and call the one you need where you need it.

I’m guessing on that though.

Offline

#95 2005-05-30 22:37:47

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

Re: [outdated] zem_contact, flexible mailto form

That’s what I had in mind, but I’m not a coder. I tried copying the plugin, renaming the functions that output messages, but made quite a mess of it. Nah, it’s too dangerous for a non-coder to try things like that… I’ll just have to wait ‘til someone does it for me.

Thanks anyway.

Offline

#96 2005-06-01 08:18:58

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [outdated] zem_contact, flexible mailto form

Added classes to label tags. (instead of “label for=”__” ”)

Why remove ‘for’? The strict DTD allows it, and it’s required for accessibility.


Alex

Offline

Board footer

Powered by FluxBB