BlowingWind Posted November 30, 2015 Share Posted November 30, 2015 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. Link to comment Share on other sites More sharing options...
eden buganim Posted November 30, 2015 Share Posted November 30, 2015 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 Link to comment Share on other sites More sharing options...
BlowingWind Posted December 1, 2015 Author Share Posted December 1, 2015 That works ! Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.