Lets see, asuming your have the default code for "whos online" section in includes/sessions.php. Then find: $sql = "SELECT s.session_user_id, s.session_lastaction, s.session_ip".get_user_table_field(", u.", "user_id").get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_invisible")."
At the end of that line add:, u.user_sex
The end result should be:[qcode] $sql = "SELECT s.session_user_id, s.session_lastaction, s.session_ip".get_user_table_field(", u.", "user_id").get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_invisible").", u.user_sex[/qcode]
Then find: $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
Replace with: $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\" class=\"wosex".$row['user_sex']."\">".$username."</a>".$invisibleuser;
Then in style.css stylesheet add three new classes with needed coolors and such:
.wosex { /*no sex*/
}
.wosexm { /* male */
color: red;
}
.wosexw { /* female */
color: blue;
}
In some cases because the stylesheed for links could override this style, you'll need use this type of naming instead:
.wosex:visited, .wosex:link, .wosex:active