What I need is a mod to show the names of the users in the list in different colors according to their sex (let's say for example, pink color for women, blue for men). I modified my getFriendsList() function adding a new "gender" field which I already have in my user's table:
- Code: Select all
..... ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." gender, .......
This "gender" field returns "1" if the user is a man, "2" if a woman.
Now my question is: using this modified getFriendsList() function, how to modify the arrowchat_core.js (and relative template's style.css) to show the username in blue color if "gender = 1" and pink if "gender = 2"?
Any help would be very appreciated, thank you!