Icon Gener Male/female In Chatonline By Funmobile

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

58 replies · 4,268 views · started 19 years ago · 1 min read

TL;DR · summary of 58 replies
  • - The fix was in the code provided by wizard, which needed to be placed in the online list section of the chat.php page.
  • - The code approach involved modifying the existing script to include a check for user sex (male/female) and display appropriate images/icons next to their names in the online list.
  • - It stayed unresolved for those who were trying to add male/female icons specifically for the RW script, as the provided code did not work for that particular setup.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
Guest #42

i get error with this icon code on fun mobile on online list it shows 2 male images together hehe how to fix thaT?

Guest #44

lol its ok i fixed it hehehe thanks for the code wizard brou

Guest #45

hey bro gimme the code for rw script if ya got ?

Guest #46

oops got an error just saw that in online list now it does show one image but my online status shows my nick ermmmmmmmm wht to do? i made $iten[1] to $item[0]

Guest #47

hey wizard brou gimme ur code which worksa fine for u coz in this i sure m gettin lil error thanks

Guest #49

sure bro get ur rest good nite tc. chow

Guest #51

i dnt believe in that coz im not a buisness minded person if i can help someone i wuld help without any money coz u knw wot?money is not everythin in life there is somethin called humanity too External image (may be gone)

Guest #52

ok i fixed it for people who had error use this now

while ($item = mysql_fetch_array($items)) { $fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'")); if($fuckyou[0]=="1") { $seximg = "<img src="images/male.gif" alt=""/>"; }else if($fuckyou[0]=="2") { $seximg = "<img src="images/female.gif" alt=""/>"; }else{ $seximg = "wtf am i?"; }

  $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;ses=$ses\">$seximg$item[0]</a>";
  echo "$lnk - 

"; }

Guest #54

now someone give me the code for rw script i mean this male female icon in online list of rw

wizard Senior · 493 posts #55

now someone give me the code for rw script i mean this male female icon in online list of rw

while ($item = mysql_fetch_array($items))
{
$fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'"));
if($fuckyou[0]=="M") {
$seximg = "<img src=\"images/male.gif\" alt=\"*\"/>";
}else if($fuckyou[0]=="F") {
$seximg = "<img src=\"images/female.gif\" alt=\"*\"/>";
}else{
$seximg = "!";
}

$lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$seximg$item[0]</a>";
echo "$lnk - 
";
}
Guest #56

this code dnt work for rw script brou

Guest #58

ok ill trey again

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close