last time it can be opened..(neva edit anything)
My Budylist Cant Open
Collapse
X
-
GuestTags: None
-
Guest
//////////////////////////////////Buddies
else if($action=="buds")
{
addonline(getuid_sid($sid),"Viewing My Buddies List","lists.php?action=buds");
echo "<card id=\"main\" title=\"Buddies\">";
$uid = getuid_sid($sid);
echo "<p align=\"center\">";
//echo "<img src=\"logos/buddylist.gif\" alt=\"buddylist\"/>
";
$bmsg = parsemsg(getbudmsg($uid), $sid);
if($bmsg!="")
{echo "($bmsg)</p>";}else
{echo "</p>";}
echo popup($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$num_items = getnbuds($uid); //changable
$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;
//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
";
*/
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."' 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]))
{
$iml = "<img src=\"../images/onl.gif\" alt=\"+\"/>";
}else{
$iml = "<img src=\"../images/ofl.gif\" alt=\"-\"/>";
}
$bmsg = parsemsg(getbudmsg($item[2]), $sid);
if($bmsg!="")
{
$budmood="($bmsg)";
}else{
$budmood="";
}
$lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$iml$item[1]</a>$budmood";
echo "$lnk
";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"lists.php?action=buds&page=$ppage&s id=$sid&view=$view\">«Prev</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"lists.php?action=buds&page=$npage&s id=$sid&view=$view\">Next»</a>";
}
echo "
$page/$num_pages
";
if($num_pages>2)
{
$rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"lists.php\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"lists.php?action=buds&sid=$sid\">Refres h</a>
";
echo "<a href=\"inbox.php?action=popupto&sid=$sid\">Sen d Popup</a>
";
echo "<a href=\"inbox.php?action=popdialog&sid=$sid\">P opup Dialog</a>
";
$popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id='".$uid."'"));
if($popmsgs[0]==0){
echo "<a href=\"index.php?action=popenable&sid=$sid\">E nable Popups</a>
";
}else{
echo "<a href=\"index.php?action=popdisable&sid=$sid\"> Disable Popups</a>
";
}
echo "<a href=\"index.php?action=chbmsg&sid=$sid\">Chan ge Mood</a>
";
echo "<a href=\"inbox.php?action=main&sid=$sid\">Inbox</a>
";
echo "<a href=\"index.php?action=chat&sid=$sid\">Chatro oms</a>
";
echo forumlink($sid);
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</card>";
}
Comment
-
nothing to do with your script
11.16.0-CURRENT 18546 (CPANEL)
it not working with newer cpanelsVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Guest
nothing to do with your script
11.16.0-CURRENT 18546 (CPANEL)
it not working with newer cpanels[/b]
whats u mean??
Comment
-
Does any1 know how to fix this? Coz im getting da same error nw!
click here to join blingywap.co.za
http://blingywap.co.za
IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!
Comment
-
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."' GROUP BY 1,2 ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";[/b]
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."' GROUP BY 2,1 ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";[/b]
Comment
Comment