Bluepearl Design
Go Back   Bluepearl Design > Bluepearl Templates > Free phpBB Templates > ClanzDarkness

Little help with admin / mod colors

Our popular dark gaming template for phpBB

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 06-13-2004, 10:11 PM   #1 (permalink)
 
Title: Member
Join Date: Jun 2004
Location: Louisville, KY
Posts: 3
Rep Power: 0 dustoff99 is on a distinguished road
Send a message via MSN to dustoff99
Re: Little help with admin / mod colors

I am a total nOOb to phpBB, our clan is swithing from ezboard to phpBB. Many thanks for the theme that you created and shared for others to use.

My question, how do you change the admin / mod colors?
__________________
dustoff99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2004, 11:30 PM   #2 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,739
Images: 386
Blog Entries: 5
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Little help with admin / mod colors

edit the files within the admin folder
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2004, 01:12 AM   #3 (permalink)
 
Title: Member
Join Date: Jun 2004
Location: Louisville, KY
Posts: 3
Rep Power: 0 dustoff99 is on a distinguished road
Send a message via MSN to dustoff99
Re: Little help with admin / mod colors

I just didn't know which file it was that contained that info...I believe I have opened up every .tpl file .css file, in the admin folder (again total nOOb over here) and I didn't see any reference to mod / admin color...
__________________
dustoff99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2004, 01:31 AM   #4 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,739
Images: 386
Blog Entries: 5
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Little help with admin / mod colors

oh those colors lol, check this out:

How do I change the Admin and Moderator colors on my forum index?


Well, we can change the admin and moderator colors through our admin control panel, go to Styles Admin ---> Management ---> Edit your current template ---> Scroll down to Font Colour 2: and Font Colour 3:

Change the hex code of this to reflect your desired colors
Font Colour 2: == Moderator
Font Colour 3: == Admin

Problems
When you do this, you have just changed all fonts that use the font colour 2 and 3. It probably wont look attractive, nor will it be exactly what you want.

The best way.
Edit Page Header file
What we need to do is to edit phpbb manually. Pretty simple. We need to do the fallowing

Download the page_header.php file from the phpBB2/includes/ folder

Make an extra copy, just incase

Open it in your favorite text editor (WordPad.. notepad.... ect.)

For the Admin...
Code:


#######
##Find## Line 114
######
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>';
}



Notice the fallowing code
Code:

' . $theme['fontcolor3'] . '


This is what we need to replace. We need to replace it with our own code. We want a hex code.

Replace that section with your hex code of choice. Mine is going to look like this

Code:

000000



We should replace our new code with something that looks like
Code:


##########
##Replace## Line 114
#########
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#000000">' . $username . '</b>';
}


Notice the Hex Code? That?s the only change. Now we need to do the same to our Moderator. Scroll down about 4 lines to?

Code:


#######
##Find## Line 126
######
if ( $row['user_level'] == MOD )
{
$username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>';
}



And replace it with your desired hex code for the MOD as above,
Code:


##########
##Replace## Line 126
#########
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#ffffff">' . $username . '</b>';
}





One more set we need to change.
Code:


#######
##Find## Line 363
######

L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),




We need to change add the hex code to reflect our ADMIN color above.
Code:


##########
##Replace## Line 363
#########
L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#000000">', '</span>'),




Now we need to change the MOD Colors.
Code:


#######
##Find## Line 364
#######
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),



We need to change add the hex code to reflect our ADMIN color above.

Code:


##########
##Replace## Line 364
#########
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#ffffff ">', '</span>'),






Now we are done, Save and upload the new file over the old one.

found this @ http://www.phpbb.com/kb/article.php?article_id=52
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2004, 02:06 AM   #5 (permalink)
 
Title: Member
Join Date: Jun 2004
Location: Louisville, KY
Posts: 3
Rep Power: 0 dustoff99 is on a distinguished road
Send a message via MSN to dustoff99
Re: Little help with admin / mod colors

Quote:
Download the page_header.php file from the phpBB2/includes/ folder
Where did you get the page_header.php? I have a page_header.tpl file but it didn't have any of those lines in it....
__________________
dustoff99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2004, 12:07 PM   #6 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,739
Images: 386
Blog Entries: 5
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Little help with admin / mod colors

this file is not in your templates directory, but in your includes directory:

/www/forum/includes/page_header.php
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Little help with admin / mod colors
Thread Thread Starter Forum Replies Last Post
2 colors for different category Stefano Virgilli Need Help? 9 06-02-2007 04:59 AM
Colors... allydm ClanzDarkness 13 03-11-2006 10:57 PM
Colors Are Messed Up! Mapex Clanzi2K 19 01-26-2006 01:05 PM
Design Problem with other colors in ACP Janis ClanzDarkness 4 06-14-2004 10:02 PM
SOME1 HELP ME PLZ:( ShadowQ Need Help? 23 03-15-2004 08:54 AM


  
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
Bluepearl Templates

All times are GMT +11. The time now is 06:37 AM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55