Welcome to Geeklog, Anonymous Monday, April 29 2024 @ 06:35 pm EDT

Geeklog Forums

No News Notification


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.
 Quote

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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
See here.

bye, Dirk
 Quote

cybersnac

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

All times are EDT. The time is now 06:35 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content