Posted on: 12/30/03 10:45am
By: pantman
Hi everyone. Having a few issues keeping the front page clean. When I don't have anything submitted to the front page apart from a static page and post all news with "Show only in topic" I always get the "No news to display" block after the static.
Any ideas what code I have to wip out of the index.php to get it to work. Had a poke around but it just keeps screwing up.
Any general pointers would be appreciated.
Thanks
Pantman
Re:Only showing a static page for the front page
Posted on: 12/30/03 10:53am
By: Dirk
Near the end of index.php, there's a comment stating "no stories to display". The following COM_startBlock / COM_endBlock pair (and the code in between) is responsible for the "no stories to display" message.
bye, Dirk
Re:Only showing a static page for the front page
Posted on: 01/03/04 04:31am
By: pantman
Thanks for that Dirk. For anyone thats interested and wants to save the 2 minutes it takes to figure out the lines you need to comment out it's the ones below
$display .= COM_startBlock ($LANG05[1], '',
COM_getBlockTemplate ('_msg_block', 'header'

) . $LANG05[2];
if (!empty($topic)) {
$topicname = DB_getItem ($_TABLES['topics'], 'topic', "tid='{$topic}'"

;
$display .= sprintf ($LANG05[3], $topicname);
}
$display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'

);
Thanks
Pantman