Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2011-09-24 19:21:45

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: mem_simple_form

Hi all.

After hundred of tests, I can’t store an email value with the default attribute. When I delete the default value attribute, my form works as expected.

Here is my recalcitrant line:

<txp:mem_form_email name="string_authorEmail" default='<txp:php> echo cbe_frontauth_whois(array('type'=>'email')); </txp:php>' max="100" required="1" class="hidden" />

Note: I have to use <txp:php> tags otherwise with normal plugin tag author’s email isn’t displayed.

Do you have any ideas how to correct this behaviour?

Cheers,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#77 2011-09-26 07:19:58

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: mem_simple_form

… Any idea? Has anyone tried to use default value with mem_simple_form plugin in order to populate a database table?


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#78 2011-09-26 08:30:56

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: mem_simple_form

Hi Patrick

I use it to populate textpatter article table without any problem!

i used it with cbe_frontauth without a problem, a code like this work :

<txp:mem_form_secret name="article_title" value='<txp:cbe_frontauth_whois type="RealName"/>' />

Cheers

Offline

#79 2011-09-26 16:14:52

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: mem_simple_form

Rabah you’re right: the use of secret tag makes the trick. I never used it before, but a very interessant plugin with lot of possibilities… Second step: I will try to add a preview before posting.

Thanks lot mate ;) Your help is much appreciated. Thanks again!

:)

Last edited by Pat64 (2011-09-26 16:31:50)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#80 2012-01-13 15:39:38

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: mem_simple_form

Hi there,

Did someone manage to use it with Radio buttons I’m having a headache at pulling the selected state of two radio buttons A and B

Here’s the little monster:

<txp:mem_form_secret name="table_gender" value="" />
<txp:mem_form_radio name="table_gender" selected="1" label="A" group='<txp:smd_bio_info items="gender" author="SMD_PRIVS:2" label="">{smd_bio_gender_chosen_1}</txp:smd_bio_info>' />
<txp:mem_form_secret name="table_gender" value="" />
<txp:mem_form_radio name="table_gender" selected="0" label="B" group='<txp:smd_bio_info items="gender" author="SMD_PRIVS:2" label="">{smd_bio_gender_chosen_1}</txp:smd_bio_info>' />

Although this will output the correct gender, the choosen state is not preserved when the form is posted…

Dammit little monsters…


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#81 2012-03-15 17:34:56

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,676
GitHub Twitter

Re: mem_simple_form

Hi all.

Do you think it is possible to create a “preview” button with mem_simple_form as the TXP commenting system offers?

Tks for your reply.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#82 2012-06-29 19:30:17

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: mem_simple_form

Hello mem_simple_form users,

Would you know if a solution exist for implementing multiple forms on one page?

mem_simple_form generates an id for the form and if you place several on one page form, all forms have the same id.

An idea? Thanks

Offline

#83 2012-08-02 15:01:17

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

Re: mem_simple_form

Jackob how you obtain

'?logged-in-user' as user login name by the variable?

Rah_function work with php function…but get_author_name is not a php function?

I don’t understand how your script work.
I hve the same problem… andi need understand the secret!

Last edited by MarcoK (2012-08-02 15:02:50)

Offline

#84 2012-08-02 15:29:39

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

Re: mem_simple_form

Ok, i found my answor by whaleen

Offline

#85 2015-02-08 12:07:41

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: mem_simple_form

does this plugin still work? I am getting a few errors on the page adding example from manfre:

Tag error: <txp:mem_simple_form table=“txp_page” id_field=“name” id_insert=“0”> -> Textpattern Error: Unknown column ‘submit’ in ‘field list’ while parsing form default on page archive

Tag error: <txp:mem_simple_form table=“txp_page” id_field=“name” id_insert=“0”> -> Warning: mysql_error() expects parameter 1 to be resource, boolean given while parsing form default on page archive

Tag error: <txp:mem_simple_form table=“txp_page” id_field=“name” id_insert=“0”> -> Textpattern Notice: Failed to store data to table. while parsing form default on page archive

Textpattern version: 4.5.7 (r5900)

Offline

#86 2015-02-09 12:59:38

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: mem_simple_form

can’t seem to get either mem_simple_form or mem_public_article working. Does anybody have any ideas?

Offline

#87 2015-02-09 16:42:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: mem_simple_form

mmelon wrote #288096:

does this plugin still work?

I believe so, but haven’t tried it recently.

Regarding your specific error, have you tried id_insert="1"? I’m not sure how you’re using this, but the txp_page’s primary key is not generated by Txp: it’s the name you supply. From what I can gather from the docs, you only set this attribute to 0 if the key field you nominate is an auto_increment.

Also check and double check your form fields in the container. They must adhere to the correct type_name convention or they won’t get inserted. And if you have a submit button in the form and you’ve renamed it, you’ll need to use the ignore_fields attribute to tell the plugin the name of your submit button. By default it excludes submit buttons named with the default mem_form_submit: if you’ve altered that, it’s probably trying to insert your submit button data into the table, when that column doesn’t exist.

Not sure if any of those will fix the issue, but they might be worth a shot.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#88 2015-02-09 21:40:09

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: mem_simple_form

thanks stef i will try your suggestions. I just assumed that the example given by the plugin author would still work. I feared the worst when it spat out so many errors.

Thanks for the help.

Mike

Offline

#89 2015-02-12 23:56:20

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: mem_simple_form

Hi,

I use with success mem_simple_form in a txp 4.5.1 installation (yes, I now, need a upgrade).
It’s for my personnal project manager (more info in french).
A Git repository exist in you want see how I use mem_simple_form for create new articles from front-end.

Offline

#90 2015-04-13 10:46:39

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: mem_simple_form

Hello,

Maybe this is trivial, but… Does anyone know if it’s possible to send the content of mem_simple_form also by email? I managed to save the form in a txp db table, but I’d also like it to be notified by email.

Thanks a lot!

Offline

Board footer

Powered by FluxBB