submitcontent question

chaos 16 Feb, 2009
Hi one and all,

have been using chrono for a while now but only for form submissions to email addys, however, on one site it has now become a requirement to allow users (non of whom register) to submit articles to the site.

I've looked through the forum for answers to this but can't find a specific answer.

The form we currently have requests the following text fields, your group, your name, your email, article title, and article content, we also have a drop down box from which users select the category of the site they wish the article to go into and then we have 5 img upload fields.

My question is how do I edit this form so that on completion and submission the article and images are saved to the site (in unpublished mode) and we get an email to advise of the article submission.

I've had a look at the submitcontent download but i'm still not 100% sure what i need to be doing. The existing form code is below. Any and all help appreciated

Ian

[attachment=0]form.txt[/attachment]
Max_admin 16 Feb, 2009
Hi Ian,

Please look at the submitcontent form "onsubmit code section" and the "DB connection" tab, this is how the data is going to the content table!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
chaos 17 Feb, 2009
Hiya,

thanks for the reply. Actually spent a few hours playing last night and managed to get it to do what i wanted it to. Just need to find out how to add the images uploaded into the content upon submission now.

Iain
Max_admin 18 Feb, 2009
Hi Iain,

you may need to run the posted text through some PHP code with a str_replace function to insert the images, not easy and need to be planned based on your application!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.