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
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.
u shouldnt av done that... nways im off yo bed. ill help l8r if nthing
if you don't like you can always pay somone for make that cod and give it External image (may be gone)
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)
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&who=$item[2]&ses=$ses\">$seximg$item[0]</a>";
echo "$lnk -
"; }
and 4 view a icon in chat online page???
if like my post click:
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 -
";
}
wizard brou wht is the code for admin and mod image for rw? and on profile how do u add the image insted of $usex? External image (may be gone)