1 (edited by 2008-08-23 17:49:35)

Topic: [HACK] Show message when no comments posted

Name: message when article has no comments
Author: Jetski
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Like the title says.
Instructions:
1. Open up shows.inc.php in the inc folder of cutenews for editing and find:

//----------------------------------
// Prepare the Comment Pagination
//----------------------------------

$prev_next_msg = $template_comments_prev_next;

3. Above the code shown above paste in the code below

if(count($individual_comments) < 2){ echo "<div align=\"center\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; padding: 5px;\">[b]There are no comments for this entry yet.[/b]</div>"; }

4. Now save the file and upload to your server or wateva.

Note: You can edit the style of the DIV Tag to your needs.

2 (edited by 2005-01-15 13:06:57)

Re: [HACK] Show message when no comments posted

Credits to Jetski - A slight fix to the above, nothing significant, I modified the above to work with the Fork... I have not tested it yet so please, someone, test this and get back to me!

THIS IS THE FIX FOR AJ-FORK v.1xx

1. Open up shows.inc.php in the inc folder of cutenews for editing and find:

$nextcstart = $cstart + $cnum;

3. Above the code shown above paste in the code below

if(count($individual_comments) < 2){ echo "<div align=\"center\" style=\"border-top: 1px solid #000000; border-bottom: 1px solid #000000; padding: 5px;\">[b]There are no comments for this entry yet.[/b]</div>"; }

4. Now save the file and upload to your server or wateva.

Note: You can edit the style of the DIV Tag to your needs.