Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#97 2012-06-28 11:25:03
- tom1
- Member
- Registered: 2009-03-20
- Posts: 36
Re: mem_form - Generic HTTP form processing
has anybody made a form which would add multiple articles into TXP from public side? Probably could use mem_moderation_article also. I’ve done quick tests with raw php parsing the form and inserting everything to txp_moderation, but i’d prefer a bit cleaner way, if its possible :)
futher more, any experiments posting data with AJAX?
Last edited by tom1 (2012-06-28 13:57:18)
Offline
Re: mem_form - Generic HTTP form processing
I am using mem_form_text and mem_form_textarea to render fileds.
Now, I am trying to get placeholder=“some Text” into the fields.
<input type="text" placeholder="Fill me …">
Is that possible?
Offline
Re: mem_form - Generic HTTP form processing
If it’s not possible natively, you can alter any attribute with etc_query
:
<txp:etc_query data='<txp:mem_form_textarea label="Your Story" />'
replace="//textarea@@placeholder=Fill me..." />
Online
#100 2015-09-16 13:50:08
Re: mem_form - Generic HTTP form processing
Nice plugin. I see, it can be come in quite handy.
Unfortunately, I am receiving an error:
Tag error: <txp:etc_query data=’<txp:mem_form_textarea label=“Your Story” />’ replace=”//textarea@@placeholder=Fill me…” /> -> Warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given while parsing form None on page add
I am running Textpattern 4.5.7.
Offline
#101 2015-09-16 13:53:36
Online
#102 2015-09-16 14:15:05
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: mem_form - Generic HTTP form processing
etc wrote #294894:
Unfortunately, it needs php 5.3 at least.
If that’s not an option, mjut, I think I remember using rah_replace for adding placeholder values.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#103 2016-04-24 08:22:38
Re: mem_form - Generic HTTP form processing
Hi Guys,
need to have a hint if possible.
I want to use mem_form to collect data that serve to generate a pdf document using dompdf, but the constraint is the url that used to generate the pdf is different from the form url, i thinked to use the redirect option of mem_form, but then how to get the data?
Right now i use a normal form putting the pdf url on the action, and using $_POST array to retreive data.
Thanks for your hints if any.
Offline
#104 2020-12-20 16:33:22
- ovekaaven
- New Member
- Registered: 2017-02-27
- Posts: 2
Re: mem_form - Generic HTTP form processing
The download links for this have been broken for a while. Is there a current alternative? I just need something to handle the basics of web security for me, such as nonces to prevent cross-site attacks.
The only thing I’ve found so far in the way of alternatives is com_connect, where it might be possible to override the delivery callback and e.g. look at the subject to figure out which form was submitted and handle it accordingly, I might do that if necessary, but obviously a proper form plugin would be preferable.
Last edited by ovekaaven (2020-12-21 19:44:52)
Offline
#105 2020-12-20 18:23:08
Re: mem_form - Generic HTTP form processing
I have a copy I’m hacking for recent versions of Textpattern. I’ll try and dig it out today or tomorrow and get it to you.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#106 2021-08-15 14:10:32
- peterj
- Member
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 99
Re: mem_form - Generic HTTP form processing
Hi Bloke,
did you happen to get that update done? I saw it on your github but overlaying that php over 0.8.4 didn’t work out too well!
Peter
Offline
#107 2022-11-14 14:51:14
Re: mem_form - Generic HTTP form processing
Bloke wrote #327704:
I have a copy I’m hacking for recent versions of Textpattern. I’ll try and dig it out today or tomorrow and get it to you.
@bloke Is it possible to get a copy? I am updating a very old textpattern based website and the public forms enabled over memform/mem_public_article were a key feature.
This would be a great help, thanks!
Peter
Last edited by Pemischl (2022-11-14 14:51:35)
Offline
#108 2022-11-14 22:07:19
Re: mem_form - Generic HTTP form processing
There’s this mem_form on bloke’s GitHub account. Updated end of Dec 2020 which would match his post. peterj suggests it may still have problems but you could give it a whirl. mem_simple_form was a separate plugin, though.
EDIT: There is now etc_post / forum thread which may be a good replacement for the mem_plugins.
TXP Builders – finely-crafted code, design and txp
Offline