Jump to content

IPS Group Formatting


kekerinko

Recommended Posts

1 minute ago, Papa Smurf said:

<font color = red>    </font>

Change the 'red' the color you want to use. You change this in the groups are in the ACP.

You did not understand...
I want the color of usertitle to be equal to usergroup which certain user has thats why i need to put group formatting variable but i dont know which one is it

Edited by kekerinko
Link to comment
Share on other sites

2 minutes ago, Papa Smurf said:

So you want the display name to be the same color all around your board?

vrXg5kO.png I want Junior Member (User Title) To be same color as group color of user.

Edited by kekerinko
Link to comment
Share on other sites

1 minute ago, Papa Smurf said:

Try this file.

 

Dude i just want an Group Formatting variable, This plugin will change link and other  shit to group color which i already have, There is no way to do the thing i want than manual and i need variable of group format.

Link to comment
Share on other sites

20 hours ago, kekerinko said:

Dude i just want an Group Formatting variable, This plugin will change link and other  shit to group color which i already have, There is no way to do the thing i want than manual and i need variable of group format.

You can find the code for the member titles in the postContainer template and use this code to change it.

<div style="{{if $comment->author()->member_group_id == 4}}color: #FFF{{endif}} <!-- Change the member_group_id to the group id the user is in and change the CSS in between the IF statements -->">

 

Edited by Jeffrey
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

3 hours ago, Jeffrey said:

You can find the code for the member titles in the postContainer template and use this code to change it.


<div style="{{if $comment->author()->member_group_id == 4}}color: #FFF{{endif}} <!-- Change the member_group_id to the group id the user is in and change the CSS in between the IF statements -->">

 

Not exactly what i wanted.

{$keke = \IPS\Member\Group::load( $comment->author()->member_group_id )->formatName( $comment->author()->rank['title'] )}

This code does the job.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...