Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-02 19:42:14

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

error thrown up after installation of zem_contact_reborn plugin!

Hi ive jst installed the contact form plugin, the zem one. Basically i installed the plug in fine- the last step i took here was clicking ‘no’ on the plugin page to turn it in to a ‘yes’.

From here i created a new form called ‘contact_form’ containing the following lines:

<code>

<txp:zem_contact to=“james@here.com”>
<txp:zem_contact_email />
<txp:zem_contact_text label=“Phone” min=7 />
<txp:zem_contact_textarea label=“Enquiry” />
<txp:zem_contact_submit label=“Enquire” />
</txp:zem_contact>

</code>

I saved this form as ‘contact_form’.

Then i created a new page with the following code included:

<code><txp:zem_contact to=“james@here.com” form=“contact_form” /></code>

and then created a new section and created a link from my default home page to this new contact section.

Now i thought i’d done everything necessary so i thought i’d test site to see the results. Unfortunatley the following error was thrown up:

<code>
Fatal error: Call to undefined function: zem_contact_gtxt() in /Applications/MAMP/htdocs/textpattern/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 13</code>

Could anyone explain this?

<i>fixed wrong title. (plugin name is zem_contact_reborn, not zem_contact) — Sencer</i>

Last edited by Sencer (2006-03-06 18:27:30)

Offline

#2 2006-03-02 20:26:47

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

Re: error thrown up after installation of zem_contact_reborn plugin!

Did you upload the lang part of the plugin as well?
You must use both now.


Offline

#3 2006-03-02 21:02:27

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: error thrown up after installation of zem_contact_reborn plugin!

Hi there,

I downloaded the plugin then selcected all the jibberish in the text file then uploaded pasted that in the space on the plugin page and uploaded that. Is that correct?

I did everything i was told on the FAQ of how to install a plugin.

Offline

#4 2006-03-02 21:07:54

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: error thrown up after installation of zem_contact_reborn plugin!

Yes, but this plugin comes in two parts. Read its installation instructions.

-Kurt


kurt@kurtraschke.com

Offline

#5 2006-03-02 21:23:03

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: error thrown up after installation of zem_contact_reborn plugin!

Thanks guys, Thats sorted it right out! Nice one!

Offline

#6 2006-03-04 16:33:28

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: error thrown up after installation of zem_contact_reborn plugin!

Im trying to style the form now. I cant work out how to do it. Looking at the parsed code it shows legends etc, this wouldnt be my chosen method for a creating a form.

Is there any way i can change this or if not how do i style the existing form. Do i create style rules for the parsed code?

Offline

#7 2006-03-04 17:22:47

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

Re: error thrown up after installation of zem_contact_reborn plugin!

elduderino.
LOL. I read the title of this post again, but misread it. I thought it said:
ever thrown up after intstalling zem_contact_reborn?”
Which seems to be more appropriate for you :)

See my styling code here:
<code>
form#zemContactForm { color: #333; font-size: 14px; line-height: 15px; }

form#zemContactForm legend { display: none; }
form#zemContactForm fieldset { border: 0px; padding-left: 10px; }
input#email, textarea#message, input#phone, input#name, input#web { width: 365px; }
input#zemSubmit { width: 365px; margin-top: 10px; }
ul.zemError { color: red; list-style-type: none; padding: 10px 0; line-height: 20px; }
</code>


Offline

#8 2006-03-04 17:42:05

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: error thrown up after installation of zem_contact_reborn plugin!

Ha! Yes indeed it that would be more appropriate! I havent really had many probs with it at all actually-its better than developing my own form with php/sql!

Now ive named my form my_contact_form.

In order to create styles in the same way you have what would i need to put in place of your code? Instead of #zemcontactform would i put #my_contact_form?

sorry im a little lost

Last edited by elduderino (2006-03-04 17:51:48)

Offline

#9 2006-03-04 19:38:55

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

Re: error thrown up after installation of zem_contact_reborn plugin!

Just starting from the top you don’t use <code><txp:zem_contact to=“james@here.com” form=“contact_form” /></code> in your page template because you already have that tag in your form. You should be calling it with the <code><txp:output_form form=“contact_form” /></code> tag.

“zemContactForm” is the “id” given to the form and is “built-in” to the code. It isn’t variable. You should use the “class” and “id” names as Matthew has shown above.


Stuart

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

Offline

#10 2006-03-05 02:57:59

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

Re: error thrown up after installation of zem_contact_reborn plugin!

elduderino,
a good way to do this can be to get the form to show up on your page, and then to “view source”. navigate through the code till you get to the contact form and then look through for the id’s or the classes of the tags to determine what kind of styling you can do.

For instance:

<code>
<form id=“ZemContactForm” method=“post” />
</code>
This bit of html will be styled by the first one on my list above. Make sense?


Offline

#11 2006-03-06 00:30:46

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: error thrown up after installation of zem_contact_reborn plugin!

Hi,

right i habe been looking at my parsed code and trying to style the form on the basis of that. Im having some limited success but the labels for fields keep appearing to the right of the textfields instead of above.

Ive taken a look at a txp site thats set up that i know of and it uses this code:

<code><p>Name<br /><input type=“text” name=“sender_name” value=”“ /></p></code>

Now have they used a wraptag here or something? Ive been using this:

<code>form#zemContactForm label {
color: red;
margin-left: -30px;
margin-bottom: 20px;
}</code>

Now this kinda works; It jsut makes the text go red so i know im doing something right!! The margins here are just things ive been doing to try and get the text aligned like a i want it.

Could anyone help?!!

Offline

#12 2006-03-06 04:32:19

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

Re: error thrown up after installation of zem_contact_reborn plugin!

You might post some of your questions under the layout and css forum elduderino? Folks will be more apt to help you style your code there. Do you use the firefox developer extension? It helps you see which element you need to style quite easily.

You may need to use what I think are called child selectors in order to style the form correctly?

for instance:

<code>
div#contact textarea .zemRequired { background: #333 }
</code>

make sense? You may need to do some xhtml and css homework for this one :) Its not hard once you get used to debugging yourself.


Offline

Board footer

Powered by FluxBB