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

#151 2006-01-29 06:53:59

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

Re: Plug-in: zem_contact_reborn

Version .12 available. No code changes so no need to rush. I’ve gone through the Help text and removed any errors or ambiguities and improved the formatting. Also added some information relating to localisation. If nothing else this will be the best-documented plug-in available. :)


Stuart

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

Offline

#152 2006-01-29 11:02:01

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Plug-in: zem_contact_reborn

Stu rocks :) Thanks for managing that!

Offline

#153 2006-01-29 11:22:40

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

Re: Plug-in: zem_contact_reborn

Ha haaaa. I’ll try anything once. ;)


Stuart

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

Offline

#154 2006-01-30 00:38:52

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

Re: Plug-in: zem_contact_reborn

Thanks to all involved with bringing this plugin back to life. It rocks!

I’m having a little trouble styling the output the way I’d like to. I wanted to have the zemError class items in the <ul> show up as red text, but they don’t. The input field labels do show up as bold and red as expected, but the bullets in the <ul> are black.

I’m sure it’s just some CSS syntax that I don’t have quite right. Can someone tell me what I did wrong?
<pre><code>#zemContactForm legend { color: #000; font-weight: bold; font-size: 125%;
}

.zemError, label.zemRequirederrorElement { color: #800;
}

label.zemRequirederrorElement { font-weight: bold;
}
</code></pre>

Thanks,
Phil

Offline

#155 2006-01-30 03:02:03

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

Re: Plug-in: zem_contact_reborn

I have this which works:

<code>
ul.zemError {list-style-type: none; margin: 5px; padding: 2px; border: 1px #f00 solid; color:#f00; background:#fff;}

.zemRequired {font-weight:bold;}

.zemRequirederrorElement {color:#f00; font-weight:bold;}

input.zemRequirederrorElement, select.zemRequirederrorElement,textarea.zemRequirederrorElement {background:#e2e2e7;}

p.red {color: red; font-weight:bold;}

</code>

Offline

#156 2006-01-30 05:30:10

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

Re: Plug-in: zem_contact_reborn

Try using “ul.zemError”. I don’t actually show the “list-style” over on my /test/ site but if I bring it back in and change “color” it does change the bullet colour as well as the text.

Last edited by thebombsite (2006-01-30 05:32:38)


Stuart

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

Offline

#157 2006-01-30 06:23:20

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

Re: Plug-in: zem_contact_reborn

Thanks for the hints, but unfortunately the text in the ul when there is an error is still not getting styled by my CSS.

I tried ul.zemError and even ul.zemError, li.zemError, p.zemError with no luck. My contact page is at http://pfactor.com/contact if you want to see the actual page and CSS involved. Just hit “Send” without filling in any fields, and you should see the list of errors at the top in black, instead of red as I expected.

I’m sure I’m doing something simple wrong, but I can’t figure it out.

Phil

Offline

#158 2006-01-30 07:10:43

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

Re: Plug-in: zem_contact_reborn

That’s weird! I can tell you that “li.zemError” and “p.zemError” don’t exist so there’s not much point using those but try “ul.zemError li”.


Stuart

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

Offline

#159 2006-01-30 13:29:31

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

Re: Plug-in: zem_contact_reborn

pfactor, try the CSS I posted above:

<code>ul.zemError {list-style-type: none; margin: 5px; padding: 2px; border: 1px #f00 solid; color:#f00; background:#fff;}
</code>

Offline

#160 2006-01-30 14:21:59

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

Re: Plug-in: zem_contact_reborn

Yes pfactor, as the bombsite said use ul.zemerror li{color: #800;}. You have a color: #000; on an li higher up in your css that takes precedence over anything else you have tried so far. If that still doesn’t work you can do this ul.zemerror li{color: #800 !important;}.

Offline

#161 2006-01-30 16:42:40

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

Re: Plug-in: zem_contact_reborn

> tinyfly wrote:
> Yes pfactor, as the bombsite said use ul.zemError li{color: #800;}.

That did the trick. Thanks so much!

Phil

Offline

#162 2006-01-30 18:08:09

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

Re: Plug-in: zem_contact_reborn

Another happy user. :)


Stuart

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

Offline

#163 2006-02-01 11:09:05

Champak
Member
Registered: 2006-01-31
Posts: 56

Re: Plug-in: zem_contact_reborn

1/ Very basic problem/question…I think. I want to either change the size of that CSS box that is partially around the contact form, or remove it all together. Please tell me where exactly the code to change that is?

Also

2/ Is it possible to have a contact form and a send article link on the same page/article? If so, I can’t get mine to work. When I put the two on the same form, the contact form doesn’t display, then when I click the send article link, it opens up the contact form. What should I be doing?

Thanks.

Last edited by Champak (2006-02-01 11:36:14)

Offline

#164 2006-02-01 12:04:34

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

Re: Plug-in: zem_contact_reborn

1. In your CSS try using <code>form#zemContactForm fieldset {border: 0;}</code>. I don’t believe it can be “sized” though you could try it.

2. You probably haven’t created a separate form to be used with the “Send Article” link. It has to be a different form to the normal “Contact” form due to the special attributes required for it to work properly. This is mentioned in the Help text. Whether they clash with each other is another matter. Off-hand I can’t think why someone would want both within an article. Seems like a very odd request to me. :)

Last edited by thebombsite (2006-02-01 12:05:25)


Stuart

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

Offline

#165 2006-02-01 18:04:12

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

Re: Plug-in: zem_contact_reborn

Is there any more interest in altering this plugin to optionally output HTML via an attribute?

All it would require is the following:

  1. add an attribute called “contentType” that would accept “html” or “text”
  2. in the case of HTML wrap the output of fields in <p> tags

Conceptually, it’s simple. I’d do it but I don’t know how.

In particular I need this so that when the “send to a friend” option is used, the article’s html doesn’t show as code. I’ve hacked it to produce HTML output, but then all the fields other than the message body run up against eachother.

Offline

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

Board footer

Powered by FluxBB