Forums

[SOLVED] Auto publish with submit_content

surabaya 19 Feb, 2010
Hi!

I'm trying out chronoform to see if it meet my needs. So far it looks good :-) Just some minor things I don't really get..

Is it possible to auto publish an article submitted with submit_content? And if so - how?

Any help would be appreciated
GreyHead 19 Feb, 2010
Hi surabaya,

Yes, you need to set the value of the correct column in the jos_content table. I don't remember what it is offhand.

Bob
surabaya 19 Feb, 2010
Hi bob!

Thanks for your quick reply! i actually figured it out my self (the answer was much closer than i thought..)

In the "On Submit code - after sending email:" I've placed the code
<?php
$_POST['catid'] = '32';
$_POST['id'] = '';
$_POST['sectionid'] = '7';
$_POST['state'] = '0';
$_POST['created'] = date("Y-m-d H:i:s");
?>


All I had to do was change STATE=0 to STATE=1
This topic is locked and no more replies can be posted.