1 (edited by 2008-08-02 16:21:37)

Topic: [HACK] Display a Message when there are no Posts

Name: No News Message
Author: NyNe
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: When there are no news articles ( or just no within a category ) a message is shown.
open ./inc/shows.inc.php

$used_archives[$archive] = TRUE;

add above:

if ($output == "") { echo "Nothing To Display"; }

simple and easy

all it will do is display some text when the category is empty or when there are no posts to be displayed