www.clan-themes.co.uk :: View topic - Users of the day and color groups
Welcome To Clan Themes
As the board grows please remember the Search Option and we hope you find our community useful.
We also monitor Private Messages to stop members from abusing our sites system. If you are asking for assistance please provide your site link and nuke version, Thanks.
admin/admin_color_groups.php to modules/Forums/admin/
language/lang_english/lang_color_groups.php to modules/Forums/language/lang_english/
includes/functions_color_groups.php to includes/
templates/subSilver/admin/*.* to modules/Forums/templates/subSilver/admin/
#
#-----[ RUN ]------------------------------------------
#
http://www.yourdomain.com/modules.php?name=Forums&file=nivisec_install
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
#End
and Users of the day
Code:
########################################################
##
## MOD Title: Users of the day
## MOD Version: 2.1
## Author: ZoZo <zozo>
##
## Description:
## Displays, under the online users list, a list of the registered users
## who have visited during the last XX hours. Can also display the list
## of the users who didn't come. (see "Edit below")
##
## Installation Level: easy
## Installation Time: 2-3 minutes
##
## Files To Edit: 3
## - /templates/subSilver/index_body.tpl
## - /language/lang_english/lang_main.php
## - /includes/page_header.php
##
## Included Files: None
##
########################################################
## VERSION HISTORY:
##
## October 22th 2004: v2.1
## 1. Now admins are displayed first, then mods then users.
## 2. Corrected a problem in the text file with Easy Mod Installer.
##
## June 20th 2003: v2.0
## 1. The list's delay is customizable, but you must give a number in hours, 24 by default.
## 2. There's now a counter for each list.
## 3. The MOD doesn't display the list of the users who didn't visit by default.
##
## October 28th 2002: v1.1
## 1. The MOD uses the database variable "user_session_time" instead of "user_lastvisit", which is updated only when the user logs out.
##
## October 15th 2002: v1.0
## 1. Created main features.
##
########################################################
## TODO LIST:
##
## 1. Don't restrict the time unit to hours.
##
########################################################
## PLEASE REPORT ANY BUGS OR SUGGESTIONS ##
########################################################
#
#-----[ ACTION: open ]--------------------------------
#
/language/lang_english/lang_main.php
#
#-----[ ACTION: find ]--------------------------------
#
$lang['Registered_users'] = 'Registered Users:';
#
#-----[ ACTION: add before ]--------------------------
#
$lang['Day_users'] = '%d registered users visit during the last %d hours:';
$lang['Not_day_users'] = '%d registered users <span>DIDN\'T</span> visit during the last %d hours:';
#
#-----[ ACTION: repeat for all languages ]------------
#
#
#-----[ ACTION: open ]--------------------------------
#
/includes/page_header.php
#
#-----[ ACTION: find ]--------------------------------
#
'LOGGED_IN_USER_LIST' => $online_userlist,
#
#-----[ ACTION: add after ]---------------------------
#
'USERS_OF_THE_DAY_LIST' => $day_userlist,
#
#-----[ ACTION: find ]--------------------------------
#
//
// Obtain number of new private messages
// if user is logged in
//
#
#-----[ ACTION: add before ]--------------------------
#
//
// Users of the day MOD
//
// ############ Edit below ############
// #
$display_not_day_userlist = 0; // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24; // change here to the number of hours wanted for the list
// #
// ############ Edit above ############
$sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time
FROM ".USERS_TABLE."
WHERE user_id > 0
ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}
Site Helper Joined: Dec 19, 2006
Last Visit: 28 Apr 2008
Posts: 18 Points: 971
Users of the day and color groupsPosted:
Wed Mar 19, 2008 1:49 pm
If you have assigned a color for just a regular member with no title etc. you must assign them the color just like you would for any other color group via your fcp. Once you have done that it will show your color that you have created in the Auc for each default member instead of the default color.
Status: Offline
0.52 posts per day Medals: 1 (View more...)
Joined: Oct 04, 2007
Last Visit: 30 Jun 2008
Posts: 143 Points: 3848
Re: Users of the day and color groupsPosted:
Wed Mar 19, 2008 2:07 pm
I might not explained it right,,, I always do though.
Ok lets see if I can do it better
On the screen shot it shows me logged in, as Handsome_Devil with the dark red Color, but if you look at at the Users of the day it shows me - Handsome_Devil - with a different color, the default color of phpbb
Status: Offline
0.52 posts per day Medals: 1 (View more...)
Joined: Oct 04, 2007
Last Visit: 30 Jun 2008
Posts: 143 Points: 3848
Users of the day and color groupsPosted:
Wed Mar 19, 2008 7:51 pm
Really thank for trying to help me, but thats not my problem
I could use what you gave me and change the colors, but I made like 6 color groups in my forums, and using your way going to fix only one,