Simple Colored Usergroups

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!
29
66%
Very Good
8
18%
Good
3
7%
Fair
1
2%
Poor
3
7%
 
Total votes: 44

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Simple Colored Usergroups

Post by igorw »

You should NOT change the group id in phpmyadmin. It's just a number! You should not change it, because each of your users have their own group (aka user permissions). So just leave the things as they are.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

AstRonotTR
Registered User
Posts: 4
Joined: Fri Apr 13, 2007 9:10 pm

Re: Simple Colored Usergroups

Post by AstRonotTR »

okey I answered this problem Thank you :D

Sluff
Registered User
Posts: 17
Joined: Wed May 18, 2005 2:14 am

Re: Simple Colored Usergroups

Post by Sluff »

alright i had a quick question,i installed the mod and it works great..but here is my problem when people register on my site they dont get put into the registered group,i have to manually put them into the registered group is their another way for this to work?

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Re: Simple Colored Usergroups

Post by kkroo »

This is not a feature of the Mod, you can try the Simple Auto Groups mod to do that for you.

Hope that can help ya.
My MODs

Need a coder?

Enjoy my Mods? - Image

runegirlie
Registered User
Posts: 173
Joined: Sun Jul 31, 2005 6:08 pm

Re: Simple Colored Usergroups

Post by runegirlie »

I'm baaack :D

Before I post my new error .. again, thank you for the superb support you provide. My forum users LOVE the colors.

For my question: When I click to check the IP of users on my forum their name pops up on modcp.php as this:

Icey">

Ideas?

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Re: Simple Colored Usergroups

Post by kkroo »

Could ya post the outputted HTML?
My MODs

Need a coder?

Enjoy my Mods? - Image

crashfirephoenix
Registered User
Posts: 22
Joined: Thu Apr 12, 2007 1:51 am

Re: Simple Colored Usergroups

Post by crashfirephoenix »

ahhh help please. i installed this using only easymod but its giving me this error in the admin control panel and i dont know how to fix it:

Code: Select all

Error querying the users table.

DEBUG MODE

SQL Error : 1146 Table 'c374803_phpb1.COLOR_GROUPS_TABLE' doesn't exist

SELECT group_id, group_name FROM COLOR_GROUPS_TABLE

Line : 145
File : admin_color_groups.php
i dont know if i did something wrong..but the groups arent working. it looks like this:

Image

i tried to find phpbb_color_groups in phpmyadmin and here is what it looks like. i dont know if it matters though lol. look at it here:
http://img.photobucket.com/albums/v73/J ... ne/php.jpg

i'm a noob at this stuff so excuse me if its a stupid question :( but if someone could help me please it would be much appreciated. thanks in advance
Last edited by crashfirephoenix on Sat Apr 28, 2007 6:17 pm, edited 1 time in total.

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Re: Simple Colored Usergroups

Post by kkroo »

It appears that you didnt do the part for includes/constants.php

fix it up and it should work.
My MODs

Need a coder?

Enjoy my Mods? - Image

crashfirephoenix
Registered User
Posts: 22
Joined: Thu Apr 12, 2007 1:51 am

Re: Simple Colored Usergroups

Post by crashfirephoenix »

i think i fixed it?? but its still not working :( again i'm a noob at this stuff lol

this is what my include/constants.php looks like

Code: Select all

<?php
/***************************************************************************
 *                               constants.php
 *                            -------------------
 *   begin                : Saturday', Feb 13', 2001
 *   copyright            : ('C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: constants.php,v 1.47.2.6 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");
}

// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off


// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);

define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);


// User related
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
define('USER_ACTIVATION_ADMIN', 2);

define('USER_AVATAR_NONE', 0);
define('USER_AVATAR_UPLOAD', 1);
define('USER_AVATAR_REMOTE', 2);
define('USER_AVATAR_GALLERY', 3);


// Group settings
define('GROUP_OPEN', 0);
define('GROUP_CLOSED', 1);
define('GROUP_HIDDEN', 2);


// Forum state
define('FORUM_UNLOCKED', 0);
define('FORUM_LOCKED', 1);


// Topic status
define('TOPIC_UNLOCKED', 0);
define('TOPIC_LOCKED', 1);
define('TOPIC_MOVED', 2);
define('TOPIC_WATCH_NOTIFIED', 1);
define('TOPIC_WATCH_UN_NOTIFIED', 0);


// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


// SQL codes
define('BEGIN_TRANSACTION', 1);
define('END_TRANSACTION', 2);


// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);


// Private messaging
define('PRIVMSGS_READ_MAIL', 0);
define('PRIVMSGS_NEW_MAIL', 1);
define('PRIVMSGS_SENT_MAIL', 2);
define('PRIVMSGS_SAVED_IN_MAIL', 3);
define('PRIVMSGS_SAVED_OUT_MAIL', 4);
define('PRIVMSGS_UNREAD_MAIL', 5);


// URL PARAMETERS
define('POST_TOPIC_URL', 't');
define('POST_CAT_URL', 'c');
define('POST_FORUM_URL', 'f');
define('POST_USERS_URL', 'u');
define('POST_POST_URL', 'p');
define('POST_GROUPS_URL', 'g');

// Session parameters
define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);


// Page numbers for session handling
define('PAGE_INDEX', 0);
define('PAGE_LOGIN', -1);
define('PAGE_SEARCH', -2);
define('PAGE_REGISTER', -3);
define('PAGE_PROFILE', -4);
define('PAGE_VIEWONLINE', -6);
define('PAGE_VIEWMEMBERS', -7);
define('PAGE_FAQ', -8);
define('PAGE_POSTING', -9);
define('PAGE_PRIVMSGS', -10);
define('PAGE_GROUPCP', -11);
define('PAGE_TOPIC_OFFSET', 5000);


// Auth settings
define('AUTH_LIST_ALL', 0);
define('AUTH_ALL', 0);

define('AUTH_REG', 1);
define('AUTH_ACL', 2);
define('AUTH_MOD', 3);
define('AUTH_ADMIN', 5);

define('AUTH_VIEW', 1);
define('AUTH_READ', 2);
define('AUTH_POST', 3);
define('AUTH_REPLY', 4);
define('AUTH_EDIT', 5);
define('AUTH_DELETE', 6);
define('AUTH_ANNOUNCE', 7);
define('AUTH_STICKY', 8);
define('AUTH_POLLCREATE', 9);
define('AUTH_VOTE', 10);
define('AUTH_ATTACH', 11);


// Table names
define('CONFIRM_TABLE', $table_prefix.'confirm');
define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('COLOR_GROUPS_TABLE', $table_prefix.'color');
define('CONFIG_TABLE', $table_prefix.'config');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('FORUMS_TABLE', $table_prefix.'forums');
define('GROUPS_TABLE', $table_prefix.'groups');
define('POSTS_TABLE', $table_prefix.'posts');
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
define('PRUNE_TABLE', $table_prefix.'forum_prune');
define('RANKS_TABLE', $table_prefix.'ranks');
define('SEARCH_TABLE', $table_prefix.'search_results');
define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
define('SMILIES_TABLE', $table_prefix.'smilies');
define('THEMES_TABLE', $table_prefix.'themes');
define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
define('TOPICS_TABLE', $table_prefix.'topics');
define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
define('USER_GROUP_TABLE', $table_prefix.'user_group');
define('USERS_TABLE', $table_prefix.'users');
define('WORDS_TABLE', $table_prefix.'words');
define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

?>

and now it gives me a slightly different error lol

Code: Select all

Error querying the users table.

DEBUG MODE

SQL Error : 1146 Table 'c374803_phpb1.phpbb_color' doesn't exist

SELECT group_id, group_name FROM phpbb_color

Line : 145
File : admin_color_groups.php
Last edited by crashfirephoenix on Sat Apr 28, 2007 6:17 pm, edited 1 time in total.

mahiko
Registered User
Posts: 25
Joined: Tue Jun 06, 2006 3:39 pm
Contact:

Re: Simple Colored Usergroups

Post by mahiko »

kkroo wrote: It appears that you didnt do the part for includes/constants.php

fix it up and it should work.


I'm also having a problem, it doesn't color anyone not even the admin/moderators and it says "Legend: No Groups Exist", but there are four groups.

The install instructions never mention includes/constants.php

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Re: Simple Colored Usergroups

Post by kkroo »

When I posted earlier, I didnt examine your error message carefully. After reading it for a second time, I realized this problem isnt with my mod. You have another mod installed dealing with color groups. If you want to use this one, you must first uninstall the other one or youll get all sorts of problems
My MODs

Need a coder?

Enjoy my Mods? - Image

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Simple Colored Usergroups

Post by lefty74 »

Code: Select all

##	MOD Features
##	----------------------------------------------------------
##	* Different sets of colors for each template.
##	* Automaticly use first color found for template if template color unset.
##	* 1 MySQL Query per page added.
##	* User Indepentant Group Priorities.
##	* Group coloring optional, Not applied to all groups.
##	* Ability to change the order of groups on the legend.
##	* Ability to control users Group Priorities.
##	* Show and group group and members for admin/mod if group is hidden.
just a quick question, does it also only add 1 query if I use scu_global and color username in other areas or will there be more?

thanks
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

mahiko
Registered User
Posts: 25
Joined: Tue Jun 06, 2006 3:39 pm
Contact:

Re: Simple Colored Usergroups

Post by mahiko »

kkroo wrote: When I posted earlier, I didnt examine your error message carefully. After reading it for a second time, I realized this problem isnt with my mod. You have another mod installed dealing with color groups. If you want to use this one, you must first uninstall the other one or youll get all sorts of problems

I don't think so, I have the following Mods installed:

Code: Select all

Easymod
Cash Mod
Lottery Mod
Shop Mod
User Shops Mod
Auction Mod
Bank Mod
Job Mod
Bar Mod
Possibly a conflict with the skin?

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Re: Simple Colored Usergroups

Post by kkroo »

lefty74, This mod only uses one query per page to select data

mahiko, according to the error message, you have another mod that has a file name admin_color_groups.php This isnt part of my mod and must be part of another color group mod.
My MODs

Need a coder?

Enjoy my Mods? - Image

mahiko
Registered User
Posts: 25
Joined: Tue Jun 06, 2006 3:39 pm
Contact:

Re: Simple Colored Usergroups

Post by mahiko »

kkroo wrote: lefty74, This mod only uses one query per page to select data

mahiko, according to the error message, you have another mod that has a file name admin_color_groups.php This isnt part of my mod and must be part of another color group mod.

...That was crashfirepheonix -_-

Post Reply

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