Author |
Message |
Pride
Regular


Joined: Oct 22, 2003
Posts: 59
|
Posted:
Mon Feb 23, 2004 7:45 am |
|
In custom blocks that are added to the front page Center Up area... where is the code located that changes the color of the Block Title?
(Not the blocks along the side)
www.fites.net |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Mon Feb 23, 2004 11:11 am |
|
In mainfile.php under function themecenterbox |
|
|
|
 |
Pride

|
Posted:
Mon Feb 23, 2004 11:24 am |
|
Code:
function themecenterbox($title, $content) {
OpenTable();
echo "<center><font color=\"FFFFFF\" class=\"option\"><b>$title</b></font></center><br>"
."$content";
CloseTable();
echo "<br>";
}
|
I did this, and it didnt change it. |
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 11:25 am |
|
|
|
 |
dezina
Theme Guru

Joined: Dec 26, 2002
Posts: 57
Location: UK
|
Posted:
Wed Mar 03, 2004 11:52 am |
|
Try coding it into style.css
You have specified a colour in your code, but the class as "option".
Depends what colour "option" is set at in style.css of theme currently in use. |
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 11:58 am |
|
Here is my mainfile.php
Code:
function themecenterbox($titlecenterbox, $content) {
OpenTable();
echo "<center><font class=\"titleblock\"><b>$titlecenterbox</b></font></center><br>"
."$content";
CloseTable();
echo "<br>";
|
|
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 11:59 am |
|
Here is my style.css
Code:
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
body {scrollbar-3dlight-color : #FF9900; scrollbar-arrow-color : #FF9900; scrollbar-base-color : #222222; scrollbar-darkshadow-color : #FF9900; scrollbar-face-color : #222222; scrollbar-highlight-color : #FF9900; scrollbar-shadow-color : #FF9900; scrollbar-track-color : #222222; }
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
A:link {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:active {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:visited {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:hover {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.titlecenterbox {BACKGROUND: none; COLOR: #FF0000; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.storytitle {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent {BACKGROUND: none; COLOR: #222222; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.titleblock {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.small {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 9px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.texte {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FF0000}
select { background-color : #222222; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border: 0px solid #FF9900; border-color : #FF9900; }
input { background-color : #555555; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border: 1px solid #000000; border-color : #000000; }
textarea { background-color : #555555; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border: 1px solid #000000; border-color : #000000; }
input.post, textarea.post, select { background-color : #555555; }
input { text-indent : 2px; }
input.button { background-color : #222222; color : #FF9900; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; border: 0px solid #000000; }
input.radio {background-color: #222222;}
input.mainoption { background-color : #000000; font-weight : bold; }
input.liteoption { background-color : #555555; font-weight : normal; }
|
|
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 12:01 pm |
|
So what am I doing wrong? |
|
|
|
 |
dezina

|
Posted:
Wed Mar 03, 2004 12:08 pm |
|
Code:.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px;
|
In style.css, "option" class colour is set as black, so introduce another class in your style.css called "option1", code the colour as white i.e. #FFFFFF, and then code your center block to class "option1". |
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 12:32 pm |
|
I am sorry, I am just not getting this.
mainfile.php
Code:
function themecenterbox($option1, $content) {
OpenTable();
echo "<center><font class=\"title\"><b>$option1</b></font></center><br>"
."$content";
CloseTable();
echo "<br>";
|
style.css
Code:
.boxcontent {BACKGROUND: none; COLOR: #222222; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.option1 {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.titleblock {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
|
Am I editing the right files? Am I forgetting a variable? |
|
|
|
 |
dezina

|
Posted:
Wed Mar 03, 2004 1:09 pm |
|
Should be
Code:
function themecenterbox($title, $content) {
OpenTable();
echo "<center><font class=\"option1\"><b>$title</b></font></center><br>"
."$content";
CloseTable();
echo "<br>";
|
Remember to clear cookies/refresh browser often, or you will not see changes made.
If you change themes on your site, or offer change of themes to your users/members, this recoding may not work, depending on themes used.  |
|
|
|
 |
Pride

|
Posted:
Wed Mar 03, 2004 2:12 pm |
|
I updated using the above code change....
Still didnt make a change. I force the use of this single theme, and I have refreshed half a dozen times. |
|
|
|
 |
dezina

|
Posted:
Thu Mar 04, 2004 2:36 am |
|
Without having a copy of actual theme you are using, to test, regret cannot help you further on this  |
|
|
|
 |
Pride

|
Posted:
Thu Mar 04, 2004 6:50 am |
|
Its ok, I tore the code apart last night, and found that the class=option call is being referred to somewhere else in the code, in another file perhaps. I band-aided it, so it is ok.
I appreciate your help, and wish I could have provided enough info for you to help me out.
Have a great day! |
|
|
|
 |
dezina

|
Posted:
Thu Mar 04, 2004 6:55 am |
|
At least you stuck at it...well done for trying  |
|
|
|
 |
|