Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-17 11:45:28

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

mem_form

Hi, I need a plugin to add news to the site for normal users, ie, any user accessing the site could add news

So I was advised to plug mem_fom but this plugin I installed one more thing, such

mem_admin_parse
mem_form
mem_moderation
mem_moderation_article
mem_moderation_image

and now I follow the instructions http://manfre.net/project/645/mem-admin-parse

There is a line <txp:mem_gps name=“argname” wraptag=“div” class=“myclass” />

I do not understand where it needs to prescribe a form that appeared on the site

Offline

#2 2009-12-22 21:48:08

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

Re: mem_form

Help me please

Offline

#3 2009-12-22 22:03:27

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: mem_form

Have you posted in the mem_form thread? That’s the best place to start if you are looking for support with that plugin.

The mem_gps tag is not what you are looking for I think. Can you describe your needs better?

Offline

#4 2009-12-24 20:33:11

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

Re: mem_form

I need that to people who visit my site to add news without regestatsii

That is on the site must be some form where the user enters their name, news, and the very news that’s all

Thanks in advance

Last edited by Yaroslav (2009-12-24 20:33:24)

Offline

#5 2009-12-25 17:50:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: mem_form

Yaroslav, beware of spammers!

Offline

#6 2009-12-25 23:51:39

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

Re: mem_form

You that any advice on my question?
Thanks for the tip!

Offline

#7 2009-12-29 09:43:42

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

Re: mem_form

Help please

Offline

#8 2009-12-29 16:56:51

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: mem_form

Yaroslav, what do you need help with? Have you installed the plugins you mention in the first thread?

For a basic site, you will need ign_password_protect, mem_form (or mem_simple_form – I have not used it), mem_moderation, mem_moderation_article and mem_admin_parse.

There are a few things to do – create the form which will be used for user registration (ign_password_protect), the form for adding the news stories (mem_form and mem_moderation) and then in your page template where the news form is add some @<txp:ign_if_logged_in>protected content here</txp:ign_if_logged_in>.

As an example, the following is created by the mem_moderation_image plugin on installation:

<txp:mem_moderation_image_form>
	<txp:mem_form_text name="article_title" label="Title" break=""/>
	<txp:mem_form_select_category name="article_category1" label="Category" break=""/>
	<txp:mem_form_textarea name="article_body" label="Body" break=""/>

	<txp:mem_form_file name="thefile" label="Image" break="" />
	<txp:mem_form_select_category type="image" name="category" label="Category" break="" />
	<txp:mem_form_text name="caption" label="Caption" break="" />
	<txp:mem_form_text name="alt" label="Alt" break="" />

	<txp:mem_form_textarea name="note" label="Notes for the Moderator (optional)" required="0" />
	<txp:mem_form_submit name="mem_moderation_save" label="Save" />
</txp:mem_moderation_image_form>

If you check the mem_form plugin help you will see the list of tags at your disposal. The above form needs to be edited – change <txp:mem_moderation_image_form> to <txp:mem_form>.

And this is an example of a registration form using mem_self_register which you can use instead of ign_password_protect for user registration. In fact its compatible with ign_password_protect and can be used together.

<txp:mem_self_register_form label="Register" login_url="/yourpage/" subject="Your Login Info" email_form="self_register_email" thanks_form="self_register_success">

<txp:mem_form_text name="RealName" label="Full Name" break="" />
<txp:mem_form_text name="name" label="Username" break="" />
<txp:mem_form_email name="email" label="Email" break="" />

<txp:mem_form_submit label="Register" button="1">Register</txp:mem_form_submit>
</txp:mem_self_register_form>

I am planning on writing a TXP Tip on this subject in the near future but hopefully this will get you going.

Offline

#9 2009-12-29 21:36:51

Yaroslav
New Member
Registered: 2009-12-17
Posts: 6

Re: mem_form

THANK try.

Offline

Board footer

Powered by FluxBB