Jump to content
Sign in to follow this  
IPBDesign

Group Color on User Link

Recommended Posts

IPBDesign    122
IPBDesign

Please login or register to see this link.



Please login or register to see this link.

Group Color on User Link


This plugin forces user links to display member group color/formatting.

This applies in all places where the \IPS\Member object is used to produce links to a member.

With Version 3, this plugin now supports Search and Stream results with some caveats. Any changes to the Core - System - searchResults template will likely break this plugin, at least as far as those pages go (but if they break you'll probably need to disable this entirely). There seem to be some systemic problems with theme hooks within this template (or at least while IN_DEV) so I needed to grab most of the template to do what needed to be done. This template needs to be fiddled with due to the fact that IPS does not use the \IPS\Member object in Search and Stream result creation but rather fetches a handful of fields from the member database directly. This results in the author/member names being dumped in as plain text and formatted with language keys. I had to force-feed group formatting into the mix and then change all the language calls to allow for html to parse correctly. You will notice that possessives are NOT formatted (i.e. Flitterkill's topic, etc...) You'll have to live with that until I get drunk enough to want to bother with accounting for possessives. It will not be "fun".

On profile view, your status update name remains unformatted but replies are formatted. Also keep in mind that your user name in the cover photo and also on profile hovercards (when you cursor over a username/photo and the mini profile appears) - those usernames remain unformatted and probably should remain that way. See below.

Please login or register to see this image.

/monthly_2017_03/11.jpg.c3b3e53af3a1c0dab33b48c72353d9e2.jpg">

If you are wondering why some areas do not have formatted names and others do that is because there are many different ways the userlink is created throughout the suite. If the IPS\Member object is used specifically the group color will be applied automatically. In EVERY other instance additional coding is required. Sometimes easy, other times not. 

This remains UNSUPPORTED! You can shoot me a PM if there are problems (or if that template gets changed) but do not expect instantaneous fixes/support.


  • Submitter

    Please login or register to see this link.

  • Submitted
    03/23/2017
  • Category

    Please login or register to see this link.

 

Share this post


Link to post
Share on other sites


Create an account or sign in to comment

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×