View Single Post
Old 17.10.2005, 13:46   #1 (permalink)
falocify
Baby Mamber
 
Join Date: Jul 2005
Posts: 5
falocify is on a distinguished road
Default Submit Content Automatically Publish and Show on Frontpage

Sorry for the long title, but this does two things.

I wanted it to be easy for those submitting content as possible, so I made it so they will not have to got to the Publishing tab and change to Published and check Show On Frontpage.

go to www/components/com_content_content.php

find:
Code:
} else {
	$row->sectionid 	= $sectionid;
	$row->version 		= 0;
	$row->state 		= 0;
	$row->ordering 		= 0;
	$row->images 		= array();
	$row->publish_up 	= date( 'Y-m-d', time() );
	$row->publish_down 	= 'Never';
	$row->creator 		= 0;
	$row->modifier 		= 0;
	$row->frontpage 	= 0;
}
change to:
Code:
} else {
	$row->sectionid 	= $sectionid;
	$row->version 		= 0;
	$row->state 		= 1;
	$row->ordering 		= 0;
	$row->images 		= array();
	$row->publish_up 	= date( 'Y-m-d', time() );
	$row->publish_down 	= 'Never';
	$row->creator 		= 0;
	$row->modifier 		= 0;
	$row->frontpage 	= 1;
}

Last edited by falocify; 18.10.2005 at 10:29.
falocify is offline   Reply With Quote
Sponsored Links