Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2010-08-02 10:45:31

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 296
Website GitHub Twitter

Re: mem_form - Generic HTTP form processing

Hello,
I try to integrate mem_form with mem_form_file into an existing ZCR formular as mentioned by Bloke in this post.

<txp:mem_form enctype="multipart/form-data">
  <txp:mem_form_file label="File" name="myfile" />
</txp:mem_form>

the problem is, that textpattern says it doesn’t know the tag mem_form.

Fehler im Tag: <txp:mem_form enctype="multipart/form-data"> -> Textpattern Warning: Unbekannter Tag on line 1120
“unknown tag on line 1120”

I already several times switched the plugin off and on, but without change. I also reinstalled mem_form.gz.txt

I use textpattern 4.2.0 with latest mlp and mem_form 0.8.

Offline

#86 2010-08-08 01:46:05

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 296
Website GitHub Twitter

Re: mem_form - Generic HTTP form processing

After some tests and rereading this thread …
It´s the same issue as datorhaexa already reported.
I tested version 0.8 on two installations of textpattern 4.2.0, with mlp and without, and I switched all other plugins off, reinstalled and so on, I get everytime this error message: “Textpattern Warning: tag does not exist”. What to do?

Offline

#87 2010-08-17 11:09:11

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: mem_form - Generic HTTP form processing

with this plugin, my users after registration (mem_self_register) can write articles directly from site.
I understood it right?


<txp:txp_me />

Offline

#88 2010-08-17 12:54:15

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: mem_form - Generic HTTP form processing

Katalonian wrote:

with this plugin, my users after registration (mem_self_register) can write articles directly from site.
I understood it right?

That is indeed possible, but you need one additional plugin to process the form on submission. I used mem_simple_form for that purpose; but you could also use mem_moderation with mem_moderation_article if you don’t mind moderating article submissions, or mem_public_article.

Offline

#89 2010-08-17 12:56:02

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: mem_form - Generic HTTP form processing

wow! you need to create some article for using your plugins )
I try it all! thanks! great!


<txp:txp_me />

Offline

#90 2010-10-03 15:46:54

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_form - Generic HTTP form processing

Trying to use a forum thread as a bug tracker doesn’t really work for various reasons.

  1. I don’t always get the email about the thread being updated.
  2. Different problems get interleaved.
  3. I’m forget about them and don’t re-read the older pages of a plugin thread looking for unfixed issues.

In an effort to fix this communication disconnect, I have moved all of my plugin code over to bitbucket, /Manfre/txp-plugins. I’ve enabled the issue tracker and wiki (for documentation). With this new channel of managing my plugins, I will continue to ignore issues reported in this plugin thread, but now it will be intentional instead of accidental.

Offline

#91 2012-03-20 17:40:21

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 244
Website

Re: mem_form - Generic HTTP form processing

Hello,
sorry I’m having troubles trying to make this plugin work. With this code

<txp:mem_form>
  <txp:mem_form_submit />
</txp:mem_form>

I get this error:

Textpattern Warning: Argument not specified for mem_form tag

Thanks!

Offline

#92 2012-03-21 09:08:52

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 244
Website

Re: mem_form - Generic HTTP form processing

Just found the missing thing, it’s type

Offline

#93 2012-04-12 19:02:28

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 244
Website

Re: mem_form - Generic HTTP form processing

I found just this oddity in mem_form, that is if set no label in a <txp:mem_form_checkbox /> I get <label>checkbox</label>

I can set label to “”, then create a label on my own (that’s for positioning in the page). But the tag generates a label tag as well, so that I have two labels in the end.

Am I midoing something?
Thanks

Offline

#94 2012-04-12 22:21:22

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: mem_form - Generic HTTP form processing

Can’t you use the built-in classes and/or IDs for positioning?

In my template, I have something like this:

<txp:mem_form_checkbox
	break=""
	name="myField"
	label="Check here to put a check in the checkbox"
	required="0"/>

And it generates, HTML like this:

<input type="checkbox" id="myField" class="memCheckbox " name="myField" /><label for="myField" class="memCheckbox  myField">Check here to put a check in the checkbox</label>

The multiple classes and IDs give me significant leeway for positioning.

Offline

#95 2012-04-13 08:58:25

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 244
Website

Re: mem_form - Generic HTTP form processing

Thanks John.
I have this conundrum also, with radio buttons.
This code raises error

<txp:mem_form_radio name="radio1" value="1" />
<txp:mem_form_radio name="radio1" value="2" />

Value is unknown to the plugin. How do I pass values from the radio group?
Thanksss…

Offline

#96 2012-05-03 12:19:57

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: mem_form - Generic HTTP form processing

Due to the need to upload a file with my contact form I came across mem_form. Now I am stuck and in need of some help :-)

I want to use a single form to have someone send me a form with some info and a file. I squeeze this into a misc form that I call directly from a page using the output_form tag. It does not work and I need some assistance. What I want to do is to (optionally) take a picture and the rest of the input and send it directly to me via email. I guess I need to adjust the php part, right? But how?

<txp:php>
register_callback('mem_file_form_submitted', 'mem_form.submit');
function mem_file_form_submitted()
{
	global $mem_form_values;
	dmp($mem_form_values);
	foreach($mem_form_values as $k=>$v)
	{
		// find the uploaded temp file and delete it
		if (is_array($v) && isset($v['tmp_name']) && file_exists($v['tmp_name']))
			unlink($v['tmp_name']);
	}
}
function mem_file_form($atts,$thing='')
{
	return mem_form(array('type'=>'file-form', 'enctype'=>'multipart/form-data'),$thing);
}
</txp:php>

<!-- contribute_form -->
<txp:mem_form type="form">
  <txp:mem_form_text label="Your name" />
  <txp:mem_form_email label="Your Email" />
  <txp:mem_form_text label="Your age" />
  <txp:mem_form_textarea label="Your Story" />
  <txp:mem_form_file name="myfile" label="Your picture" />
  <txp:mem_form_submit label="Send" />
</txp:mem_form>

Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

Board footer

Powered by FluxBB