Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#997 2011-05-02 12:58:20

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: zem_contact_reborn 4.0.3.20

Yeah, sorry, I have that but just mistyped above. Basically the tag starts to parse, but then instead of closing out with the proper ' /> at the end, it renders ;” />.


Kevin
(graphicpush)

Offline

#998 2011-05-02 13:03:33

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

What does this show in HTML source (when visiting the page), when used outside ZCR tags:

<txp:category_list parent="whatever">,<txp:category title="1" /></txp:category_list>

Offline

#999 2011-05-02 20:15:10

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: zem_contact_reborn 4.0.3.20

Ruud — this produces the normal result.

I get the same character encoding thing when I embed the same code into a <txp:variable /> tag. It also produces the same result when I change category_list to self enclosed; doesn’t seem to make a difference. (Running 4.4.0 on a relatively virgin install.)


Kevin
(graphicpush)

Offline

#1000 2011-05-02 21:44:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Can you provide an URL and put the website in debug mode?

Offline

#1001 2011-05-02 22:05:58

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,273
Website GitHub

Re: zem_contact_reborn 4.0.3.20

kevinpotts wrote:

I get the same character encoding thing when I embed the same code into a <txp:variable /> tag

Just out of curiosity (and not just ‘cos this is the 1000th post in this thread) are you putting the code directly in an article? I’ve had weird encoding stuff like this because of Textile getting involved when using tags-in-tags. If so, does it fix things if you turn off Textile or escape the zcr tag with ==?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#1002 2011-05-03 02:14:38

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: zem_contact_reborn 4.0.3.20

Here is the page in question: http://buzz.kevinpottsdesign.com/add-buzz

And this is the complete line of code in question:

 <li><txp:zem_contact_select break="" label="Area" list='<txp:category_list parent="locations">;<txp:category title="1" /></txp:category_list>' delimiter=";"  /></li>

When I remove the category list and dump in a hard-coded list of locations, it works perfectly. The only thing I can think of is that I have a rogue quote mark somewhere, but not sure where.


Kevin
(graphicpush)

Offline

#1003 2011-05-03 03:18:53

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: zem_contact_reborn 4.0.3.20

kevinpotts wrote:

The only thing I can think of is that I have a rogue quote mark somewhere, but not sure where.

As the form is inside an article body, try what Stef suggested:

turn off Textile or escape the zcr tag block with == notextile..

It seems that Textile is doing some formatting and causing the problems.

Also, set category_list’s break attribute to unset (break=""). It defaults to br, which probably doesn’t belong there.

Last edited by Gocom (2011-05-03 03:24:11)

Offline

#1004 2011-05-03 11:30:48

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: zem_contact_reborn 4.0.3.20

Just out of curiosity (and not just ‘cos this is the 1000th post in this thread) are you putting the code directly in an article? I’ve had weird encoding stuff like this because of Textile getting involved when using tags-in-tags. If so, does it fix things if you turn off Textile or escape the zcr tag with ==?

Here’s an interesting experiment. When I typically write zem forms inside an article, I usually escape Textile by adding a single space before the line. 99% of the time, that works: Textile won’t create a <p> around my line and it does not encode any characters. However, in this case, that single-space tactic failed. Calling notextile. before the actual line worked, just as Stef and Jukka suggested, and the weird encoding things disappeared. Now, my code above works perfectly fine. I only make this pedantic observation as a reminder to self to not assume adding an empty space before a line is doing anything other than preventing the creation of <p> tags. Thanks all.


Kevin
(graphicpush)

Offline

#1005 2011-05-03 12:50:53

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: zem_contact_reborn 4.0.3.20

Kevin, check the different output on the Textile 2.2 page. I think its self explaining and needs no translation:

Im Detail: Diverse ‘NoTextile’ Textteste für (z.B.) Textile 2.2 Testseite

Replace this text with your _textile_.
Leerzeichen vorweg 
 Replace this text with your _textile_.
notextile. Replace this text with your _textile_.
== Replace this text with your _textile_. ==
Leerzeichen vorweg
 == Replace this text with your _textile_. ==

Achte auf die Feinheiten bei ‘underlying HTML’ und wo und wie kein Textile verwendet wird.

Die letzten Beiden sind identisch mit:

==Replace this text with your _textile_.==
 ==Replace this text with your _textile_.==

Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#1006 2011-05-08 17:10:46

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,076
Website Mastodon

Re: zem_contact_reborn 4.0.3.20

Karsten wrote:

I now completely stripped the .zemContactForm fieldset class to only include border: none; width: 520px; all the rest I just moved to a new div which I named #zemdiv. Now by just putting all the ZRC tags within this div the resulting form displays nicely as it should, and as it did in IE pre-9.

where can i do something similar? how? I see none of these options when i look at the code in zem_contact_reborn

i am having a devil of a time in trying to format the contact form.


…. texted postive

Offline

#1007 2011-05-09 15:26:56

benang
New Member
Registered: 2009-11-30
Posts: 6

Re: zem_contact_reborn 4.0.3.20

hi just tried the plugin and works great.

just two things:

1. when there is a error message like required field is missing etc.
where can I conntrol it / change it into german language? I didnt found asny tag which gives this opportunity…

2. is it possible to place the error messages on another position rather than only on top of the contact form/

thanks for yor help
cheers

benang

Offline

#1008 2011-05-09 16:38:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Offline

Board footer

Powered by FluxBB