Jump to content

Howto Remove Guest Prefix 4.1.x


BlowingWind

Recommended Posts

Posted

1. We allow Guest in the forum. When Guest Post, it shows the prefix Guest from Guests Group.

2. In this example, The Guest name is XXXX. System automatically prefix with Guest XXXX. 
Then show that the person is from Guests group.

3. How to remove the Guest prefix (The red Square). 

Thanks.

 

guest.png.e61f5c67bac2b79e8264bb5900c70d

Posted

It actually requires a plugin, because the \IPS\Member 'get_name' method returns a string with 'Guest' at the start.. You could run a PHP replace from within the 'UserLink' template, but that could cause problems for people actually trying to use that word in the name ;)

Anyway here's a quick plugin that overrides the 'get_name' method and returns an "unprefixed" name: Remove Guest Prefix.xml

EDIT: Another simple alternative would probably be to translate the 'guest_name_shown' lang string as an empty string, but that wouldn't remove the space character I guess :p

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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