|
|
#1 (permalink) |
|
Hall Of Famer
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
|
How to change the blue color?
How does one change the color of the background of the league "home page" title bar, where the name of the league and the date are displayed on the far left side?
This color is 15203E, but I've changed it in the styles.css file, and the color doesn't change within the game. All the other areas seem to be responding to changes in the style sheet, although only newly generated reports will reflect the latest version of one's .css file. The color I'm referring to is the dark blue in this screenshot, where the white writing says "Jamaica League 01-01-2000/Home". |
|
|
|
|
|
#2 (permalink) |
|
Hall Of Famer
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
|
In the template files, I've found references to this color, which is a token (Andreas discusses "tokens" in this thread). It's identified by the code
Code:
%LEAGUE_FG_COLOR Where could this value be hiding? |
|
|
|
|
|
#3 (permalink) |
|
All Star Starter
Join Date: Dec 2001
Location: Litchfield Park, AZ
Posts: 1,671
Thanks: 58
Thanked 30x in 19 posts
|
That's a great question and one I've been trying to figure out for 2 years. Please let me know if you find it.
__________________
Mass Select feature in OOTP11! woot! GM - NC Clippers of the NPBL; 2001,2004,2007 FF Central Division Champs; 2001, 2004, 2007,2038 FFL Champions; 2004,2038 NPBL Champions |
|
|
|
|
|
#4 (permalink) |
|
Hall Of Famer
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
|
I'm also pursuing the answer to this question in the HTML Customization Guide thread.
|
|
|
|
|
|
#5 (permalink) |
|
Hall Of Famer
Join Date: Nov 2002
Posts: 2,749
Thanks: 15
Thanked 275x in 125 posts
|
I haven't been able to find a way to set the value of %LEAGUE_BG_COLOR in the game or any style sheets, however you can remove the reference to it and set it directly in the template file that generates that portion of the HTML page.
The file is called "league_title_bar.tpl", and resides in the OOTP templates folder. You'll probably want to copy the whole templates folder into your league folder and edit that copy of it so it only applies to the league you want it to instead of all leagues. You league folder won't have a template folder in it, but if you put the OOTP templates folder in there, it overrides the OOTP one. I think you have to copy the entire templates folder into your league folder for the custom template to work. Once you've got a copy of the templates folder in your league folder, open the "league_title_bar.tpl" file. There will be two spots where %LEAGUE_BG_COLOR needs to be replaced. Enter the hex code of the color you want preceded by a pound sign (e.g. #FF0000 for red), and remove the brackets. You can also change the color of the text by replacing %LEAGUE_FG_COLOR with a hex code. So as an example, change Code:
background-color:[%LEAGUE_BG_COLOR];"> Code:
background-color:#FF0000;"> %LEAGUE_FG_COLOR is the white text color. Finally, if you do this with the game open, you'll have to restart the game or switch over to another league and then back for the change to take effect.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues Other Mods: 19th Century: Schedules, FaceGen BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds PEBA - Connecticut Nutmeggers Last edited by fhomess; 09-22-2008 at 01:40 AM. |
|
|
|
|
|
#6 (permalink) |
|
Hall Of Famer
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
|
Excellent suggestion, thanks a ton!
Workarounds like these are necessary to mod many of the portions of the templates and the resulting HTML. I never thought about just replacing a token with a value. I'm already switching out template sets to generate reports for different leagues and circumstances, so that's no big deal. |
|
|
|
|
|
#7 (permalink) |
|
All Star Starter
Join Date: Dec 2001
Location: Litchfield Park, AZ
Posts: 1,671
Thanks: 58
Thanked 30x in 19 posts
|
ahhhh...that's a great idea. thanks!
One word about editing tpl files though. I odd errors when I converted my OOTP8 game to OOTP9 because I had modified some tpl files. Once I placed the default files into my league folder, all the errors went away. So just keep that in mind. thanks, and I'll give this a whirl tonight!
__________________
Mass Select feature in OOTP11! woot! GM - NC Clippers of the NPBL; 2001,2004,2007 FF Central Division Champs; 2001, 2004, 2007,2038 FFL Champions; 2004,2038 NPBL Champions |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|