User Group

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

User Group

youngism
Hello, I wanna ask something. Is it possible to show user group status (which people belong to) below their avatar/name in side profile like what that appear for administrator? so it'll be easier to differentiate between admin, member, author, etc. I think it was appeared at first but when I change the permissions it doesnt appear anymore. Help me please. Thank you ^^
Reply | Threaded
Open this post in threaded view
|

Re: User Group

Mencey Melgar
Hey there youngism

go to "See how NAML generates this page"(down-right)
-click on the green wheel(top-left)
-"search macro"
-search for "classic_big_avatar_cell"
-click on "override this macro"
-Here you can set your own avatar labels(what do you want)
here is an example:
<override_macro name="classic_big_avatar_cell" requires="node">
    <div class="avatar-outer" style="margin:.4em 0">
        <div class="avatar-inner">
            <n.owner.avatar size="big" border_class="first-font shaded-bg-color rounded"/>
        </div>
    </div>
    <div style="color:white;font-size:100%;margin:.3em 0;padding:0 .3em;border:none">
        <n.avatar_label condition="[n.owner.is_in_group group='Members'/]" label="[t][h5]Member[/h5][/t]"/> 
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum Moderators'/]" label="[t][h3]-SniPerJum-[/h3][h5]Moderator[/h5][/t]"/>
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum Admins'/]" label="[b][h3]=SniPerJum=[/h3][h4]Admin[/h4][/b]"/>
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum Full Admins'/]" label="[t][h3]-=SniPerJum=-[/h3][h4]Full Admin[/h4][/t]"/>
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum Senior Admins'/]" label="[t][h3]=·SniPerJum·=[/h3][h4]Senior Admin[/h4][/t]"/>
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum Founders'/]" label="[t][h3]-=·SniPerJum·=-[/h3][h4]Founder[/h4][/t]"/> 
        <n.avatar_label condition="[n.owner.is_in_group group='SniPerJum System'/]" label="[t][h3]-=·SniPerjum·=-[/h3][h4]Clan[/h4][/t]"/>
        <n.avatar_label condition="[n.owner.is_banned/]" label="[t]Banned User[/t]"/>
     </div>
    <n.owner.post_count/>
</override_macro>
take a look(I have some advanced config(css), but you can see that the label is different):
http://forums.6326.n7.nabble.com/Admins-on-the-jump-serv-td256.html#a268

Regards
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: User Group

Pedro
You can also take a look at, or use, the macro list_current_groups.
My test forum.