kekerinko 0 Posted August 28, 2018 Share Posted August 28, 2018 Hello im trying to change usertitle color to a color of usergroup but idk what variable should i pull any ideas? Link to comment Share on other sites More sharing options...
Head Guru 106 Posted August 28, 2018 Share Posted August 28, 2018 <font color = red> </font> Change the 'red' the color you want to use. You change this in the groups are in the ACP. Head Guru - Personal Blog: https://www.zacdrayson.com |Business Website: https://www.hydrawebservices.com Link to comment Share on other sites More sharing options...
kekerinko 0 Posted August 28, 2018 Author Share Posted August 28, 2018 (edited) 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 August 28, 2018 by kekerinko Link to comment Share on other sites More sharing options...
Head Guru 106 Posted August 28, 2018 Share Posted August 28, 2018 So you want the display name to be the same color all around your board? Head Guru - Personal Blog: https://www.zacdrayson.com |Business Website: https://www.hydrawebservices.com Link to comment Share on other sites More sharing options...
kekerinko 0 Posted August 28, 2018 Author Share Posted August 28, 2018 (edited) 2 minutes ago, Papa Smurf said: So you want the display name to be the same color all around your board? I want Junior Member (User Title) To be same color as group color of user. Edited August 28, 2018 by kekerinko Link to comment Share on other sites More sharing options...
Head Guru 106 Posted August 28, 2018 Share Posted August 28, 2018 Try this file. Head Guru - Personal Blog: https://www.zacdrayson.com |Business Website: https://www.hydrawebservices.com Link to comment Share on other sites More sharing options...
kekerinko 0 Posted August 28, 2018 Author Share Posted August 28, 2018 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 More sharing options...
Jeffrey 366 Posted August 28, 2018 Share Posted August 28, 2018 (edited) 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 August 28, 2018 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 More sharing options...
kekerinko 0 Posted August 28, 2018 Author Share Posted August 28, 2018 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 More sharing options...
Recommended Posts