Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2007-12-22 07:15:11

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: zem_contact_reborn 4.0.3.20

what are you using to output that form? on your page i see two fieldsets and two closing form tags. looks like you’re using the zem_contact tag twice.

Offline

#134 2007-12-22 14:58:08

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

Ah. This makes more sense now.

Jukka- where would I look to find out how to style various elements of this form as you did with the “.zemcontactform label” style?

I reformatted the code to look like this;

<txp:zem_contact to="xxx@gmail.com" label="Customer Inquiry Form"  ><br />
  <txp:zem_contact_email required="1" /><br />
  <txp:zem_contact_text label="Full Name" name="Name" required="1" min="2" max="40" /><br />
  <txp:zem_contact_text label="Phone" /><br />
  <txp:zem_contact_textarea label="Describe/list items" cols="40" rows="10"  /><br />
  <txp:zem_contact_submit label="Submit" />
</txp:zem_contact>

Steve- Yeah, I noticed that the fieldset was coming out twice too. I thought it was the plugin that was doing that.

It turns out that when I used the tag in my article, I had it like this;

<txp:zem_contact  to="xxx@gmail.com"  form="contactform" />

Whereas, it should’ve been like this. I guess I’m supposed to insert the label=”“ attribute in there to avoid the duplicate fieldset. I guess I’m just learning through trial and error since the directions for the plugin didn’t say that?

<txp:zem_contact  to="xxx@gmail.com" label="" form="contactform" />

Last edited by darock (2007-12-22 17:00:23)

Offline

#135 2007-12-22 15:09:50

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

btw- is there a way to input the tag when using a WYSIWYG editor as opposed to textile?

Offline

#136 2007-12-22 16:47:51

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

darock, please re-phrase your question. It is not clear to me what you’re asking. If possible, give an example.

Offline

#137 2007-12-22 17:00:09

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

Ruud- When I write an article but am using the hak_tinymce WYSIWYG editor instead of textile, is there a way to input the the zem_contact tag into the article? For example, I inputted

<txp:zem_contact  to="xxx@gmail.com" label="" form="contactform" /> 

when writing an article and using the WYSIWYG editor but it didn’t show up. I know the contact form will show up if textile is on, though.

I hope this is clearer.

Offline

#138 2007-12-22 17:06:51

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

In your TXP preferences, do you allow TXP tags inside articles? ZCR tags are no different from other TXP tags.

Offline

#139 2007-12-22 17:25:18

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

I don’t see an option for that in my Preferences Admin tab? I have the Use Textile field set to “Use Textile” as opposed to “Leave Text Untouched”

Offline

#140 2007-12-22 18:44:10

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

I am stupid. There is no such option. I thought there was, but apparently there is not.
How does that tag show up in the HTML source of your page and in the tag trace (visible in the HTML source when your site is in debug mode)?
Also, do other tags work when using hak_tinymce? If not, you should ask this question in the author support topic for that plugin, because then it’s related to hak_tinymce instead of ZCR.

Offline

#141 2007-12-22 22:35:43

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: zem_contact_reborn 4.0.3.20

The problem of hak_tinymce is that it eats txp tags when swithing the view of article. It’s common problem of that plugin


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#142 2007-12-22 23:41:11

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: zem_contact_reborn 4.0.3.20

the_ghost wrote:

The problem of hak_tinymce is that it eats txp tags when swithing the view of article. It’s common problem of that plugin

its not a ‘common problem’ of that plugin. its just tinymce does not read txp tags. its what happens when you want to use a wysiwyg editor.

Last edited by iblastoff (2007-12-22 23:42:01)

Offline

#143 2007-12-23 18:10:11

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

lol. No worries- it happens to the best of us.

in debugging mode, the code looks like this;

<p><br />&lt;txp:zem_contact&nbsp; to=&quot;xxx@gmail.com&quot; label=&quot;&quot; form=&quot;contactform&quot; /&gt; </p>

I don’t believe other txp tags work either with this editor as I’ve tried before. I could’ve sworn there was a work around this but I’ll look into it. If I find something, I post back. thx.

Last edited by darock (2007-12-23 18:10:27)

Offline

#144 2007-12-23 18:20:27

darock
Member
Registered: 2007-11-23
Posts: 54

Re: zem_contact_reborn 4.0.3.20

I didn’t notice it, but there were 2 responses prior to mine. I guess it’s not possible to use TXP tags in the editor.

So since the editor eats up the TXP tags does this mean that the only to input this form or any type of TXP tag for that matter, is to stay in Textile mode for that particular article?

Offline

Board footer

Powered by FluxBB