Jump to content

IPS 4.2 Display Name Formatting


Recommended Posts

Posted (edited)
32 minutes ago, 3qTQlBnsOsyfetvA said:

Been googling for about 4 days now, but everything I find points to Group Formatting which only formats the group name, not the user name.

Screenshot of what I mean:

https://i.imgur.com/xh2AQvC.png

Am I just dumb or is this just impossible?

Also IDK if this is the right section so if an admin/mod wants to move it to the right one pls do :p

Doesn't this do the trick: https://invisioncommunity.com/files/file/7589-group-color-on-user-link/

Alternative try this out, not sure if it still works with the latest 4.2.4/5 version of IPS Community Suite tho:

Step 1:

Go to the theme you want to implement the fix to, and select the HTML Template "userLink"

its found under core > front > global

Step 2:

Replace the entire code in "userLink" with the following below

{{if $member->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }}<a href='{{if $warningRef}}{$member->url()->setQueryString( 'wr', $warningRef )}{{else}}{$member->url()}{{endif}}' data-ipsHover data-ipsHover-target='{$member->url()->setQueryString( array( 'do' => 'hovercard', 'wr' => $warningRef, 'referrer' => urlencode( \IPS\Request::i()->url() ) ) )}' title="{lang="view_user_profile" sprintf="$member->name"}" class="ipsType_break">{$member->group['prefix']|raw}{$member->name}{$member->group['suffix']|raw}</a>{{endif}}

and your done just reload your forum.

Edited by Alen
  • Like 1
Posted (edited)
42 minutes ago, Alen said:

Doesn't this do the trick: https://invisioncommunity.com/files/file/7589-group-color-on-user-link/

Alternative try this out, not sure if it still works with the latest 4.2.4/5 version of IPS Community Suite tho:

Step 1:

Go to the theme you want to implement the fix to, and select the HTML Template "userLink"

its found under core > front > global

Step 2:

Replace the entire code in "userLink" with the following below


{{if $member->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }}<a href='{{if $warningRef}}{$member->url()->setQueryString( 'wr', $warningRef )}{{else}}{$member->url()}{{endif}}' data-ipsHover data-ipsHover-target='{$member->url()->setQueryString( array( 'do' => 'hovercard', 'wr' => $warningRef, 'referrer' => urlencode( \IPS\Request::i()->url() ) ) )}' title="{lang="view_user_profile" sprintf="$member->name"}" class="ipsType_break">{$member->group['prefix']|raw}{$member->name}{$member->group['suffix']|raw}</a>{{endif}}

and your done just reload your forum.

I love you.

For PPL googling, I used the plugin.

Edited by 3qTQlBnsOsyfetvA

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...