Members: 16,996
Threads: 38,868
Posts: 159,480
Online: 59

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 17.10.2005, 12:46   #1 (permalink)
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 09:29.
falocify is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 18.10.2005, 06:49   #2 (permalink)
Baby Mamber
 
Join Date: Jul 2005
Posts: 5
falocify is on a distinguished road
Default Re: Submit Content Automatically Publish and Show on Frontpage

this code works, please disregard the previous information, sorry

Last edited by falocify; 18.10.2005 at 09:34.
falocify is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21.10.2005, 03:09   #3 (permalink)
Expert Mamber
 
quiquedcode's Avatar
 
Join Date: Jun 2004
Location: San Juan, Argentina
Posts: 306
quiquedcode will become famous soon enough
Send a message via ICQ to quiquedcode Send a message via MSN to quiquedcode Send a message via Yahoo to quiquedcode
Default Re: Submit Content Automatically Publish and Show on Frontpage

useful stuff...
nice tip
__________________
Enrique Becerra
MSN: qbecerra @ hotmail.com
ICQ: 18048153
www.beza.com.ar

"If you pay peanuts, you will get monkeys!" - ChicoMendez
quiquedcode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show content in another module? meden Component 'How Do I' Questions 2 30.03.2005 02:03
writing content goatlady Mambo 4.5.1 'How Do I' Questions 9 01.02.2005 00:59
How do I publish content categories on the front page? rawex Mambo 4.5.1 'How Do I' Questions 3 12.12.2004 05:31
Content Structuring Basics for Newbies, MOS 4.5 mamster Mambo 4.5 'How Do I' Questions 9 01.09.2004 04:18
Frontpage -> Having the More links include their publish date noletam Mambo 4.5 'How Do I' Questions 6 27.04.2004 13:55


All times are GMT +2. The time now is 19:43.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.