Hello,

Yes, your solution works properly.
I suggest you another solution (in this case will hide the username from another pages too):

- open file: includes/classes/rlAccount.class.php;
- go to the method getProfile();
- find this code:

PHP Code:
Only registered members can view the code
and change it to:

PHP Code:
Only registered members can view the code