Plugging Commenters Hack

Here's an easy way to thank your commenters: an auto plug! It will appear underneath your article.

Open the inc folder and find the functions.inc.php page. Insert this code at the end of the document, before the last ?>.



Now, open shows.inc.php.

Find this code by pressing CTRL + F.



Add this code right below that:



On the same page, find this code:

$output = $template_active;



Add this code right below that.



Log into CuteNews (ex: yoursite.com/cutenews/index.php). Go to Options >> Edit Templates >> Active News and Full Story. Add this code in your template:

[commenters-header]{commenters:5: - }[/commenters-header]



You can change the number 5 to the number of commenters you want listed per line. You can change the dash - to the symbol you want to appear between commenters' names.

For example, that would look something like this:

Alexa - Brandon - Carly - David - Elena
Francesca - Genelle - Haylee - Jess - Kayla



Now, some people will get an error message saying that the comments.txt file could not be found. In that case, change this code:

$alle_comments = file("./data/comments.txt");



To this one:

$alle_comments = file("cutenews/data/comments.txt");