function get_users_online_number on admin.inc.php

hello all....

please see your admin.inc.php

.

see this function

function get_users_online_number ( $who = 0, $country = "")

.

and then see this code on that function :

switch ( $who )
{
// chatting
case 't':
case 'T':
$onl_arr = db_arr("SELECT  count(DISTINCTROW IDFrom) AS count_onl FROM IMessages  WHERE `When` > SUBDATE(NOW(), INTERVAL $min MINUTE)");
break;

.

.

.

i think that code doesn't return a right value.

it should return "number of chatter" if we invoke this "echo get_users_online_number ('t');" to our php files.

.

.

my chatter that  online are 1 person, but when i execute this function , it still diksplays 0 member.

Quote · 10 Nov 2008

admin

Quote · 10 Nov 2008

YOU SEE THERE, JUST "get_user_online_number('t') that doesnt work.   --> see image above "chatting : 0 "

Quote · 10 Nov 2008

This table (IMessages) not used long time, and will deleted in next dolphin version :)

So you can just delete this SQL

Quote · 11 Nov 2008

andrew, look at this picture:

alalaa

.

.

ddg

see when on that table RayChatMessages, why does it "int" value, why not using DATETIME value,

is it possible to format it to 0000-00-00 00:00:00

i can do it if "when" row in DATETIME format.

Quote · 12 Nov 2008

HAH, I 'M GIVE UP! ,


MAY BE NEXt VERSION YOU CAN ADD "HOW MANY USER THAT ARE ONLINE ON CHAT" DREWP!

Quote · 12 Nov 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.