hey guys anyone can help me fast please who can make this online list to show where the user are it only show
online/offline Username
status: Owner
Mood:
i want to show online/offline Username
Owner
Mood
Where (If its possible to help make the where a link so users can go to the place where they are would be nice)
online/offline Username
status: Owner
Mood:
i want to show online/offline Username
Owner
Mood
Where (If its possible to help make the where a link so users can go to the place where they are would be nice)
Code:
else if($action=="online") { addvisitor(); addonline(getuid_sid($sid),"Online","index.php?action=$action"); echo "<head>"; echo "<title>Online</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">"; echo "</head>"; echo "<body>"; // alerte $uid = getuid_sid($sid); $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lirpopups WHERE unread='1' AND touid='".$uid."'")); if ($unreadpopup[0]>0) { echo popup($sid); echo "</p>"; echo "</body>"; echo "</html>"; exit();} //echo "<div><img src=\"images/onlinelist.gif\" alt=\"Online List\"/></div>"; ///// echo user_link($uid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 20; $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.hidden, b.place, b.userid sex FROM lirusers a INNER JOIN lironline b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page"; ///////////////vasy echo "<p align=\"center\">"; $noi2 = mysql_fetch_array(mysql_query("SELECT count(*) FROM lirusers WHERE perm>'0'")); $timeout = 300; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lirusers WHERE perm>'0' AND hidden='0' AND lastact>'".$timeon."'")); $me = getuid_sid($sid); if($uid==$me) { $set = "<a href=\"index.php?action=stat&sid=$sid\">(set status)</a>"; }else{ $set = ""; } echo "$set<br/>"; echo "Staff: <a href=\"index.php?action=stfol&sid=$sid\">".$noi[0]."/$noi2[0]</a><br/>"; echo "</p>"; echo "<p align=\"left\">"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if($item[1]==0) { //////////////////isus cristos $sex = mysql_fetch_array(mysql_query("SELECT sex FROM lirusers 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 = "<img src=\"images/male.gif\" alt=\"(M)\"/>";} ///{$usersex = isus2"";} if ($item[3]==1 || $item[3]==2 || $item[3]==3){ $lnk = " <a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\" style=\"color:#FF0000\" style=\"font-weight:bold\">".getsimbol($item[3])."$item[0]</a>";}else{ $lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">".getsimbol($item[3])."$item[0]</a>"; } if ($item[3]==1 || $item[3]==2 || $item[3]==3){ echo "»$usersex $lnk <br/> »Status:".getstatus($item[3])."<br/>"; }else{ echo "»$usersex $lnk <br/> »Status:".getstatus($item[3])." <br/>"; } $staters = mysql_fetch_array(mysql_query("SELECT stats FROM lirusers WHERE id='".$item[3]."'")); $stats = parsepm($staters[0], $sid); if($stats=="") { echo ""; }else{ echo "»Message: $stats<br/>"; } echo "<small>------</small><br/>"; }else{ } } //////////////////////////////////////////ioon //////////// isus 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> "; echo "<b>|</b>"; } 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>"; echo "<center>"; echo "<small>Enter your name and see the member's profile</small><br/>"; echo "Name:"; echo "<form action=\"index.php?action=viewuser&sid=$sid\" method=\"post\">"; echo "<input name=\"mnick\" maxlength=\"15\"/>"; echo "<input type=\"submit\" value=\"see profil\"/>"; echo "</form>"; echo "</center>"; ////// UNTILL HERE >> include("ioon.php"); echo "</body>"; }
Comment