Página 2 de 2

Re: Colores de grupo distintos por cada estilo

Publicado: 06 Jul 2010, 14:55
por Gabriel Grey
Acabo de escribir un mensaje en phpbb.de a ver si los alemanes pueden echarme una mano.


Esta tarde buscaré más concienzudamente en ese foro a ver si encuentro algo... Ya os contaré.

Re: Colores de grupo distintos por cada estilo

Publicado: 06 Jul 2010, 16:08
por andredmau5
en vista de que no encuentra soluciones
vea le doy una:

vaya al ACP -> Usuarios y grupos -> Administrar grupos

ahí a cada grupo le da en "preferencias" luego donde dice "color de grupo" selecciona un color que vaya bien para tus dos estilos, hazlo así para cada grupo mientras encuentras una solución :ok:

Re: Colores de grupo distintos por cada estilo

Publicado: 06 Jul 2010, 17:23
por Gabriel Grey
Gracias, andredmau5...


Quisiera intentarlo un poquito más antes de rendirme....

Re: Colores de grupo distintos por cada estilo

Publicado: 06 Jul 2010, 20:58
por Gabriel Grey
Hay una solución!


4_seven escribió:what u want is to realize different group-colours of given nick-name for other styles, which is totally different from the intention of this thread. so my code works from the very beginning, only thing is, that u post the false request in the false thread.

what u want u can realize with this

open

includes/functions_content.php

find

Código: Seleccionar todo

            // Build correct username colour
            $username_colour = ($username_colour) ? '#' . $username_colour : '';  
after add

Código: Seleccionar todo

            if (($user->theme['theme_path'] == 'prosilver') && ($username_colour == '#AA0000'))
            {
            $username_colour = 'blue';
            }
            else if (($user->theme['theme_path'] == 'subsilver2') && ($username_colour == '#AA0000'))
            {
            $username_colour = 'grey';
            }  
---------------------------------

explanation
if (($user->theme['theme_path'] == 'prosilver') && ($username_colour == '#AA0000'))
{
$username_colour = 'blue';
}
else if (($user->theme['theme_path'] == 'subsilver2') && ($username_colour == '#AA0000'))
{
$username_colour = 'grey';
}
prosilver = enter here the exact style name as shown in table phpbb_styles
#AA0000 = enter here your exact current group-colour as shown in table phpbb_groups under group_colour (with #)
blue = enter here your preferred colour for given style / syntax: #123FF6 or lightgrey

expand the list for each group u want to re-colour as u want.
therefore u must copy the complete block and enter a different "current group-colour".



Podéis encontrarla aquí:
http://www.phpbb.com/community/viewtopi ... #p12818760

Re: Colores de grupo distintos por cada estilo

Publicado: 06 Jul 2010, 21:15
por HuanManwe
me alegro por tí y por tu insistencia :bravo: Mención especial al usuario 4_seven en el foro oficial.