usage
Code:
boxstart("men+women online list"); echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $memberonline = "<a href=\"index.php?action=online&sid=$sid\">Online ".getnumonline()."</a><br/>"; echo "$memberonline"; $timeout = (time() - $timeadjust) - 180; echo "<img class=\"menu\" alt=\"Group\" src=\"images/girlon.gif\" align=\"absbottom\"></a>"; $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='F'")); echo "<a href=\"index.php?action=fonline&sid=$sid\">Female Seeking Men [$kazz[0]]</a><br/>"; echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/boyon.gif\" align=\"absbottom\"></a>"; $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='M'")); echo "<a href=\"index.php?action=monline&sid=$sid\">Male Seeking Female [$kazz[0]]</a><br/>";
Code:
///////////////////////////////////////////////////////////////////// else if($action=="online") { $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'")); $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid))); addonline(getuid_sid($sid),"Online list Xhtml-$mmsg","index.php?action=online"); $pstyle = gettheme($sid); echo xhtmlhead("Online List",$pstyle); echo "<body>"; echo "<p align=\"center\">"; //////ALL LISTS SCRIPT << boxstart("Online List"); 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,a.perm, 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"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "<a href=\"index.php?action=vipol&sid=$sid\">V.I.P Online</a><br/>"; echo "<p align=\"left\">"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if($item[1]=='0') { $tit = ""; }if($item[1]=='1') { $tit = "³"; }if($item[1]=='2') { $tit = "²"; } if($item[1]=='3') { $tit = "¹"; } if($item[1]=='4') { $tit = "º"; } $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name='$item[0]'")); if($sex[0]=="M"){$usersex = "<img src=\"images/male.gif\" alt=\"(M)\"/>";} if($sex[0]=="F"){$usersex = "<img src=\"images/female.gif\" alt=\"(F)\"/>";} if($sex[0]==""){$usersex = "";} if($item[1]>'0') { $lnk = "$usersex<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]</a>"; }else{ $lnk = "$usersex<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]</a>"; } ////////////////////online avatar if($showavatar[0]=="1") { $avlink = getavatar($item[3]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; }else{ echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; } } echo "$lnk - $item[2] <br/>"; } $mmsg1 = parsemsg(getsetmood($item[2]), $sid); if(!$mmsg1=="") { echo "($mmsg1) - $item[1] "; }else{ echo " $item[1]<br/>"; } //echo "</p>"; //echo "<p align=\"center\">"; 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 "<br/>$page/$num_pages"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> boxend(); boxstart("Where U wona go"); $nick = getnick_sid($sid); echo "<p align=\"center\">"; echo "<hr></hr>"; echo "<a href=\"index.php?action=mood&sid=$sid\">Update Mood</a><br/>"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg/$tmsg)</a><br/>"; echo "<a href=\"index.php?action=formmenu&sid=$sid\">Forums</a><br/>"; echo "<a href=\"lists.php?action=buds&sid=$sid\">BuddyList</a><br/>"; echo "<a href=\"index.php?action=chat&sid=$sid\">Chatrooms</a><br/>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\">"; echo "Home</a>"; echo "</p>"; echo xhtmlfoot(); echo "</body>"; boxend(); } else if($action=="monline") { $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'")); addonline(getuid_sid($sid),"Online List - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Online List",$pstyle); //////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, sex, perm FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='M' GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; echo "<p><small>"; getalert($sid); if($showshout[0]=="1"){ echo "<div class=\"mblock1\">"; echo "<small>"; echo getshoutbox($sid); echo "</small>"; echo "</div>"; } boxstart ("Online"); echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&sid=$sid\">"; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); print "Most online: <b>$mols[1]</b><br/>"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); print "Most online today only: <b>$mols[0]</b><br/>"; echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "<a href=\"index.php?action=vipol&sid=$sid\">V.I.P </a><br/>"; echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'")); echo "<a href=\"index.php?action=stfol&sid=$sid\">Staff</a><br/><br/>"; $timeout = (time() - $timeadjust) - 180; $items = mysql_query($sql); echo mysql_error(); boxend(); boxstart ("Online"); while ($item = mysql_fetch_array($items)) { if ($item[3]=="M"){ $icon = "<img src=\"images/male.gif\" alt=\"M\"/>"; }else if ($item[3]=="F"){ $icon = "<img src=\"images/female.gif\" alt=\"F\"/>"; } if ($item[4]=="1") { $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='blue'>$item[0]</font></a>"; } else if ($item[4]=="2") { $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='red'>$item[0]</font></a>"; } else if ($item[4]=="3") { $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='lightgreen'>$item[0]</font></a>"; } else if ($item[4]=="4") { $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='lime'>$item[0]</font></a>"; } /////////////////////online avatar if($showavatar[0]=="1") { $avlink = getavatar($item[2]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; }else{ echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; } } ///////////////////////////////////// $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; echo "$icon $lnk - $item[1] - $item[2] <br/>"; } $mmsg1 = parsemsg(getsetmood($item[2]), $sid); if(!$mmsg1=="") { echo "($mmsg1) - $item[1] "; }else{ echo " $item[1]<br/>"; } echo "</small></p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=monline&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=monline&page=$npage&sid=$sid\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> boxend(); echo "<a href=\"index.php?action=mood&sid=$sid\">Update Mood</a><br/>"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg/$tmsg)</a><br/>"; echo "<a href=\"index.php?action=formmenu&sid=$sid\">Forums</a><br/>"; echo "<a href=\"lists.php?action=buds&sid=$sid\">BuddyList</a><br/>"; echo "<a href=\"index.php?action=chat&sid=$sid\">Chatrooms</a><br/>"; echo "<p align=\"center\">"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo xhtmlfoot(); } else if($action=="fonline") { $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'")); addonline(getuid_sid($sid),"Online List - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Online List",$pstyle); //////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, sex, perm FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='F' GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; echo "<p><small>"; getalert($sid); if($showshout[0]=="1"){ echo "<div class=\"mblock1\">"; echo "<small>"; echo getshoutbox($sid); echo "</small>"; echo "</div>"; } boxstart ("Online"); echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&sid=$sid\">"; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); print "Most online: <b>$mols[1]</b><br/>"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); print "Most online today only: <b>$mols[0]</b><br/>"; echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'")); echo "<a href=\"index.php?action=vipol&sid=$sid\">V.I.P </a><br/>"; echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'")); echo "<a href=\"index.php?action=stfol&sid=$sid\">Staff</a><br/><br/>"; $timeout = (time() - $timeadjust) - 180; $items = mysql_query($sql); echo mysql_error(); boxend(); boxstart ("Online"); while ($item = mysql_fetch_array($items)) { if ($item[3]=="M"){ $icon = "<img src=\"images/male.gif\" alt=\"M\"/>"; }else if ($item[3]=="F"){ $icon = "<img src=\"images/female.gif\" alt=\"F\"/>"; } if ($item[4]=="1") { $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='blue'>$item[0]</font></a>"; } else if ($item[4]=="2") { $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='red'>$item[0]</font></a>"; } else if ($item[4]=="3") { $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='lightgreen'>$item[0]</font></a>"; } else if ($item[4]=="4") { $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\"><font color='lime'>$item[0]</font></a>"; } /////////////////////online avatar if($showavatar[0]=="1") { $avlink = getavatar($item[2]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; }else{ echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>"; } } ///////////////////////////////////// $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; echo "$icon $lnk - $item[1] - $item[2] <br/>"; } $mmsg1 = parsemsg(getsetmood($item[2]), $sid); if(!$mmsg1=="") { echo "($mmsg1) - $item[1] "; }else{ echo " $item[1]<br/>"; } echo "</small></p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=fonline&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=fonline&page=$npage&sid=$sid\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> boxend(); echo "<a href=\"index.php?action=mood&sid=$sid\">Update Mood</a><br/>"; $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox($umsg/$tmsg)</a><br/>"; echo "<a href=\"index.php?action=formmenu&sid=$sid\">Forums</a><br/>"; echo "<a href=\"lists.php?action=buds&sid=$sid\">BuddyList</a><br/>"; echo "<a href=\"index.php?action=chat&sid=$sid\">Chatrooms</a><br/>"; echo "<p align=\"center\">"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo xhtmlfoot(); }
Comment