Hi

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

thanks