plz any1 can give me Online script with male/female n m using lavalair script plz ghelp me n tell me how to add it External image (may be gone)
Online Script With Male/female Sign
Started on the old forum in November 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 25 replies
- - The fix was to add a dropdown for male and female in the profile section, not in the online list script.
- - The code approach involved putting specific code at the start of where the profile begins, then adding more code below it to echo "Sex".
- - It stayed unresolved regarding whether the feature would work correctly in the online list or only in the profile.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
else if($action=="online") {
addonline(getuid_sid($sid),"Online List",""); echo "<card id="main" title="[".getnumonline()."] Online">";
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page;
//changable sql $sql = "SELECT a.name, b.place, b.userid FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page ";
echo " ";
echo "<img src="images/online.gif" alt="*"/> ";
$timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); echo "<a href="index.php?action=stfol&sid=$sid">Staff Online: ".$noi[0]."</a> "; echo " "; echo " "; echo ""; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) {
$gender = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'")); if($gender[0]=="M") { $seximg = "<img src="images/male.gif" alt="M"/>"; }else if($gender[0]=="F") { $seximg = "<img src="images/female.gif" alt="F"/>"; }else{ $seximg = "???"; }
$pr = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$item[2]."'")); if($pr[0]=="1") { $prm = " ° Mod"; }else if($pr[0]=="2") { $prm = " ° Admin"; }else{ $prm =""; }
$lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$seximg $item[0]</a>";
echo "$lnk$prm
[$item[1]]
"; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo " "; ////// UNTILL HERE >>
echo " "; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); echo "Most online: $mols[1] ";
$mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
echo "Most online today: $mols[0]
";
$tm24 = time() - (24*60*60);
$aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'"));
echo mysql_error();
echo "Active users today: <a href=\"lists.php?action=actmem&sid=$sid\">$aut[0]</a>
";
echo "<img src="http://besttop.mobi/c2.php?id=16727" alt=""/> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>"; echo "Home</a>"; echo " "; echo "</card>"; }
thats my online for lavalair. enjoy External image (may be gone)
any 1 got that 4 my site it not lavalair or shitp but an edited version of whoever 1st made the youngson/sp type site
what so you want the male or female pic if the male of female ? wel i nw how to do that but the thing is itl only work if you have male and female, not "yes plz" or "oh "yes" or whatever other people use
Want something coded email me at sales@webnwaphost.com for a prices.
what so you want the male or female pic if the male of female ? wel i nw how to do that but the thing is itl only work if you have male and female, not "yes plz" or "oh "yes" or whatever other people use
my wap login got drop down boxes to enter only male or female . cant work out how to do drop down boxes on xhtml version tho lol
yeh av got same probs dave bin tryin divs etc but nowt workin atm but i shal get ther, im jus finishin makin this feature bloody one thing ent workin thats all lol , it ent reconises if its not this its this, bloody thing
Want something coded email me at sales@webnwaphost.com for a prices.
yeh av got same probs dave bin tryin divs etc but nowt workin atm but i shal get ther, im jus finishin makin this feature bloody one thing ent workin thats all lol , it ent reconises if its not this its this, bloody thing
spose could always use radio buttons.
IT WOOOORRKKKKS AL UPLOAD THE MALE AND FEMALE THING
Want something coded email me at sales@webnwaphost.com for a prices.
$sqlSEX = mysql_query("SELECT * FROM members WHERE username='$name'");
$sex=(mysql_result($sqlSEX,0,"sex"));
put that at the start of wer the profile bgins so about anywhere above online logo
then add this to where it ses echo "Sex" "; next line down
if ($sqlSEX=="Male"){
?>
[img]male.gif[/img]
<?php
}
else if($sqlSEX=="Female"){
}
else
{
?>
[img]female.gif[/img]
<?php
}
Want something coded email me at sales@webnwaphost.com for a prices.
$sqlSEX = mysql_query("SELECT * FROM members WHERE username='$name'"); $sex=(mysql_result($sqlSEX,0,"sex"));put that at the start of wer the profile bgins so about anywhere above online logo
then add this to where it ses echo "Sex" "; next line down
if ($sqlSEX=="Male"){ ?> male.gif <?php } else if($sqlSEX=="Female"){ } else { ?> female.gif <?php }
in which file. whosonline or profile .
wel i made it for profile but who say it wont work in whoise online
Want something coded email me at sales@webnwaphost.com for a prices.
SHIT THAT WAS WRONG CODE I THNK I THNK IV DELETED THE WRYT ONE
Want something coded email me at sales@webnwaphost.com for a prices.
wel i made it for profile but who say it wont work in whoise online
pmpl i get errors
its the way yuv put it in then, iv got it but it jus stays to one colour av deleted the other
Want something coded email me at sales@webnwaphost.com for a prices.
aww thats pisd me of nw
Want something coded email me at sales@webnwaphost.com for a prices.
got it workin agen but not reconising male but is reconisong Male same with demale
Want something coded email me at sales@webnwaphost.com for a prices.
SAVED IT FIRST THIS TIME LOL
if ($sex=="male")
{
?>
[img]male.gif[/img]
<?php
}
else if($sex=="female"){
}
else
{
?>
[img]female.gif[/img]
<?php
}
Want something coded email me at sales@webnwaphost.com for a prices.
plz any1 can give me Online script with male/female n m using lavalair script plz ghelp me n tell me how to add it External image (may be gone)
here it is
else if($action=="online") {
addonline(getuid_sid($sid),"Online List",""); echo "<card id="main" title="[".getnumonline()."] Online">";
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page;
//changable sql $sql = "SELECT a.name, b.place, b.userid FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page ";
echo " ";
echo "<img src="images/online.gif" alt="*"/> ";
$timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); echo "<a href="index.php?action=stfol&sid=$sid">Staff Online: ".$noi[0]."</a> "; echo " "; echo " "; echo ""; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) {
$gender = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'")); if($gender[0]=="M") { $seximg = "<img src="images/male.gif" alt="M"/>"; }else if($gender[0]=="F") { $seximg = "<img src="images/female.gif" alt="F"/>"; }else{ $seximg = "???"; }
$pr = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$item[2]."'")); if($pr[0]=="1") { $prm = " ° Mod"; }else if($pr[0]=="2") { $prm = " ° Admin"; }else{ $prm =""; }
$lnk = "<a href="index.php?action=viewuser&who=$item[2]&sid=$sid">$seximg $item[0]</a>"; echo "$lnk$prm [$item[1]]
"; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo " "; ////// UNTILL HERE >>
echo " "; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); echo "Most online: $mols[1] ";
$mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); echo "Most online today: $mols[0] ";
$tm24 = time() - (246060); $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$tm24."'")); echo mysql_error(); echo "Active users today: <a href="lists.php?action=actmem&sid=$sid">$aut[0]</a>
";
echo "<img src="http://besttop.mobi/c2.php?id=16727" alt=""/> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>"; echo "Home</a>"; echo " "; echo "</card>"; }
WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!