Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-05-2012, 12:39 PM #1
- Join Date
- Aug 2012
- Thanked 0 Times in 0 Posts
How to hide elements/outup from users
I am using ajaxchat as my main chat room/s (in Joomla!) and I need to display real names and not usernames, but the real names are now being used in the session so when someone with the same name enters the room/s, the current user with that name gets booted. I have appended the user's ID to the name to keep it unique, however, I don't want user ID's displayed for obvious reasons. I was wondering if there's a way to hide the ID or failing that, add sequential numbers instead eg john doh1, john doh2 and so on...
The code I am using so far is:
[p]$userData['userName'] = $this->trimUserName($user->get('name')).'_'.($user->get('id');[p/]
Any help on this would be really appreciated
PS I'm a totle noob so be gentle lol