Jump to content

Removing group names from postContainer


Vidsify

Recommended Posts

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

  • 2 weeks later...

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 by Jeffrey
  • Like 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

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