PDA

View Full Version : I have prob.


SilverBoy
Sat 14th Apr '01, 7:26pm
I have prob. with vb115 it shows who is on line always 1, when there were more than one there what I can do to correct it

SilverBoy
Sat 14th Apr '01, 11:53pm
I wish some one solve it to me.

Mike Sullivan
Sun 15th Apr '01, 12:10am
Need server info.

SilverBoy
Sun 15th Apr '01, 12:13am
plz tell me.

Mike Sullivan
Sun 15th Apr '01, 12:41am
OS, PHP version, PHP implementation (CGI, Apache module, ISAPI), MySQL...
Specifically OS.

IIS + ISAPI?

SilverBoy
Sun 15th Apr '01, 12:52am
PHP Version 4.0.3pl1, Linux server0023 2.2.14 but other info. i dont know

Martin
Sun 15th Apr '01, 8:48am
1.1.5 is no longer suppoerted. use your license info and upgrade to 1.1.6

SilverBoy
Sun 15th Apr '01, 9:04am
may be there are errors, so plz check it.
if ($displayloggedin==1) {
$datecut=time()-$cookietimeout;

$numberguest=0;
$numberregistered=0;
if ($logged=$DB_site->query("SELECT userid FROM session")) {
while($thislogged=$DB_site->fetch_array($logged)) {
if ($thislogged[userid]==0) {
$numberguest++;
} else {
$numberregistered++;
}
}
}
$totalonline = $numberguest+$numberregistered;
$numbervisible=0;
$activeusers = "";
$loggedins=$DB_site->query("SELECT DISTINCT user.userid,username,session.location
FROM user,session WHERE session.userid=user.userid AND session.userid<>0 AND
invisible=0 ORDER BY username");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numbervisible++;
$userid=$loggedin[userid];
$username=$loggedin[username];
$location=$loggedin[location];

eval("\$activeusers .= \"".gettemplate("loggedinuser")."\";");

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numbervisible++;
$userid=$loggedin[userid];
$username=$loggedin[username];
$location=$loggedin[location];
eval("\$activeusers .= \", ".gettemplate("loggedinuser")."\";");
}
}
$numberinvisible=$numberregistered-$numbervisible;
eval("\$loggedinusers = \"".gettemplate("loggedinusers")."\";");
}

SilverBoy
Sun 15th Apr '01, 1:08pm
I use a hacks that maybe did that errors so I will post the whole code
if ($displayloggedin==1) {
$datecut=time()-$cookietimeout;

$numberguest=0;
$numberregistered=0;
if ($logged=$DB_site->query("SELECT userid FROM session")) {
while($thislogged=$DB_site->fetch_array($logged)) {
if ($thislogged[userid]==0) {
$numberguest++;
} else {
$numberregistered++;
}
}
}
$totalonline = $numberguest+$numberregistered;
// record high sessions hack

$oldhighsessions=$DB_site->query_first("SELECT high,timestamp FROM highsessions");
$numberoldhigh=$oldhighsessions[high];
$timeoldhigh=date("M j, Y G:i",$oldhighsessions[timestamp]);

if ($totalonline > $numberoldhigh) {
$DB_site->query("UPDATE highsessions SET high='$totalonline',timestamp='".time()."'");
$numberoldhigh = $totalonline;
$timeoldhigh="at this moment";
}

// end high sessions hack

$numbervisible=0;
$activeusers = "";
$loggedins=$DB_site->query("SELECT DISTINCT user.userid,username,session.location FROM user,session WHERE session.userid=user.userid AND session.userid<>0 AND invisible=0 ORDER BY username");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numbervisible++;
$userid=$loggedin[userid];
$username=$loggedin[username];
$location=$loggedin[location];

eval("\$activeusers .= \"".gettemplate("loggedinuser")."\";");

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numbervisible++;
$userid=$loggedin[userid];
$username=$loggedin[username];
$location=$loggedin[location];
eval("\$activeusers .= \"".gettemplate("loggedinuser")."\";");
}
}
$numberinvisible=$numberregistered-$numbervisible;
//invisible user hack
if ($numberinvisible > 0){
$invisibleusers= '(' . ($numberinvisible) . ' hidden)' ;
}
//end invisible hack

eval("\$loggedinusers = \"".gettemplate("loggedinusers")."\";");
}

SilverBoy
Sun 15th Apr '01, 10:03pm
Iam runing my test forum on a free site in f2s.com so I notice that happend, can u modify the code to run there?

SilverBoy
Sun 15th Apr '01, 11:44pm
plz help me.

SilverBoy
Mon 16th Apr '01, 12:35pm
alot of hacks crached coz this error, plz help me.

SilverBoy
Mon 16th Apr '01, 9:57pm
*bump*

Martin
Mon 16th Apr '01, 10:53pm
as I said in my earlier post, download and install 1.1.6 from the members' area

SilverBoy
Tue 17th Apr '01, 9:04am
I have ver. 1.1.6 but I dont want to lose my hacks, that is why....

SilverBoy
Wed 18th Apr '01, 4:02pm
are there errors or problems with www.f2s.com server?