Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-16 00:24:52

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

Accepting user-submitted content from the public side of the site

Hi!

I’m working on a site that takes user-submitted content from input on the public side of the site.

  1. I’m using ign_password_protect v0.5b9 to hide the submission forms behind a login.
  2. mem_self_register 0.9.3 provides users with a means of getting a user account to log in with.
  3. My input forms use mem_form 0.5.4 to generate secure HTML forms using tags similar to zem_contact_reborn. But by itself, those forms don’t do anything; you need another method to process the forms. That’s where mem_simple_form comes in.
  4. mem_simple_form 0.3 processes the form input, sending it to specific fields in the database on submit.

This combination of plugins has gotten me 90% of the way there— my public side input form now allows users to create new articles without a hitch.

What I need now is a form that enables users to create a new category, and immediately create a new article with some user-selected data associated with that category. I have the form that creates a new category, and I can get it to load a new article input form that includes the new category as a hidden field, but the new input form does not accept input: it redirects to the initial form on submit, without adding an article to the database.

I described the issue more fully under the mem_simple_form thread where you can see the code I am using — but I haven’t heard from Manfre (the prolific developer who makes the mem_plugins) in three months— I understand he’s pretty busy with xpattern and other projects.

I’m in rather dire need of help within the next two weeks, and I’d be super grateful to anyone who might suggest any steps I could take to resolve this.

Please let me know any ideas you may have. Many thanks!

Offline

#2 2009-07-16 08:36:31

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Re: Accepting user-submitted content from the public side of the site

I can’t help you with creating categories, but I have been working on a similar project and have my users submit keywords.

If you use tru_tags it’s a breeze.

Offline

#3 2009-07-16 20:32:37

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

Re: Accepting user-submitted content from the public side of the site

Thanks, amordecosmos— I’d be interested in seeing your code. The site I’m working on already makes extensive use of tags, and allowing users to add tags would be a great feature.

But for this specific feature, I need to use the category field. Creating the category is actually working fine— it’s the second step that is failing to post.

I simplified my code a whole lot today and I posted the results here.

I’m no longer using the success_form to load a second instance of mem_simple_form, but the second form still isn’t adding a record to the database.

Thanks again for your feedback! Please let me know if you have any other ideas!

Offline

#4 2009-07-17 17:55:25

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

Re: Accepting user-submitted content from the public side of the site

Booyah. This issue is resolved— Jakob’s pointed questions helped expose the problem. Anyone looking into this in the future can find my solution here.

Woo!

Offline

Board footer

Powered by FluxBB