Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#505 2008-12-04 12:23:43

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: zem_contact_reborn 4.0.3.20

maybe someone have already do this request but I don’t find the answer.

I must send an Email with a table inside, and I need that the mail has content Type: text/html.

Can i do that? How?

Offline

#506 2008-12-04 17:31: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

ZCR is currently setup to handly only plain text email. No plans to change that on my end.

Offline

#507 2008-12-04 18:04:34

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: zem_contact_reborn 4.0.3.20

I am testing out my form. I set the email, first and last name fields to required. I filled out all 3 fields and yet I still get the error below. Any reason why?

  • Required field, “First Name”, is missing.
  • Required field, “Last Name”, is missing.

<txp:zem_contact_text label="First Name" name="First name" required="1" min="2" max="40" /><br />
<txp:zem_contact_text label="Last Name" name="Last Name" required="1" min="2" max="40" /><br />
<txp:zem_contact_email required="1" /><br />
<txp:zem_contact_text label="Company or Organization" name="Company" required="0" min="2" max="40" /><br />
<txp:zem_contact_text label="Phone" min=7 max=15 required="0" /><br />
<txp:zem_contact_text label="Mobile" min=7 max=15 required="0" /><br />
<txp:zem_contact_text label="Website URL" name="Website" required="0" min="2" max="40" /><br />
<txp:zem_contact_textarea label="Comments" cols="40" rows="10"  /><br />
<txp:zem_contact_select break="br" label="How did you hear of us?" list="Word of Mouth, Search Engine, Blog, Article, Advertisement, Direct Mail, Press Release" /><br />
<txp:zem_contact_text label="Other" name="Company" required="0" min="2" max="40" /><br />
<br />
<txp:zem_contact_submit label="Submit" />

Offline

#508 2008-12-04 18:30:44

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

It’s probably the use of spaces in the name attribute.

Offline

#509 2008-12-04 20:21:26

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

Re: zem_contact_reborn 4.0.3.20

Hu Ruud,

I made a local modification to zem_contact_reborn that you might want to consider adding to the official plugin code.

I use select menus in my contact forms. I like to use a header item like “Please choose…” as the default (top-most) item. However, I also want to force the user to make a choice (i.e. make the field “required”). Unfortunately, the plugin sees the header item as a valid choice since it is not “empty.” My patch fixes this by adding an optional attribute “has_header_item.” The change is in the zem_contact_select() function as follows:

function zem_contact_select($atts)
{
	global $zem_contact_error, $zem_contact_submit;

	extract(zem_contact_lAtts(array(
		'name'			=> '',
		'break'			=> ' ',
		'delimiter'		=> ',',
		'isError'		=> '',
		'label'			=> zem_contact_gTxt('option'),
		'list'			=> zem_contact_gTxt('general_inquiry'),
		'required'		=> 1,
		'selected'		=> '',
		'has_header_item'	=> 0,
	), $atts));

	if (empty($name)) $name = zem_contact_label2name($label);

	$list = array_map('trim', split($delimiter, preg_replace('/[\r\n\t\s]+/', ' ',$list)));

	if ($zem_contact_submit)
	{
		$value = trim(ps($name));
		if ($has_header_item && ($value == $list[0]))
		{
			$value = '';
		}

Offline

#510 2008-12-04 20:30:12

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

It’s probably the use of spaces in the name attribute.

Yep- it’s the use of spaces. It doesn’t allow for spaces in the name attribute so I just make it one word instead of two. Thx.

Offline

#511 2008-12-04 23:23:05

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: zem_contact_reborn 4.0.3.20

Still no plans to add a way to trigger a form reload during spam check? I don’t want to display a captcha if the content is not evaluated as unsure first. Otherwise I’ll need to use some hacks.


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#512 2008-12-05 01:50:51

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

Re: zem_contact_reborn 4.0.3.20

Just discovering that this form can be used to send specific articles. Awesome.

Instead of using text for the send article hyperlink, can we use an image-based link instead? I want to have an image that would allow users to hit it which would prompt them to submit the article.

<txp:zem_contact_submit label="Send Article" />

Offline

#513 2008-12-06 14:58:09

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

Re: zem_contact_reborn 4.0.3.20

I’m not sure if the problem below is a byproduct of the plugin, but I wanted to test the “send article” functionality of zem by emailing it to myself. Below is exactly how it was sent to me. As you can see, the content doesn’t have its appropriate paragraph breaks and there are ASCII character codes included in this. In the original online version on my site, all paragraphs are properly broken up with no ASCII character codes.

Thoughts?

Offline

#514 2008-12-12 14:34:35

MikeTheVike
Member
Registered: 2008-06-17
Posts: 47

Re: zem_contact_reborn 4.0.3.20

I was wondering if maybe there was a plugin that works with ZCR that will allow me to manage contacts. The PostMaster plugin is used for newsletters and uses ZCR to subscribe people. You can manage subscribers within Textpattern. But it hasn’t been updated in a while, and has a few problems.

The boss wants people to be able to fill out a form with their name, business, email, and then answer a “trivia” question. Then he wants them to be able to come back in a week, fill out the form with their name, business, email, and answer a different “trivia” question. And we would like to be able to store this info in the database, so we can look up the people, their info, and the answers to their questions. Anyone have any info or ideas?

Offline

#515 2008-12-13 16:52:51

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

Re: zem_contact_reborn 4.0.3.20

A Security Scan of one of my sites turned up a vulnerability relating to ZCR, Does anyone have any idea how I can get around this issue?

Possible blind sql injection on http://tamarackcellars.com/contact?zem_c ontact_form_id=6225480ff8c63dac8275dcb6af5 55e20&Name= wp —bsql “http://tamarackcellars.com/contact?zem_ contact_form_id=6225480ff8c63dac8275dcb6af 555e20&Name=” “http://tamarackcellars.com/contact?zem_ contact_form_id=6225480ff8c63dac8275dcb6af 555e20+and+1%3D1&Name=” “http://tamarackcellars.com/contact?zem_ contact_form_id=6225480ff8c63dac8275dcb6af 555e20+and+1%3D0&Name=” POST cat <<EOF > bsql.sh curl -L -d “zem_contact_form_id=6225480ff8c63dac8275 dcb6af555e20&Name=” “http://tamarackcellars.com/contact”> a curl -L -d “zem_contact_form_id=6225480ff8c63dac8275 dcb6af555e20&Name=” “http://tamarackcellars.com/contact”> b diff a b EOF sh bsql.sh This website may have other injection related vulnerabilities.

Offline

#516 2008-12-14 14:13:14

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

The zem_contact_form_id variable isn’t used in a SQL query, so this is a false positive.

Offline

Board footer

Powered by FluxBB