Jump to content

IPS 4.2 Display Name Formatting


ThatGamerBlue

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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