User Color Everywhere

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.
LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: User Color Everywhere

Post by LANFS »

I was changing it in page_header.php :oops:
Now it works just great! Thanks a lot. :)
THDInfernos
Registered User
Posts: 57
Joined: Sun Nov 25, 2007 10:31 pm

Re: User Color Everywhere

Post by THDInfernos »

I have problems with this, i installed Simple Colored Usegroups and created a new group "Admin" and colored it red, when i install this mod throughout the forum it does not appear as red but instead with the default admin color which is orange

Urgent, Anyone know how i can fix this?
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Color Everywhere

Post by RMcGirr83 »

Simple colored usergroups would not work with this mod as is as the groups are assigned, or can be, different colors. If you want that mod then you should uninstall this one.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Color Everywhere

Post by RMcGirr83 »

As phpbb v 2.0.x will cease being supported in 2009, I am no longer supporting this mod.

If the MODS would please lock this topic, I would appreciate it.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: User Color Everywhere

Post by LANFS »

How come the usernames are not colored in the admin panel index? :?
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Color Everywhere

Post by RMcGirr83 »

Because no edits were done on admin/index.php
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: User Color Everywhere

Post by LANFS »

So where are the edits? How come the name is User color everywhere and not User color somewhere? :roll:

I apologise, I don't wanna be rude. :D
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Color Everywhere

Post by RMcGirr83 »

Okay, maybe it should be called User Color here and there
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: User Color Everywhere

Post by LANFS »

Anyone want to fix this? :cry:
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Color Everywhere

Post by RMcGirr83 »

:roll:
OPEN

admin/index.php

FIND

Code: Select all

$sql = "SELECT u.user_id, u.username,
AFTER, ADD

Code: Select all

 u.user_level,

FIND

Code: Select all

$reg_userid_ary[] = $onlinerow_reg[$i]['user_id'];
AFTER, ADD

Code: Select all

        		if ( $onlinerow_reg[$i]['user_level'] == ADMIN )
        		{
        			$user_color = 'style="color:#' . $theme['fontcolor3'] . '"';
        		}
        		else if ( $onlinerow_reg[$i]['user_level'] == MOD )
        		{
        			$user_color = 'style="color:#' . $theme['fontcolor2'] . '"';
                }
FIND

Code: Select all


"USERNAME" => $username,
AFTER, ADD

Code: Select all


"USER_COLOR" => $user_color,
OPEN

templates/subSilver/admin/index_body.tpl

FIND

Code: Select all

<a href="{reg_user_row.U_USER_PROFILE}" class="gen" 
AFTER, ADD

Code: Select all

{reg_user_row.USER_COLOR}
EoM
I haven't tested the code above though, so user beware.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
junkun13
Registered User
Posts: 1
Joined: Sun Jul 20, 2008 2:55 pm

Re: User Color Everywhere

Post by junkun13 »

I've encountered a problem it seems my overall_header.tpl has a problem

I can't find this

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]---------------------------------------------
#
<td height="25" align="center" valign="top"
Post Reply

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