количество пользователей в онлайне, количество показываемых пользователей в онлайне, количество скрытых пользователей в онлайне, количество гостей в онлайне, количество топиков, количество постов, количество пользователей...
Код: Выделить всё
##############################################################
## MOD Title: Statistics everywhere
## MOD Author: [R: R@m$e$ :U] < Ramses@FromRU.com > (N/A) N/A
## MOD Description: Display total online users, total online regged visible users,
## total regged hidden users, total online guests, total topics, total posts, total users on every page
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: includes/page_header.php, includes/functions.php,
## every needed template...
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes:
## Find bug? Write here - http://www.phpbbguru.net/community/viewtopic.php?t=1497
## plz =)
##
##############################################################
## MOD History:
##
## 2005-02-13 - Version 1.1.0
## - Remake online info...
## 2005-02-13 - Version 1.0.0
## - First version +)))
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
}
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [start] Statistics everywhere
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$total_topics = get_db_stat('topiccount');
// [end] Statistics everywhere
#
#-----[ FIND ]------------------------------------------
#
'PRIVMSG_IMG' => $icon_pm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [start] Statistics everywhere
'TOTAL_POSTS' => $total_posts,
'TOTAL_USERS' => $total_users,
'TOTAL_TOPICS' => $total_topics,
'TOTAL_ONLINE_USERS' => $total_online_users,
'TOTAL_VISIBLE_USERS' => $logged_visible_online,
'TOTAL_HIDDEN_USERS' => $logged_hidden_online,
'TOTAL_GUESTS_USERS' => $guests_online,
// [end] Statistics everywhere
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
function get_db_stat($mode)
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Statistics everywhere
define('SHOW_ONLINE', true);
// [end] Statistics everywhere
#
#-----[ OPEN ]------------------------------------------
#
needed tpl file
#
#-----[ FIND ]------------------------------------------
#
where you want add
#
#-----[ AFTER, ADD ]------------------------------------------
#
{TOTAL_POSTS}{TOTAL_TOPICS}{TOTAL_USERS}{TOTAL_ONLINE_USERS}{TOTAL_VISIBLE_USERS}{TOTAL_HIDDEN_USERS}{TOTAL_GUESTS_USERS}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM