Preprocess functions will allow you to change the text of the link as well. Call devel module's dpm() function to inspect the links array in the preprocess function <a href="http://drupalcontrib.org/api/function/dpm">http://drupalcontrib.org/api/function/dpm</a>. Change the 'title' attribute of the link depending on $node->comment_count.<br>
<br>dpm() output: <a href="http://imagebin.ca/view/WdTNRdD.html">http://imagebin.ca/view/WdTNRdD.html</a><br><br><br><div class="gmail_quote">On Thu, Nov 18, 2010 at 2:10 PM, Salvatore De Paolis <span dir="ltr"><<a href="mailto:iwkse@gmx.com">iwkse@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On Thu, 18 Nov 2010 13:21:48 -0700<br>
<div class="im">Carl Wiedemann <<a href="mailto:carl.wiedemann@gmail.com">carl.wiedemann@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> // Add to particular link class.<br>
> if (empty($node->links['comment_comments']['attributes']['class'])) {<br>
> $node->links['comment_comments']['attributes']['class'] = $myclass;<br>
> }<br>
> else {<br>
> $node->links['comment_comments']['attributes']['class'] .= ' ' .<br>
> $myclass;<br>
> }<br>
><br>
> // Reformat all links<br>
> $vars['links'] = !empty($node->links) ? theme('links', $node->links,<br>
> array('class' => 'links inline')) : '';<br>
> }<br>
> // END<br>
<br>
</div>Maybe I am misunderstanding it or/and I did not explain good.<br>
Is not it supposed to show the text "no comments" when there are not<br>
comments and instead when some comments it shows the text together with<br>
the icon?<br>
I want something different, when no comments, it shows no text but only<br>
the icon. When some comments, it shows both text and icons.<br>
</blockquote></div><br>