Colourized standart groups

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.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28271
Joined: Sat Aug 16, 2003 7:36 am

Colourized standart groups

Post by Extensions Robot »

Modification name: Colourized standart groups
Author: rxu
Modification description: This mod adds colours for standart phpBB2 groups and their members.
Modification version: 1.1.4
Tested on phpBB version: See below

Download file: Colorized_standart_groups_1.2.0.zip
File size: 9954 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Add-Ons
  2. phpbb
    1. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Sun Dec 23, 2007 5:43 pm, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26257
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Colourized standart groups

Post by Paul »

Modification validated/released

Notes:
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
terminatoronly
Registered User
Posts: 93
Joined: Wed Jun 13, 2007 7:55 pm

Re: Colourized standart groups

Post by terminatoronly »

Hey Mate,
Good work just want to ask you if you have a screenshots or a demo?if possible


Edited :
I Wish If This Mod Adds in the Legend when u see the group and you click on the group you go to /memberlist.php?mode=group&g=***

better than going to groupcp i hate that i wish if its added to tell me that it do this already :d and if not to tell me how to do this :) if u didnt get what i mean go to the phpbb.com/community and in the who is online u can see the group names in colors like Developers and when u press on it u will be redirected to /memberlist.php?mode=group&g=***

thanks alot for your hard work :)
rxu
Extensions Development Team
Posts: 3293
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Colourized standart groups

Post by rxu »

terminatoronly wrote:I Wish If This Mod Adds in the Legend when u see the group and you click on the group you go to /memberlist.php?mode=group&g=***
You've got it! :)

You can look at the pair of sceenshots here and here.
terminatoronly
Registered User
Posts: 93
Joined: Wed Jun 13, 2007 7:55 pm

Re: Colourized standart groups

Post by terminatoronly »

GoOd Mod Should Install It Right Now :D
cadv0r
Registered User
Posts: 1
Joined: Fri Aug 17, 2007 2:51 pm

Re: Colourized standart groups

Post by cadv0r »

Hello to colorize username in search result :

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, p.*,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_sig_bbcode_uid
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_colour
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT t.*, f.forum_id, f.forum_name, 
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_id
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_colour
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u2.user_id as id2
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u2.user_colour as user_colour2
#
#-----[ FIND ]------------------------------------------
#
$poster = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$searchset[$i]['user_id'])
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 . '" style="color:' . $searchset[$i]['user_colour']
#
#-----[ FIND ]------------------------------------------
#
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? 
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$searchset[$i]['user_id'])
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 . '" style="color:' . $searchset[$i]['user_colour']
#
#-----[ FIND ]------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( 
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$searchset[$i]['id2'])
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 . '" style="color:' . $searchset[$i]['user_colour2']

PULLMAN
Registered User
Posts: 3
Joined: Mon Sep 10, 2007 5:35 am

Re: Colourized standart groups

Post by PULLMAN »

Hi everyone, I dont speak english only a little, help me, you can look at this:

Image

too I have a problem whith this

Code: Select all

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------#
whosonline.gif
#
#-----[ IN-LINE FIND ]------------------------------------------
#
rowspan="{%:1}"
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/groupcp_info_body.tpl#
#-----[ FIND ]------------------------------------------
#
{L_NO_MEMBERS}
#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="{%:1}"
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
#
#-----[ FIND ]------------------------------------------
#
{L_HIDDEN_MEMBERS}
#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="{%:1}"
#
#-----[ INCREMENT ]------------------------------------------
#
%:1 +1
don't exist this ="{%:1}"

help me please It's very nice this mod

I want install it like http://www.phpbbguru.net/community/download.php?id=2765 :cry:

thank you :cry:
rxu
Extensions Development Team
Posts: 3293
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Colourized standart groups

Post by rxu »

{%:1} means the digit that actually presents in code.
%:1 +1 means that you have to increment the digit by 1.
For example, if you've found rowspan="3", you should change 3 to 4, et cetera.
Flowww
Registered User
Posts: 5
Joined: Sun Oct 14, 2007 2:27 pm

Re: Colourized standart groups

Post by Flowww »

Hello,

Sorry for my English, i don't speak very well.
I installed this mod and i have now some bugs.
I don't know where is the problem, the source code is like the manual.
If somebody can help me...

1) First problem, after the install, all my users have the same group color.. I have 600 users, and only 40-50 are in a group. But in the database, they have all the color of the default group. I have 5 diferents groups and the color is the same in all (same of default group).

2) When i want register a new member, it's good, no color is applicated. By when i put the member into a group, it's the same, the user don't take the color.

3) The only error, is in the groupcp module. When i check an user for use default group, phpbb generate this message :
Could not obtain moderator status

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND aa.group_id = ug.group_id AND aa.auth_mod = 1 ' at line 3

SELECT ug.user_id, ug.group_id FROM phpbb_auth_access aa, phpbb_user_group ug WHERE ug.user_id IN () AND aa.group_id = ug.group_id AND aa.auth_mod = 1 GROUP BY ug.user_id, ug.group_id ORDER BY ug.user_id, ug.group_id

Line : 656
File : groupcp.php
You can see the forum at this adress : http://forum.confrerie-des-ombres.com/index.php

Thank you for your help,

Florian
rxu
Extensions Development Team
Posts: 3293
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Colourized standart groups

Post by rxu »

Hello Flowww,

About questions 1 and 2: basically, there're no colours assigned to users and groups after mod installation by default. You should assign colours to all the groups first and then check them as a default for users you want to have their colours.

About question 3: try to apply the following code to fix the error:

Code: Select all

OPEN 
groupcp.php 

FIND 
                  if ( $group_info['auth_mod'] ) 

FIND 
                  if ( $group_info['auth_mod'] ) 

REPLACE WITH 
                  if ( $group_info['auth_mod'] && !empty($members) )
Thanks :)
rxu
Extensions Development Team
Posts: 3293
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Colourized standart groups

Post by rxu »

In addition, when a new member have registered, it is not enough just to put him into colourized group, you should check this group as a default for the user as well.
Flowww
Registered User
Posts: 5
Joined: Sun Oct 14, 2007 2:27 pm

Re: Colourized standart groups

Post by Flowww »

Thank you for your rapid answer :D

It's now ok for the 3) , i can update the default color group for users.

Maybe, i don't understand your answer for the other point.
http://forum.confrerie-des-ombres.com/memberlist.php
All my members are in yellow, like my group " Ombres - Communauté". Or, only 15-20 users are in this group...

Other problem, this is an another group : http://forum.confrerie-des-ombres.com/groupcp.php?g=866
I choose the red color, but all my users in this group are in yellow like my default group...

Maybe i don't use normaly the mod?
I must choose default group for each user?
If i have an user in some groups, witch color is used?

Thank you for your help !

Florian
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: Colourized standart groups

Post by A_O_C »

im sorry, i dont see the difference between this mod and the SIMPLE COLORED USERGROUPS mod. im very happy with SCU, but am always open to switching if there is a must have feature.
rxu
Extensions Development Team
Posts: 3293
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Colourized standart groups

Post by rxu »

Flowww wrote:I must choose default group for each user?
Exactly! :)

A_O_C
You're absolutely free to use any mod you prefer.
Thanks.
Flowww
Registered User
Posts: 5
Joined: Sun Oct 14, 2007 2:27 pm

Re: Colourized standart groups

Post by Flowww »

Oki ! Thanks !

And now, what can i do for reset the color of all my users not in a group?
And when i want remove a color for a user, for just have no color, what is the solution? :P

Florian
Post Reply

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