Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:26 pm EST
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
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
18
14
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
bye, Dirk
22
14
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') . $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
$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
14
13
Quote
All times are EST. The time is now 04:26 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