Форумы / Cotonti / Support / News not showing

gamer24.7
#1 06.05.2009 02:07
Every time i post a new page under news or edit a news page it dos'ent show up on the frontpage.I can't seem to find what the problem is...
[b][color=#000000]Click [/color][url=http://www.design-studio.netau.net][color=#EF2929][u]Here[/u][/color][/url] [color=#F57900]For All You Design [/color][color=#756745]Related Needs.[/color][/b]
aiwass
#2 06.05.2009 02:27
Go to Plugins > News > Edit (/admin.php?m=config&n=edit&o=plug&p=news)
in the first field you need to specify "Category code of the parent category" and this should be the category in which you have your recently created pages.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
gamer24.7
#3 06.05.2009 02:40
Yes i have that done correctly...
[b][color=#000000]Click [/color][url=http://www.design-studio.netau.net][color=#EF2929][u]Here[/u][/color][/url] [color=#F57900]For All You Design [/color][color=#756745]Related Needs.[/color][/b]
Lombi
#4 06.05.2009 03:27
Are your dates for the news correct? Does it start before now and end after now?
<a href="http://www.domenlo.com">Surreal Art</a>
gamer24.7
#5 06.05.2009 04:48
Yep, that was the problem...i had removed from page.add.tpl begin date and expire.

Is there a way i can remove those two lines and make all pages expire never?
[b][color=#000000]Click [/color][url=http://www.design-studio.netau.net][color=#EF2929][u]Here[/u][/color][/url] [color=#F57900]For All You Design [/color][color=#756745]Related Needs.[/color][/b]
NovoKain
#6 06.05.2009 05:24
In news.php delete or hide 2 lines:

	$sql = sed_sql_query("SELECT p.*, u.user_name, user_avatar FROM $db_pages AS p
	LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
	WHERE page_state=0 AND page_cat NOT LIKE 'system'
	/* AND	page_begin<'".$sys['now_offset']."' AND page_expire>'".$sys['now_offset']."' */
	AND page_cat IN ('".implode("','", $catsub)."') ORDER BY page_".$sed_cat[$c]['order']." ".$sed_cat[$c]['way']." LIMIT $d,".$cfg['plugin']['news']['maxpages']);

	$sql2 = sed_sql_query("SELECT COUNT(*) FROM $db_pages WHERE page_state=0
	AND page_cat NOT LIKE 'system'
/*	AND	page_begin<'".$sys['now_offset']."' AND page_expire>'".$sys['now_offset']."' */
	AND page_cat IN ('".implode("','", $catsub)."')");

AND page_begin<'".$sys['now_offset']."' AND page_expire>'".$sys['now_offset']."'
AND page_begin<'".$sys['now_offset']."' AND page_expire>'".$sys['now_offset']."'
robofreak111
#7 06.05.2009 05:42
wow, thanks novokain, this is very helpful