Jump to content
  • Announcements

    • -coLd-

      ATENTIE   09/07/2018

      Suntem in cautare de MODERATORI / SCRIPTERI .
    • -coLd-


      Pentru a tine deschisa comunitatea , avem nevoie de postatori RESURSE . 
Sign in to follow this  

Colored/Styled User Titles in IPS 4.1

Recommended Posts

1. Go to Admin CP -> Customization -> Themes -> YOUR THEME -> Edit HTML and CSS

2. Search the Templates Tab for -> forums -> front -> topics -> postContainer

3. Search the following code:

{{if $comment->author()->member_title && $comment->author()->member_id}}
	<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li>

and replace

<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li>


<li class='adm_{$comment->author()->member_id}'>{$comment->author()->member_title}</li>

Save the postContainer template, we are done here.

4. Go to the CSS Tab and search for core -> front -> custom -> custom.css, now add the following code/class:

.adm_1 {

and save it, voilá!

Important:  This code will color the user title of the user with the ID 1.

To give other users colored user titles you just have to create more classes in your custom.css.

Example: Morpheus want's black and has the member_id 666.



I hope this helps, btw. you can also change the member_id variable in your templates to member_group variable and give each user group a static user title color/style!

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this