Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
- I’m using ign_password_protect v0.5b9 to hide the submission forms behind a login.
- mem_self_register 0.9.3 provides users with a means of getting a user account to log in with.
- 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.
- 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
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
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
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