4
In index.php after (line 133)
$arr_cat[$i]['title'] = $title;
add this lines
if (in_array($cat_id, $lastchildren)) {
$arr_cat[$i]['nb'] = (array_key_exists($cat_id, $nbadspercat)) ? "(".$nbadspercat[$cat_id].")": '';
$arr_cat[$i]['new'] = (array_key_exists($cat_id, $newads)) ? $newads[$cat_id]: '';
}
and in your template catads_index.html after
<a href ="<{$cat.link}>"><{$cat.title}>a>
insert
<{$cat.nb}>
<{if $cat.new > 0}>
<img src="<{$xoops_url}>/modules/catads/images/new_green.gif">
<{/if}>