<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
echo web_head($uid);
addonline(getuid_ses($ses),"Viewing My Buddies List","");
$uid=getuid_ses($ses);
echo "
<img src=\"../phpThumb/phpThumb.php?src=../images/chat.gif\" alt=\"buddylist\"/>
";
$bmsg=getbbcode(getbudmsg($uid),$ses,0);
if($bmsg!="")
{
echo "($bmsg)";
}else{
echo "No Mood";
}
echo popup($ses);
if($page==""||$page<=0)$page=1;
$num_items=getonbuds(getuid_ses($ses));
$items_per_page=10;
$num_pages=ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page=$num_pages;
$limit_start=($page-1)*$items_per_page;
$sql="
SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt
FROM members a INNER JOIN buddies b ON (a.id = b.uid)
OR (a.id=b.tid) WHERE (b.uid='".getuid_ses($ses)."' OR
b.tid='".getuid_ses($ses)."') AND b.agreed='1' AND
a.id!='".getuid_ses($ses)."' GROUP BY 1,2 ORDER BY
a.lastact DESC LIMIT $limit_start, $items_per_page";
echo "<p align=\"center\">";
$items=mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while($item=mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$style="style=\"font-size:10px;color:#009900\"";$status="online!";
$bmsg=getbbcode(getbudmsg($item[2]),$ses,0);
if($bmsg!="")
{
$budmood="($bmsg)";
}else{
$budmood="No Mood";
}
echo "<a href=\"profile.php?ses=$ses&who=$item[2]\">$item[1]</a>";
echo " - $status
$budmood
";}
}
}else{
echo "No Buddies Online Atm..
"; /////it dont show up
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
echo "<a href=\"buds.php?ses=$ses&view=$view&page=" .($page-1)."\">«PREV</a> ";
}
if($page<$num_pages)
{
echo "<a href=\"buds.php?ses=$ses&view=$view&page=" .($page+1)."\">Next»</a>";
}
echo "
$page/$num_pages
";
if($num_pages>2)
{
echo pagejump($ses,"buds");
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a accesskey=\"2\" href=\"buds.php?ses=$ses\">Refresh</a>
";
echo "<a accesskey=\"4\" href=\"inbox.php?where=popdialog&sid=$sid\">Po pup Dialog</a>
";
$popmsgs=mysql_fetch_array(mysql_query("SELECT popmsg FROM members WHERE id='".$uid."'"));
if($popmsgs[0]==0){
echo "<a accesskey=\"5\" href=\"settings.php?where=popon&sid=$sid\">Ena ble Popups</a>
";
}else{
echo "<a accesskey=\"5\" href=\"settings.php?where=popoff&sid=$sid\">Di sable Popups</a>
";}
echo "<a accesskey=\"6\" href=\"mood.php?ses=$ses\">Change Mood</a>
";
echo "<a accesskey=\"5\" href=\"Offline.php?ses=$ses\">Offline Buds</a>
";
$chat=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM chat_online"));
echo "<a $key1 href=\"inbox.php?ses=$ses\">Inbox</a>
";
echo "<a $key2 href=\"forums.php?where=forumindx&ses=$ses\">F orums</a>
";
echo "<a $key3 href=\"online.php?ses=$ses\">Online List(".getnumonline().")</a>
";
echo "<a $key4 href=\"chat1.php?where=chat&ses=$ses\">ChatRoo ms($chat[0])</a>
";
echo "<a $key0 href=\"main.php?ses=$ses\">
<img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Main Menu</a>
";
echo webfoot();
exit();
</div>
hi i got online and offlinr buts list and trying to get it so then no ones online it will say No Buddies Online Atm.. but its not working for me lol
echo web_head($uid);
addonline(getuid_ses($ses),"Viewing My Buddies List","");
$uid=getuid_ses($ses);
echo "
<img src=\"../phpThumb/phpThumb.php?src=../images/chat.gif\" alt=\"buddylist\"/>
";
$bmsg=getbbcode(getbudmsg($uid),$ses,0);
if($bmsg!="")
{
echo "($bmsg)";
}else{
echo "No Mood";
}
echo popup($ses);
if($page==""||$page<=0)$page=1;
$num_items=getonbuds(getuid_ses($ses));
$items_per_page=10;
$num_pages=ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page=$num_pages;
$limit_start=($page-1)*$items_per_page;
$sql="
SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt
FROM members a INNER JOIN buddies b ON (a.id = b.uid)
OR (a.id=b.tid) WHERE (b.uid='".getuid_ses($ses)."' OR
b.tid='".getuid_ses($ses)."') AND b.agreed='1' AND
a.id!='".getuid_ses($ses)."' GROUP BY 1,2 ORDER BY
a.lastact DESC LIMIT $limit_start, $items_per_page";
echo "<p align=\"center\">";
$items=mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while($item=mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$style="style=\"font-size:10px;color:#009900\"";$status="online!";
$bmsg=getbbcode(getbudmsg($item[2]),$ses,0);
if($bmsg!="")
{
$budmood="($bmsg)";
}else{
$budmood="No Mood";
}
echo "<a href=\"profile.php?ses=$ses&who=$item[2]\">$item[1]</a>";
echo " - $status
$budmood
";}
}
}else{
echo "No Buddies Online Atm..
"; /////it dont show up
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
echo "<a href=\"buds.php?ses=$ses&view=$view&page=" .($page-1)."\">«PREV</a> ";
}
if($page<$num_pages)
{
echo "<a href=\"buds.php?ses=$ses&view=$view&page=" .($page+1)."\">Next»</a>";
}
echo "
$page/$num_pages
";
if($num_pages>2)
{
echo pagejump($ses,"buds");
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a accesskey=\"2\" href=\"buds.php?ses=$ses\">Refresh</a>
";
echo "<a accesskey=\"4\" href=\"inbox.php?where=popdialog&sid=$sid\">Po pup Dialog</a>
";
$popmsgs=mysql_fetch_array(mysql_query("SELECT popmsg FROM members WHERE id='".$uid."'"));
if($popmsgs[0]==0){
echo "<a accesskey=\"5\" href=\"settings.php?where=popon&sid=$sid\">Ena ble Popups</a>
";
}else{
echo "<a accesskey=\"5\" href=\"settings.php?where=popoff&sid=$sid\">Di sable Popups</a>
";}
echo "<a accesskey=\"6\" href=\"mood.php?ses=$ses\">Change Mood</a>
";
echo "<a accesskey=\"5\" href=\"Offline.php?ses=$ses\">Offline Buds</a>
";
$chat=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM chat_online"));
echo "<a $key1 href=\"inbox.php?ses=$ses\">Inbox</a>
";
echo "<a $key2 href=\"forums.php?where=forumindx&ses=$ses\">F orums</a>
";
echo "<a $key3 href=\"online.php?ses=$ses\">Online List(".getnumonline().")</a>
";
echo "<a $key4 href=\"chat1.php?where=chat&ses=$ses\">ChatRoo ms($chat[0])</a>
";
echo "<a $key0 href=\"main.php?ses=$ses\">
<img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Main Menu</a>
";
echo webfoot();
exit();
</div>
hi i got online and offlinr buts list and trying to get it so then no ones online it will say No Buddies Online Atm.. but its not working for me lol
Comment