All we are supposed to do is copy the portion of the text file and paste it into another file and name the file buddy.php right? That?s what I did. Do you think you could post the contents of your buddy.php so I can compare?
here is what I have:
PHP Code:
<?php
$templatesused = "buddy_main,buddy";
require("./global.php");
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
// main page:
// ############################### start buddy list ###############################
$datecut = time() - $cookietimeout;
$buddyuserssql=str_replace(" ","' OR user.userid='",$bbuserinfo[buddylist]);
$sql="SELECT DISTINCT session.lastactivity, user.userid,username,NOT ISNULL(session.sessionhash) AS online,invisible
FROM user
LEFT JOIN session ON session.userid=user.userid
WHERE (user.userid='$buddyuserssql')
ORDER BY username";
//$sql="SELECT * FROM user WHERE (userid='$buddyuserssql') AND invisible=0 ORDER BY username";
$buddys=$DB_site->query($sql);
$onlineusers="";
$offlineusers="";
while ($buddy=$DB_site->fetch_array($buddys)) {
if ($userdone[$buddy[userid]]) {
continue;
} else {
$userdone[$buddy[userid]]=1;
}
if ($buddy[online] and !$buddy[invisible] and $buddy[lastactivity]>$datecut) {
$onoff="on";
} else {
$onoff="off";
}
eval("\$var = \"".gettemplate("buddy")."\";");
if ($buddy[online] and !$buddy[invisible] and $buddy[lastactivity]>$datecut) {
$onlineusers.=$var;
} else {
$offlineusers.=$var;
}
}
eval("dooutput(\"".gettemplate("buddy_main")."\");");
?>
JakeC