cybersnac

Anonymous
I'm trying to get rid of the notification that there is no news to be displayed when there is no news in a topic. The only purpose I need this for is because I want the topics to look more like a standard web page where if there's nothing on the page it will be blank.

Can anyone help me with this?

Thanks in advance.

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
in index.php:

Text Formatted Code
 else { // no stories to display
    $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'));

    $display .= PLG_showCenterblock (3, $page, $topic); // bottom blocks
}
 


Change that block of code to display whatever you want when there are no stories.

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
See here.

bye, Dirk

cybersnac

Anonymous
Thanks much. I really have no idea how to find my way around php code yet. Thanks for the help