I would like execute a css style but only for a specific Joomla user group. My goal was to include the php code directly inside my Joomla template.
I try to found how to do (I'm not a coder) and I make some test but without success. For example I found this code in a forum:
<?php
$user =& JFactory::getUser();
if (!$user->author) {
?>
<style>#myclass{display:none; width:0px;}</style>
<?php
}
?>
But this don't work because I want execute the style by Usergroup ID and also because this code seem to be for Joomla 1.5 and I'm under Joomla 2.5.
Any clue please ?