Shouters Gender
Started on the old forum in May 2009 · view the original in the archive · old links redirect here
Pablo wrote: any body can help me out with this code i want when a user shouts there gender will show behind thier name like this example [M]Gumslone:Coding Talk Rocks ?? can help please
will probably need to create a function which checks the gender also it depends on script and mysql table whe the gender is saved.
Advertise your mobile site for FREE with AdTwirl
Pablo wrote: any body can help me out with this code i want when a user shouts there gender will show behind thier name like this example [M]Gumslone:Coding Talk Rocks ?? can help please
check this (from core.php), just modify for your site
function getshoutbox($sid){
$shbox = "<small><center>";
$lshout = mysql_query("SELECT shout, shouter, id FROM ibwf_shouts ORDER BY shtime DESC LIMIT 1");
while ($shots = mysql_fetch_array($lshout))
{
$shnick = getnick_uid($shots[1]);
if(isonline($shots[1])){
$bulb="<img src=\"images/onl.gif\" alt=\"On\"/>";
}
else{
$bulb="<img src=\"images/ofl.gif\" alt=\"Off\"/>";
}
//////////////////////////////////////////////////////////////////// add sex to shouts code
$nick = getnick_uid($sid);
$who = $_GET['who'];
$action = $_GET['action'];
$uid = getuid_sid($sid);
$usex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$who."'"));
if($usex[0]=='M'){
$usex = "<img src=\"images/male.gif\"/>";
}else if($usex[0]=='F'){
$usex = "<img src=\"images/female.gif\"/>";
}
$shbox .= "$bulb <i>$usex<a href=\"index.php?action=viewuser&sid=$sid&who=$shots[1]\">".$shnick."</a></i>: ";
$fshout = htmlspecialchars($shots[0]);
$fshout = getsmilies($fshout);
$fshout = getbbcode($fshout, $sid);
$shbox .= $fshout;
//if (ismod(getuid_sid($sid))){
//$shbox .= ", <a href=\"modproc.php?action=delsh&sid=$sid&shid=$shots[2]\">delete</a>";
//}
$shbox .= "<br/>";
LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com
don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
ofcourse it wont work straight away. it just gives u idea how to do it..anyway, u can check mobilezonez for the whole script.
LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com
don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.