3.0.0MPAKÿüÌINFOÌüÿ#
# This file contains Installation Informations.
# This file does not include Installation Instructions for the normal User.
# Please do not edit this file if you are not the Module Author.
#
# Please read the provided install.txt for Informations on how to install this Module.
#
# Module Name
[name]
Most Logged On Users
[/name]
# Module Directory Name
[short_name]
most_logged_on_users
[/short_name]
# your name
[author]
Wicher
Original: Nic Banister
[/author]
# your email
[email]
---
[/email]
# your webpage url
[url]
http://www.detecties.com/phpbb2018
http://www.fgzi.co.uk
[/url]
# module version
[version]
3.0.2
[/version]
# required minimum Statistics Mod Version
[stats_mod_version]
3.0.1beta3s
[/stats_mod_version]
# default update time
[update_time]
0
[/update_time]
[check_update_site]
http://www.detecties.com/phpbb2018
[/check_update_site]
# extra info for the user
[extra_info]
You will have to have Last visit Mod 1.2.10em Installed in order to let this module work.
You can download it at: http://www.phpbbhacks.com/download/237
This Module displays the Most Logged On Users on your board.
Anonymous posters are not counted.
If you install this module after install of Statistics Mod 3.0.1BETAt or higher:
In order for correct working of this module please copy
most_logged_on_users_module-last_visit_update.php to the root of your phpbb and execute it
from your browser.
>Be aware that that will set all last visit online time to zero.<
If its not included you can download this module from http://www.detecties.com/phpbb2018 again.
Or you may execute following query via phpmyadmin or somesort of equal program:
UPDATE `phpbb_users` SET user_totaltime = 0
If you installed Statistics Mod 3.0.1BETAt or higher this module will allready be installed.
If you had Last Visit Mod Installed at time of install of Statistics Mod 3.0.1BETAt or higher
the database change has been executed allready for you.
If you Install Last Visit Mod After installation of Statistics Mod 3.0.1BETAt
or higher you will have to do the database change yourself
and activate this module via the Statistics ACP.
[/extra_info]ÌÌÿINFOÿÌÌÿüÌLANGÌüÿInstall the mod (http://www.phpbbhacks.com/download/237) or deactivate this module.';
// [/lang_english]
// [lang_dutch]
$lang['module_name'] = 'Meest Ingelogde gebruikers';
$lang['totalforumtime'] = 'Forumtijd';
$lang['totallogins'] = 'x Ingelogd';
$lang['daysmember'] = 'Aangemeld';
$lang['visitedpages'] = 'Pagina Hits';
$lang['Error_message'] = 'De Last Visit Mod moet geinstalleerd zijn om de Meest Ingelogde gebruikers te kunnen bekijken.
Installeer de Mod (http://www.phpbbhacks.com/download/237) of deactiveer deze module.';
// [/lang_dutch]
// [lang_german]
$lang['module_name'] = 'Die Meisten Angemeldeten Benutzer';
$lang['totalforumtime'] = 'BoardZeit';
$lang['totallogins'] = 'x Logs';
$lang['daysmember'] = 'Registriert';
$lang['visitedpages'] = 'Seite Erfolge';
$lang['Error_message'] = 'Der Last Visit Mod müss angebracht werden, um die Die Meisten Angemeldeten Benutzer zu sehen.
Bringen Sie den Mod an (http://www.phpbbhacks.com/download/237) oder entaktivieren Sie dieses Modul.';
// [/lang_german]
// [lang_italian]
$lang['module_name'] = 'La maggior parte Annotati Sugli Utenti';
$lang['totalforumtime'] = 'Boardtime';
$lang['totallogins'] = 'x ceppi';
$lang['daysmember'] = 'Registrato';
$lang['visitedpages'] = 'Colpi Della Pagina';
$lang['Error_message'] = 'L\'ultimo MOD di chiamata deve essere installato per vedere più annotato sugli utenti.
Installi il MOD (http://www.phpbbhacks.com/download/237) o disattivi questo modulo.';
// [/lang_italian]
// [lang_spanish]
$lang['module_name'] = 'La mayoría De los Usuarios Entrados';
$lang['totalforumtime'] = 'Boardtime';
$lang['totallogins'] = 'x registros';
$lang['daysmember'] = 'Colocado';
$lang['visitedpages'] = 'Golpes De la Página';
$lang['Error_message'] = 'La MOD pasada de la visita tiene que ser instalada para considerar a los usuarios entrados.
Instale la MOD (http://www.phpbbhacks.com/download/237) o desactive este módulo.';
// [/lang_spanish]
?>ÌÌÿLANGÿÌÌÿüÌMODÌüÿstart_module(true);
$core->set_content('bars');
$core->set_view('rows', $core->return_limit);
$core->set_view('columns', 8);
$core->define_view('set_columns', array(
$core->pre_defined('rank'),
'username' => $lang['Username'],
'daysmember' => $lang['daysmember'],
'totalforumtime' => $lang['totalforumtime'],
'totallogins' => $lang['totallogins'],
'visitedpages' => $lang['visitedpages'],
$core->pre_defined('percent'),
$core->pre_defined('graph')
)
);
$content->percentage_sign = TRUE;
$core->set_header($lang['module_name']);
$core->assign_defined_view('align_rows', array(
'left',
'left',
'center',
'center',
'center',
'center',
'center',
'left')
);
// check if mod installed
$sql = "SELECT user_totaltime FROM " . USERS_TABLE . " ORDER BY user_totaltime DESC LIMIT 1";
if (!$result = $db->sql_query($sql))
{
$there=0;
}
else
{
$there=1;
}
if ($there == 0)
{
message_die(GENERAL_MESSAGE, $lang['Error_message']);
}
$sql = "SELECT SUM(user_totaltime) as total_time FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS;
if ( !($result = $stat_db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn\'t retrieve users data', '', __LINE__, __FILE__, $sql);
}
$row = $stat_db->sql_fetchrow($result);
$total_time = $row['total_time'];
$sql = 'SELECT user_id, username, user_totaltime, user_regdate, user_totallogon, user_dateformat, user_timezone, user_totalpages
FROM ' . USERS_TABLE . '
WHERE (user_id <> ' . ANONYMOUS . ' ) AND (user_totaltime > 0)
ORDER BY user_totaltime DESC LIMIT ' . $core->return_limit;
if ( !($result = $stat_db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn\'t retrieve users data', '', __LINE__, __FILE__, $sql);
}
$user_count = $core->sql_numrows($result);
$data = $core->sql_fetchrowset($result);
$content->init_math('user_totaltime', $data[0]['user_totaltime'], $total_time);
$core->set_data($data);
$core->define_view('set_rows', array(
'$core->pre_defined()',
'$core->generate_link(append_sid($phpbb_root_path . \'profile.php?mode=viewprofile&u=\' . $core->data(\'user_id\')), $core->data(\'username\'), \'target="_blank"\')',
'create_date($core->data(\'user_dateformat\'), $core->data(\'user_regdate\'), $core->data(\'user_timezone\'))',
'make_hour($core->data(\'user_totaltime\'))',
'$core->data(\'user_totallogon\')',
'$core->data(\'user_totalpages\')',
'$core->pre_defined()',
'$core->pre_defined()'
));
$core->run_module();
?>ÌÌÿMODÿÌÌ