Thanks for the e-mail remind. I forgot about this thread.
open components/com_comment/joscomment/comment.class.php
Find the function form_htmlCode() around line 2851.
uncomment the following code
if ((!$user->username && $this->_only_registered)) {
$html = $this->onlyRegistered();
/* needed informations but hidden : */
$html .= $this->disable_form($hidden);
return $html;
}
like this:
// if ((!$user->username && $this->_only_registered)) {
// $html = $this->onlyRegistered();
// /* needed informations but hidden : */
// $html .= $this->disable_form($hidden);
// return $html;
// }
After that code add:
if($user->usertype != 'Super Administrator') {
$html = '<div class="onlyregistered">Only administrators can write comments</div>';
/* needed informations but hidden : */
$html .= $this->disable_form($hidden);
return $html;
}
This should do the trick.