Jump to content

  •  

Staff applications open!

We are looking for dedicated members to join the Community Team to help enforce the community rules and make IV a better place for everyone.
Do you think you have what it takes to join? Apply here: http://invision-viru...f-applications/
IV Management

Group icon per theme


  • Please log in to reply
No replies to this topic

#1 Kriax

Kriax

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 20 December 2018 - 05:31 PM

Hello!

An idea came to my mind this morning :huh: .
Currently, ipboard does not allow us to change in the ACP the group icon per theme. I mean, for the same group  it's icon will be different on theme 1 and them 2.

I've modified my groups color and i can use different ones per theme in the custom.css like this :

.staff {
    background: url(https://i.imgur.com/1QJprWI.gif);
    color: white !important;
    text-shadow: 0px 0px 1px #0a0a0a, 0px 0px 1px #ffffff, 0px 0px 1px #ffffff, 0px 0px 1px #ffffff;
    background-position: right 0px;
}

and in your user group name : <b><span class='staff'> .

I've found the code line in PostContainer :


{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
<li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
{{endif}}

Is it possible to set up a way to get the custom group icon in custom.css in this line ?

I apologize if i'm not in the correct forum, it can give a hook creation idea.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users