1

Topic: request: Display total number of visitors

I would like to display the total number of visitors, not only members plus guests.
In other words I want it to say:
There are 30 visitors online now: 15 registered users and 15 guests.
How can I achieve this?

Re: request: Display total number of visitors

In index.php, find this line:

echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";

REPLACE WITH

echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong> A total of '.($num_users + $num_guests).' users are visiting your forum.</dd>'."\n\t\t\t".'</dl>'."\n";

3

Re: request: Display total number of visitors

Thanks Elbekko, worked great smile

4

Re: request: Display total number of visitors

??, ?????? ????????. ???? ???? ???????? ?????? ???.
Good work.