Vidsify 0 Posted July 18, 2018 Share Posted July 18, 2018 Hello, I wanting to know how you can change the Group Title in the postContainer for certain groups only mainly staff who will have a Group Icon. I know how to remove it completely by removing: <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> How could I edit this so its only removed for select groups who have a Group Icon. If a group doesn't have an icon I would like it to remain. Thanks in advance Link to comment Share on other sites More sharing options...
Jeffrey 366 Posted July 30, 2018 Share Posted July 30, 2018 (edited) Replace: <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> With: {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} {{else}} <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{endif}} Then only give staff members group icons. Edited July 30, 2018 by Jeffrey 1 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...
Recommended Posts