Adding classes to usernames depending on usergroups - Joomla! Forum - community, help and support


hello,

is possible in joomla backend modify code in such way add class usernames depending on usergroups?


i'll demonstrate meant this:

i use joomla few more extensions such easysocial , kunena forum. usernames rendered on site this:

code: select all

<a alt="administrator" href="/community/profile/560-administrator">administrator</a>

now if alter backend code appends class depending on usergroup user belongs to, example here administrator member of "super administrator" usergroup , custom named "team1" usergroup. code go through usergroups assigned user , append classes accordingly:

code: select all

<a class="super-administrator team1" alt="administrator" href="/community/profile/560-administrator">administrator</a>

in case append 2 classes since user belongs 2 usergroups. possible? want able use custom css styling usernames each usergroup have... why need applied across whole joomla website.

i complete noob php don't know start here, highly appreciated.

well comes in handy know little php. browsing around here can bring somewhere...

this page explains more how user details: http://docs.joomla.org/jfactory/getuser
this thread on j1.6 may shine more light on issue.. may complicated.. start , may give hints use search terms...





Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached