[2.0.19] Advanced Group Color Management

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
38
64%
Very Good
10
17%
Good
3
5%
Fair
3
5%
Poor
5
8%
 
Total votes: 59

avatarturkiye
Registered User
Posts: 33
Joined: Fri Jun 22, 2007 12:38 pm

Re: [2.0.19] Advanced Group Color Management

Post by avatarturkiye »

I really need a quick reply from someone who understands this error:

Code: Select all

Couldn't retrieve group color's data.

DEBUG MODE

SQL Error : 1054 Unknown column 'group_weight' in 'field list'

SELECT group_id, group_name, group_description, group_weight, group_legend FROM phpbb_groups WHERE group_legend = 1 ORDER BY group_weight ASC

Line : 60
File : class_color.php
Also the section on class_color.php which the debug states:

Code: Select all

$sql = 'SELECT group_id, group_name, group_description, group_weight, group_legend
					FROM ' . GROUPS_TABLE . '
					WHERE group_legend = 1
					ORDER BY group_weight ASC';
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, "Couldn't retrieve group color's data.", "", __LINE__, __FILE__, $sql);
			}
You can also see the problem on my forum: http://www.avatarturkiye.com
I really urgently need help with this problem. I'm loosing my visitors every second, Please help me!!! :(

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.19] Advanced Group Color Management

Post by Raimon »

The error mean that you dint have done the sql

Upload the directory : install_color to your webhost what you found into the MOD download zip.
Than point you browser to domainname.com/(current forum directory)/install_color/install.php

when you have done this successfully and you get a successful message deleted the directory install_color from your webhost :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

avatarturkiye
Registered User
Posts: 33
Joined: Fri Jun 22, 2007 12:38 pm

Re: [2.0.19] Advanced Group Color Management

Post by avatarturkiye »

Thanks for the reply, i'll retry it ;)

avatarturkiye
Registered User
Posts: 33
Joined: Fri Jun 22, 2007 12:38 pm

Re: [2.0.19] Advanced Group Color Management

Post by avatarturkiye »

I get the same message, after it said you have already updated Advanced Group Color Management. I erased the install_color folder after installation but i still get the same message :(

It must be something else :(

Maakasu
Registered User
Posts: 3
Joined: Thu Jul 05, 2007 5:30 am

Re: [2.0.19] Advanced Group Color Management

Post by Maakasu »

I'm a bit new at this. I installed the Mod, but I am getting the following error when I click on one of the groups on the index:
Error getting user list for group

DEBUG MODE

SQL Error : 1109 Unknown table 'u' in field list

SELECT u.user_group_id, u.user_session_time, user_group_id, user_session_time, username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm FROM phpbb_users WHERE user_id = 2

Line : 793
File : groupcp.php
Here is all the coding around line 792:
//-- mod : Advanced Group Color Management -------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT user_group_id, user_session_time, ', $sql);
//-- fin mod : Advanced Group Color Management ---------------------------------
//-- mod : Advanced Group Color Management -------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_group_id, u.user_session_time, ', $sql);
//-- fin mod : Advanced Group Color Management ---------------------------------
if ( !($result = $db->sql_query($sql)) )
{
792 -----> message_die(GENERAL_ERROR, 'Error getting user list for group', '', __LINE__, __FILE__, $sql);
}

$group_moderator = $db->sql_fetchrow($result);

//
// Get user information for this group
//
$sql = "SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending
I am using phpbb 2.0.22
I am using AGCM 1.2.3
No other Mods installed
Last edited by Maakasu on Fri Jul 06, 2007 6:36 pm, edited 4 times in total.

Maakasu
Registered User
Posts: 3
Joined: Thu Jul 05, 2007 5:30 am

Re: [2.0.19] Advanced Group Color Management

Post by Maakasu »

Double post

Maakasu
Registered User
Posts: 3
Joined: Thu Jul 05, 2007 5:30 am

Re: [2.0.19] Advanced Group Color Management

Post by Maakasu »

Help please. :(

Nevermind, I fixed it. It was pretty obvious after I looked at it.

Big Eric
Registered User
Posts: 13
Joined: Wed Jun 20, 2007 5:55 am

Re: [2.0.19] Advanced Group Color Management

Post by Big Eric »

This is a lengthy thread, so please forgive me if this has been dealt with. I installed this mod today, the vanilla version, and I have lost my moderator and administrator tags. All I have in the legend are Registered Users, Inactive Users, and Hidden Users. Am I missing something? I have never added any "groups" per say, at least none that are special. All I have at my board are users, Admins, and moderators. Before, the Admin and Moderators had the default colors and the tags for them were in the legend.

The second thing, and I thought I read this before installing, and cannot find it now, has to do with everyone's names having lines under them. I thought I saw where someone else said they wanted those removed and it was a simple fix. I can't find that post for the life of me and I've searched.

Thank you in advance for any help/advice, or for any help in directing me to those posts that deal with my problems/concerns. Thanks!

Update: Nevermind the lines under the name. I guess they were there all along, but the difference is that all the names are in bold now. I saw that earlier in this thread so I'll go check on that. I see what I need to do for Admins and Mods now. This not only added color management, but I now have to create the Mods and Admins group and color them and I see where I get the option to show them in the legend or not. So, I think I have this figured out! It is a nice modification.
http://www.proiowafamily.org/board/index.php

User avatar
Céruwine
Registered User
Posts: 18
Joined: Mon Dec 20, 2004 1:58 pm
Location: Turkiye

Re: [2.0.19] Advanced Group Color Management

Post by Céruwine »

Hi.
I've been using this mod for one and half year. Amount one or two months after I've installed this mode, I decided to colorize the usernames on other pages (the pages of another modes for example). But at that time, I' made a mistake on codes and I don't remember where I made it.

So, on profile.php?mode=editprofile ; I can't get usernames to page, it writes
Username: username_color_213

instead of

Username: Céruwine.

Same problem appears when I try to send e-mail from my website as regular user. (not admin)

I installed smartor's album mode also. When I enter a user's personal gallery; it writes;
"The personal gallery of username_color_213..."

The problem is like this.
Image

I re-uploaded some of phpbb 2.0.22 original files such as profile.php, includes/usercp_register.php (profile_add_body.tpl also) to take my codechanges but the pages which I said still shows the usernames as username_color_213..

Note: The names on other pages are normal and colorized...

Any suggestion?
My English is poor :( Sorry :)

sparky678911
Registered User
Posts: 22
Joined: Sun Oct 09, 2005 6:53 pm

Re: [2.0.19] Advanced Group Color Management

Post by sparky678911 »

hi need some help please i went to my site today and i got this error nothing has been change since it been working fine and then i got this for no reason thank in advance for help
Fatal error: Call to a member function generate_css() on a non-object in D:\xampp\htdocs\new-site\includes\page_header.php on line 659
this is my page_header

Code: Select all

<?php
/***************************************************************************
 *                              page_header.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: page_header.php,v 1.106.2.25 2005/10/30 15:17:14 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

define('HEADER_INC', TRUE);

//
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
	$phpver = phpversion();

	$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');

	if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
	{
		if ( extension_loaded('zlib') )
		{
			ob_start('ob_gzhandler');
		}
	}
	else if ( $phpver > '4.0' )
	{
		if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
		{
			if ( extension_loaded('zlib') )
			{
				$do_gzip_compress = TRUE;
				ob_start();
				ob_implicit_flush(0);

				header('Content-Encoding: gzip');
			}
		}
	}
}

//
// Parse and show the overall header.
//
$template->set_filenames(array(
	'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

//
// Generate logged in/logged out status
//
if ( $userdata['session_logged_in'] )
{
	$u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
	$l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
}
else
{
	$u_login_logout = 'login.'.$phpEx;
	$l_login_logout = $lang['Login'];
}

$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : '';

//
// Get basic (usernames + totals) online
// situation
//
$logged_visible_online = 0;
$logged_hidden_online = 0;
$guests_online = 0;
$online_userlist = '';
$l_online_users = '';

if (defined('SHOW_ONLINE'))
{

	$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
	$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
		FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
		WHERE u.user_id = s.session_user_id
			AND s.session_time >= ".( time() - 300 ) . "
			$user_forum_sql
		ORDER BY u.username ASC, s.session_ip ASC";
		//-- mod : Advanced Group Color Management -------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT u.user_group_id, u.user_session_time, ', $sql);
//-- fin mod : Advanced Group Color Management ---------------------------------
	if( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
	}

	$userlist_ary = array();
	$userlist_visible = array();

	$prev_user_id = 0;
	$prev_user_ip = $prev_session_ip = '';

	while( $row = $db->sql_fetchrow($result) )
	{
		// User is logged in and therefor not a guest
		if ( $row['session_logged_in'] )
		{
			// Skip multiple sessions for one user
			if ( $row['user_id'] != $prev_user_id )
			{
				$style_color = '';
				//-- mod : Advanced Group Color Management -------------------------------------
//-- delete
//	if ( $row['user_level'] == ADMIN )
//	{
//		$row['username'] = '<b>' . $row['username'] . '</b>';
//		$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
//	}
//	else if ( $row['user_level'] == MOD )
//	{
//		$row['username'] = '<b>' . $row['username'] . '</b>';
//		$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
//	}
//-- add
				$style_color = ' class="' . $color->get_user_color($row['user_group_id'], $row['user_session_time']) . '"';
//-- fin mod : Advanced Group Color Management ---------------------------------

				if ( $row['user_allow_viewonline'] )
				{
					$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
					$logged_visible_online++;
				}
				else
				{
					$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
					$logged_hidden_online++;
				}

				if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
				{
					$online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
				}
			}

			$prev_user_id = $row['user_id'];
		}
		else
		{
			// Skip multiple sessions for one user
			if ( $row['session_ip'] != $prev_session_ip )
			{
				$guests_online++;
			}
		}

		$prev_session_ip = $row['session_ip'];
	}
	$db->sql_freeresult($result);

	if ( empty($online_userlist) )
	{
		$online_userlist = $lang['None'];
	}
	$online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist;

	$total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;

	if ( $total_online_users > $board_config['record_online_users'])
	{
		$board_config['record_online_users'] = $total_online_users;
		$board_config['record_online_date'] = time();

		$sql = "UPDATE " . CONFIG_TABLE . "
			SET config_value = '$total_online_users'
			WHERE config_name = 'record_online_users'";
		if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql);
		}

		$sql = "UPDATE " . CONFIG_TABLE . "
			SET config_value = '" . $board_config['record_online_date'] . "'
			WHERE config_name = 'record_online_date'";
		if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql);
		}
	}

	if ( $total_online_users == 0 )
	{
		$l_t_user_s = $lang['Online_users_zero_total'];
	}
	else if ( $total_online_users == 1 )
	{
		$l_t_user_s = $lang['Online_user_total'];
	}
	else
	{
		$l_t_user_s = $lang['Online_users_total'];
	}

	if ( $logged_visible_online == 0 )
	{
		$l_r_user_s = $lang['Reg_users_zero_total'];
	}
	else if ( $logged_visible_online == 1 )
	{
		$l_r_user_s = $lang['Reg_user_total'];
	}
	else
	{
		$l_r_user_s = $lang['Reg_users_total'];
	}

	if ( $logged_hidden_online == 0 )
	{
		$l_h_user_s = $lang['Hidden_users_zero_total'];
	}
	else if ( $logged_hidden_online == 1 )
	{
		$l_h_user_s = $lang['Hidden_user_total'];
	}
	else
	{
		$l_h_user_s = $lang['Hidden_users_total'];
	}

	if ( $guests_online == 0 )
	{
		$l_g_user_s = $lang['Guest_users_zero_total'];
	}
	else if ( $guests_online == 1 )
	{
		$l_g_user_s = $lang['Guest_user_total'];
	}
	else
	{
		$l_g_user_s = $lang['Guest_users_total'];
	}

	$l_online_users = sprintf($l_t_user_s, $total_online_users);
	$l_online_users .= sprintf($l_r_user_s, $logged_visible_online);
	$l_online_users .= sprintf($l_h_user_s, $logged_hidden_online);
	$l_online_users .= sprintf($l_g_user_s, $guests_online);
}
// Download MOD 5.0.0
if ( $userdata['user_new_download'] )
{
	$sql = "UPDATE " . USERS_TABLE . "
		SET user_new_download = 0
		WHERE user_id = " . $userdata['user_id'];
	if ( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, 'Could not update new download view for user', '', __LINE__, __FILE__, $sql);
	}

	$template->assign_block_vars('switch_new_download', array(
		'U_NEW_DOWNLOAD_POPUP' => append_sid('downloads.'.$phpEx.'?view=popup'))
	);
}

$sql = "SELECT config_value FROM " . DL_CONFIG_TABLE . "
	WHERE config_name = 'use_hacklist'";
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query download mod configuration", "", __LINE__, __FILE__, $sql);
}

$use_hacklist = 0;
while ( $row = $db->sql_fetchrow($result) )
{
	$use_hacklist = $row['config_value'];
}
$db->sql_freeresult($result);

if ($use_hacklist)
{
	$sql = "SELECT id FROM " . DOWNLOADS_TABLE . "
		WHERE hacklist = 1";
	if($result = $db->sql_query($sql))
	{
		$total = $db->sql_numrows($result);
		$db->sql_freeresult($result);

		if ($total)
		{
			$u_hacks_list = append_sid("hacks_list.$phpEx");
			$l_hacks_list = $lang['Dl_hacks_list'];
			$img_hacklist = '<img src="'.$images['Dl_mini_h'].'" border="0" alt="'.$lang['Dl_hacks_list'].'" title="'.$lang['Dl_hacks_list'].'" hspace="3" />';

			$template->assign_block_vars('switch_hacklist_on', array());
		}
		else
		{
			$u_hacks_list = $img_hacklist = $l_hacks_list = '';
		}
	}
}
// End Download MOD 5.0.0
//
// Obtain number of new private messages
// if user is logged in
//
if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) )
{
	if ( $userdata['user_new_privmsg'] )
	{
		$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
		$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

		if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
		{
			$sql = "UPDATE " . USERS_TABLE . "
				SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
				WHERE user_id = " . $userdata['user_id'];
			if ( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
			}

			$s_privmsg_new = 1;
			$icon_pm = $images['pm_new_msg'];
		}
		else
		{
			$s_privmsg_new = 0;
			$icon_pm = $images['pm_new_msg'];
		}
	}
	else
	{
		$l_privmsgs_text = $lang['No_new_pm'];

		$s_privmsg_new = 0;
		$icon_pm = $images['pm_no_new_msg'];
	}

	if ( $userdata['user_unread_privmsg'] )
	{
		$l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
		$l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
	}
	else
	{
		$l_privmsgs_text_unread = $lang['No_unread_pm'];
	}
}
else
{
	$icon_pm = $images['pm_no_new_msg'];
	$l_privmsgs_text = $lang['Login_check_pm'];
	$l_privmsgs_text_unread = '';
	$s_privmsg_new = 0;
}

//
// Generate HTML required for Mozilla Navigation bar
//
if (!isset($nav_links))
{
	$nav_links = array();
}

$nav_links_html = '';
$nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
while( list($nav_item, $nav_array) = @each($nav_links) )
{
	if ( !empty($nav_array['url']) )
	{
		$nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']);
	}
	else
	{
		// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
		while( list(,$nested_array) = each($nav_array) )
		{
			$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
		}
	}
}
// Start add - Online/Offline/Hidden Mod
// Define global text color
$online_color = ' style="color: #' . $theme['online_color'] . '"';
$offline_color = ' style="color: #' . $theme['offline_color'] . '"';
$hidden_color = ' style="color: #' . $theme['hidden_color'] . '"';
// End add - Online/Offline/Hidden Mod
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
if ( ($userdata['user_jobs'] + 7200) < time() )
{
	DEFINE('PAY_ME', true);
	include($phpbb_root_path . 'jobs.'.$phpEx);
}
// include the weblog lang file
$use_lang = ( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang'];
include($phpbb_root_path . 'language/lang_' . $use_lang . '/lang_weblog_main.' . $phpEx);
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
$hang_stats_count = NULL;
$hang_stats_left = NULL;
if (!defined('IN_HANGMAN'))
{
	define('IN_HANGMAN',true);
	include($phpbb_root_path.'includes/functions_hangman.php');
}
$hang_stats = get_hangman_stats();
$hang_stats_count = intval($hang_stats['count']);
$hang_stats_left = $hang_stats_count - intval($hang_stats['won']);
$template->assign_vars(array(
	'SITENAME' => $board_config['sitename'],
	'SITE_DESCRIPTION' => $board_config['site_desc'],
	'PAGE_TITLE' => $page_title,
	'L_USER_SHOPS' => $lang['user_shops'],
	'L_LOTTERY' => $lang['lottery'],
	'L_JOBS' => $lang['jobs'],
	'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
	'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
	'TOTAL_USERS_ONLINE' => $l_online_users,
	'LOGGED_IN_USER_LIST' => $online_userlist,
	'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
	'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
	'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
	'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,

	'PRIVMSG_IMG' => $icon_pm,

	'L_USERNAME' => $lang['Username'],
	'L_PASSWORD' => $lang['Password'],
	// Phoogle Map
	'L_PHOOGLE' => $lang['Phoogle_Map_Title'],
// End Phoogle Map
	'L_HACKLIST' => $l_hacks_list,
	'IMG_HACKLIST' => $img_hacklist,
	'L_DOWNLOADS' => $lang['Downloads'], 
	'U_HACKLIST' => $u_hacks_list,
	'U_DOWNLOADS' => append_sid("downloads.$phpEx"),
	'L_LOGIN_LOGOUT' => $l_login_logout,
	'L_LOGIN' => $lang['Login'],
	'L_LOG_ME_IN' => $lang['Log_me_in'],
	'L_AUTO_LOGIN' => $lang['Log_me_in'],
	'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
	'L_REGISTER' => $lang['Register'],
	'L_PROFILE' => $lang['Profile'],
	'L_SEARCH' => $lang['Search'],
	'L_PRIVATEMSGS' => $lang['Private_Messages'],
	'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],
	'L_MEMBERLIST' => $lang['Memberlist'],
	'L_FAQ' => $lang['FAQ'],
	//-- mod : Advanced Group Color Management -------------------------------------
//-- add
	'L_GROUP_LEGEND' => $lang['AGCM_legend'],
//-- fin mod : Advanced Group Color Management ---------------------------------
	'L_AUCTIONS' => $lang['auctions'],
	'L_SHOP' => $lang['shops'],
	'L_BANK' => $lang['bank'],
	'L_USERGROUPS' => $lang['Usergroups'],
	'L_SEARCH_NEW' => $lang['Search_new'],
	'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
	'L_SEARCH_SELF' => $lang['Search_your_posts'],
	'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
	'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
	'L_WEBLOGS' => $lang['Weblogs'],
	'L_WEBLOG_CONFIG' => $lang['Weblog_CP'],
	'L_MYWEBLOG' => $lang['Weblog_MyWeblog'],
	'L_WEBLOGS_NEWS' => $lang['Weblogs_news'],

	'U_WEBLOGS' => append_sid("weblogs.$phpEx"),
	'U_MYWEBLOG' => append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $userdata['user_weblog']),
	'U_WEBLOG_CONFIG' => append_sid("weblog_config.$phpEx"),
	'U_WEBLOGS_NEWS' => append_sid("weblogs_news.$phpEx"),

	'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'),
	'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
	'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),
	'U_INDEX' => append_sid('index.'.$phpEx),
	// Phoogle Map
	'U_PHOOGLE' =>append_sid('phoogle_map.'.$phpEx),
// End Phoogle Map
	'U_HANGMAN' => append_sid('hangman.'.$phpEx),
	'L_HANGMAN'=>'Hangman('.$hang_stats_left.'/'.$hang_stats_count.')',
	'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
	'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
	'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
	'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'),
	'U_SEARCH' => append_sid('search.'.$phpEx),
	'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx),
	'U_COURTHOUSE' => append_sid('courthouse.'.$phpEx),
	'I_COURTHOUSE' => $images['icon_mini_justice'],
	'L_COURTHOUSE' => $lang['Cell_courthouse'],
	'U_MODCP' => append_sid('modcp.'.$phpEx),
	'U_FAQ' => append_sid('faq.'.$phpEx),
	'U_USER_SHOPS' => append_sid('shop_users.'.$phpEx),
	'U_LOTTERY' => append_sid('lottery.'.$phpEx),
	
	'U_JOBS' => append_sid('jobs.'.$phpEx),
	'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
	'U_LOGIN_LOGOUT' => append_sid($u_login_logout),
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
	// Arcade MOD 
    'U_ACTIVITY' => append_sid('activity.'.$phpEx), 
    'L_ACTIVITY' => $lang['Activity'], 
	// Music Online
	'L_MUSIC' => $lang['Music'],
	'U_MUSIC' => append_sid('music.'.$phpEx),
	// sudoku mod
	'L_SUDOKU' => $lang['Sudoku'],
	'U_SUDOKU' => append_sid('sudoku.'.$phpEx),
	// end sudoku mod
	// Mighty Gorgon - Full Album Pack - BEGIN
	'L_ALBUM' => $lang['Album'],
	'U_ALBUM' => append_sid('album.'.$phpEx),
	'L_PIC_NAME' => $lang['Pic_Name'],
	'L_DESCRIPTION' => $lang['Description'],
	'L_GO' => $lang['Go'],
	'L_SEARCH_CONTENTS' => $lang['Search_Contents'],
	'L_SEARCH_MATCHES' => $lang['Search_Matches'],
	// Mighty Gorgon - Full Album Pack - END
	'U_SHOP' => append_sid('shop.'.$phpEx),
	'U_AUCTIONS' => append_sid('shop_auctions.'.$phpEx),
	'L_ROULETTE' => $lang['roulette'],
	'U_ROULETTE' => append_sid('roulette.'.$phpEx),
	// Bookies Mod
	'L_BOOKIES' => $lang['bookies'],
	'U_BOOKIES' => append_sid('bookies.'.$phpEx),
	'L_BOOKIE_ALLSTATS' => $lang['bookie_allstats'],
	'U_BOOKIE_ALLSTATS' => append_sid('bookie_allstats.'.$phpEx),
	'L_BOOKIE_YOURSTATS' => $lang['bookie_yourstats'],
	'U_BOOKIE_YOURSTATS' => append_sid('bookie_yourstats.'.$phpEx),
	'U_BANK' => append_sid('bank.'.$phpEx),
		'L_VCASINO' => $lang['VCasino'],
	'U_VCASINO' => append_sid('VCasino.'.$phpEx),
	// ezPortal
	'U_PORTAL' => append_sid('portal.'.$phpEx),
	'L_HOME' => $lang['Home'],

	'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
	'S_CONTENT_ENCODING' => $lang['ENCODING'],
	'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
	'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
	'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),
	'S_LOGIN_ACTION' => append_sid('login.'.$phpEx),

	'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
	'T_BODY_BACKGROUND' => $theme['body_background'],
	'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
	'T_BODY_TEXT' => '#'.$theme['body_text'],
	'T_BODY_LINK' => '#'.$theme['body_link'],
	'T_BODY_VLINK' => '#'.$theme['body_vlink'],
	'T_BODY_ALINK' => '#'.$theme['body_alink'],
	'T_BODY_HLINK' => '#'.$theme['body_hlink'],
	'T_TR_COLOR1' => '#'.$theme['tr_color1'],
	'T_TR_COLOR2' => '#'.$theme['tr_color2'],
	'T_TR_COLOR3' => '#'.$theme['tr_color3'],
	'T_TR_CLASS1' => $theme['tr_class1'],
	'T_TR_CLASS2' => $theme['tr_class2'],
	'T_TR_CLASS3' => $theme['tr_class3'],
	'T_TH_COLOR1' => '#'.$theme['th_color1'],
	'T_TH_COLOR2' => '#'.$theme['th_color2'],
	'T_TH_COLOR3' => '#'.$theme['th_color3'],
	'T_TH_CLASS1' => $theme['th_class1'],
	'T_TH_CLASS2' => $theme['th_class2'],
	'T_TH_CLASS3' => $theme['th_class3'],
	'T_TD_COLOR1' => '#'.$theme['td_color1'],
	'T_TD_COLOR2' => '#'.$theme['td_color2'],
	'T_TD_COLOR3' => '#'.$theme['td_color3'],
	'T_TD_CLASS1' => $theme['td_class1'],
	'T_TD_CLASS2' => $theme['td_class2'],
	'T_TD_CLASS3' => $theme['td_class3'],
	'T_FONTFACE1' => $theme['fontface1'],
	'T_FONTFACE2' => $theme['fontface2'],
	'T_FONTFACE3' => $theme['fontface3'],
	'T_FONTSIZE1' => $theme['fontsize1'],
	'T_FONTSIZE2' => $theme['fontsize2'],
	'T_FONTSIZE3' => $theme['fontsize3'],
	'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
	'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
	'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
	'T_SPAN_CLASS1' => $theme['span_class1'],
	'T_SPAN_CLASS2' => $theme['span_class2'],
	'T_SPAN_CLASS3' => $theme['span_class3'],
	// Start add - Online/Offline/Hidden Mod
	// Not used, but can help you...
	'T_ONLINE_COLOR' => '#' . $theme['online_color'],
	'T_OFFLINE_COLOR' => '#' . $theme['offline_color'],
	'T_HIDDEN_COLOR' => '#' . $theme['hidden_color'],
	// End add - Online/Offline/Hidden Mod

	'NAV_LINKS' => $nav_links_html)
);

//
// Login box?
//
if ( !$userdata['session_logged_in'] )
{
	$template->assign_block_vars('switch_user_logged_out', array());
	//
	// Allow autologin?
	//
	if (!isset($board_config['allow_autologin']) || $board_config['allow_autologin'] )
	{
		$template->assign_block_vars('switch_allow_autologin', array());
		$template->assign_block_vars('switch_user_logged_out.switch_allow_autologin', array());
	}
}
else
{
	$template->assign_block_vars('switch_user_logged_in', array());

	if ( !empty($userdata['user_popup_pm']) )
	{
		$template->assign_block_vars('switch_enable_pm_popup', array());
	}
}

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
if ( $userdata['user_cell_time'] > 0 && !defined('CELL') && $userdata['session_logged_in'] && $userdata['user_level'] != ADMIN && $userdata['user_cell_punishment'] == 1 )
{
	redirect(append_sid("cell.$phpEx", true));
}
//-- mod : Advanced Group Color Management -------------------------------------
//-- add
$color->generate_css();
//-- fin mod : Advanced Group Color Management ---------------------------------
$template->pparse('overall_header');

?>

User avatar
phorum.ws
Registered User
Posts: 108
Joined: Fri Jul 20, 2007 1:00 pm
Location: Australia
Name: Jay
Contact:

Re: [2.0.19] Advanced Group Color Management

Post by phorum.ws »

thanks mate i needed this mod.
Learning CSS, jQuery, Javascript - A Project Manager @Code_Collective Community-Based Dev Collaborative

ptyx
Registered User
Posts: 6
Joined: Tue Jul 24, 2007 9:09 am

Re: [2.0.19] Advanced Group Color Management

Post by ptyx »

I installed this MOD a few days ago on a phpbb v2.0.22 forum. It works nearly perfectly !

Thank you so much !

The thing is : I I'm facing a strange problem and I'm confused not to manage to find a related topic in the previous posts. Here is my problem :

All my groups have colors. And users have chosen a color, as usual. The problem is : when I update the group (adding a user, deleting a user), all the users in the group are loosing their color ! This means : they have to update their profile and choose back their color again !???

I'm completely confused by this little problem. It's maybe obvious ! Did someone meet this problem before ? Did I missed an option somewhere ? Would you think I made a mistake in install process for this MOD ?

Thanks in advance for your help !

User avatar
Baby Boy
Registered User
Posts: 207
Joined: Fri Jun 25, 2004 6:40 am
Contact:

Re: [2.0.19] Advanced Group Color Management

Post by Baby Boy »

I installed this mod but I am kind of confused. Does this mod allow for Usergroups to have colors assigned to them and then whatever members joins that group (or is assigned to that group) then their username color sync's to that color?

I remember (and know) there was such a mod. But I don't know where to find it, I thought this was it but when I installed it, in short saying, it wasn't what I expected.
Need a Fresh phpBB Installed, Upgraded or Hooked Up with Some NICE Mods. Send me an email... mdstreetsoulja@gmail.com for more info.

CashTalkz Dot Net - Participate in the Forum and Earn Money!

User avatar
Baby Boy
Registered User
Posts: 207
Joined: Fri Jun 25, 2004 6:40 am
Contact:

Re: [2.0.19] Advanced Group Color Management

Post by Baby Boy »

^^ Just checking up, is anyone able to answer this?
Need a Fresh phpBB Installed, Upgraded or Hooked Up with Some NICE Mods. Send me an email... mdstreetsoulja@gmail.com for more info.

CashTalkz Dot Net - Participate in the Forum and Earn Money!

ptyx
Registered User
Posts: 6
Joined: Tue Jul 24, 2007 9:09 am

Re: [2.0.19] Advanced Group Color Management

Post by ptyx »

I think I do not precisely understand the kind of hierarchy between group colors of this MOD (the one you can modify in admin page for group color). Could someone kindly explain it to me ? Or is there a web page I missed somewhere on this subject ?

Thanks in advance for answer !

Post Reply

Return to “[2.0.x] MOD Database Releases”