Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 02:39 pm EDT

Geeklog Forums

Only showing a static page for the front page


Status: offline

pantman

Forum User
Newbie
Registered: 12/29/03
Posts: 2
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

pantman

Forum User
Newbie
Registered: 12/29/03
Posts: 2
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'Wink) . $LANG05[2];
if (!empty($topic)) {
$topicname = DB_getItem ($_TABLES['topics'], 'topic', "tid='{$topic}'&quotWink;
$display .= sprintf ($LANG05[3], $topicname);
}
$display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'Wink);


Thanks
Pantman
 Quote

All times are EDT. The time is now 02:39 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