November 30, 2015 in Technical Problems
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).
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
That works !
This topic is now archived and is closed to further replies.
Started Thursday at 01:08 PM
Started 36 minutes ago
Started 9 hours ago