Create new records in jos_content table

vigou1234 23 Dec, 2008
Hello,

I need to make a form that will ask user info (title, text, meta ...) in order to create a new content article.
In fact I will ask image, files to attach to make a customized content text.

My question is how to create a new record with my info in jos_content table ?

Thanks by advance.

Gael
GreyHead 23 Dec, 2008
Hi Gael,

Try the ChronoForms content plugin first. That will let you add input from a form into the content table.

Bob
Max_admin 23 Dec, 2008
Hi Gael,

Bob means the content form pack at Downloads/CF Applications/

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vigou1234 24 Dec, 2008
Thanks a lot that is exactly what i need, also I got a new problem:

I ask for an image (local path) to upload, and a file to upload,

I have to include these variables in my html template and then insert this one in jos_content.fulltext.
My idea is to make a variable like $fulltext='<p><img src="images/stories/'.IMAGE' /></p>'
and then $_POST=$fulltext

Also how can I invoke variable found in the form, in fact i want my piicture be upload in a specific path and then check the name of this picture in order to add it in fulltext

Thanks by advance
GreyHead 24 Dec, 2008
Hi Gael,

Check out the recent posts in the forums. I've posted a code snippet to relocate uploaded files and Emmanuel posted a whole PlugIn to do image re-sizing and re-location. One of these should do what you need.

And your code for posting images looks as though it will work OK.

Bob
This topic is locked and no more replies can be posted.