Frug / AJAX-Chat

A fully customizable web chat implemented in JavaScript, PHP and MySQL which integrates nicely with common forum systems like phpBB, MyBB, FluxBB, SMF and vBulletin. A Flash and Ruby based socket connection can be used to boost performance.
http://frug.github.io/AJAX-Chat/
546 stars 300 forks source link

Possibility of adding sex tag before user name #202

Open Neurozone opened 9 years ago

Neurozone commented 9 years ago

I wonder how to add a tag like 'F' for female or 'M' for male before the user name ?

Is it possible ?

Patmacessex commented 9 years ago

Yes provided it is entered in their user profile

Frug commented 8 years ago

This request would be better as a more general request for custom profile fields.

Patmacessex commented 8 years ago

Frug no disrespect, but I'm just reacting to a question, I haven't used AJAX chat nor will I in the near future, I'm just trying to give feedback and help when an email pops in, from the experiences I've had. That does not mean that AJAX Chat is bad, I actually think it's a great project I personally just don't have any use for it. So i would appreciate it that my feedback is valued rather then getting email like you're in the wrong forum, otherwise I will just not bother anymore

aedgington commented 8 years ago

It's not that hard, just pull it from a field and then add it to the chat.js. I did the same thing to get my forum's avatars.

                + '<div id="user'
                + userID
                + '" class="avatarwrapper"><a target="_blank" href="http://forum/member.php?u='
                + userID
                + '"><img src="'
                + 'http://forum/image.php?u='
                + userID
                + '" title="'
                + userName
                + '"/></a></div>'

http://i.imgur.com/iCgxiWO.jpg

BanjoFox commented 7 years ago

@aedgington -- Thanks for the Avatar code! I've been trying to sort out something just like this. hahah :D