Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
Re: mem_form - Generic HTTP form processing
Trying to use a forum thread as a bug tracker doesn’t really work for various reasons.
- I don’t always get the email about the thread being updated.
- Different problems get interleaved.
- 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
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
Re: mem_form - Generic HTTP form processing
Just found the missing thing, it’s type
Offline
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
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
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
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 theme • Minimum 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