PDA


View Full Version : Reply/Replies displayed wrongly in news bit


Spinball
12-01-2005, 02:21 AM
Hi folks.
Please look at the attached screen capture. The thread with lots of views shows 'Reply' rather than 'Replies'.

Brian
12-01-2005, 05:37 PM
Looks like the comma in the number is throwing off the count. If you'll look in your modules/news.php file for this code:
$news = process_thread_array($news, '', $mod_options['portal_news_showicon']);

Add this right above:
$news['reply_noformat'] = $news['replycount'];

Then look in your adv_portal_newsbits template for this code:
<if condition="$news['replycount'] == 1">

And replace it with this:
<if condition="$news['reply_noformat'] == 1">

Then that should take care of the problem.

Spinball
12-02-2005, 05:15 AM
That did the trick - thanks