Log in

View Full Version : Font Colour Along With Replied Background Colour.


Myztic
01-30-2003, 04:07 AM
When reading threads on my board.. I would like the second post to have a different font colour and background then the 1st post..

so the 1st post would be 1 colour and font scheme.. then the 2nd would be a different scheme.. and the 3rd would be the same as the 1st.. and the 4th would be the same as the 2nd.. and so on.

How do i change the font and back ground colour?

Thank you!

Myztic
01-31-2003, 04:46 AM
?..

Myztic
01-31-2003, 11:02 AM
:( help plea.se..

Dean C
01-31-2003, 03:46 PM
Well the posts background should alternate in color automatically.


NOT TESTED!

For the font color go into functions.php and find this:


if ($counter%2==0) {
$post[backcolor]="#13486D";
$post[bgclass] = "alt1";
} else {
$post[backcolor]="#1C5780";
$post[bgclass] = "alt2";
}


Below it add:


if ($counter%2==0) {
$post[textcolor]="{firsttextcolor}";
$post[textclass] = "text1";
} else {
$post[textcolor]="{secondtextcolor}";
$post[textclass] = "text2";



Then just change the <font> tags color around the $post[message] variable in your 'postbit' template to suit.

Also you must create the {firsttextcolor} and {secondtextcolor} replacements ;)

Let me know if it works ;)

Regards

- miSt

Myztic
02-06-2003, 06:47 PM
I tried finding "functions.php" but apparently i am too dumb for even the smallest issues.

i dont know where it is.. i checked in myphpadmin... i looked in other places too but i couldnt find it.

where is it?

thanx

Logik
02-06-2003, 06:54 PM
Its a file. Its in your FTP

Dean C
02-06-2003, 07:03 PM
Hehe yes its a file located in your admin directory. Open it up and then do what i said :)

- miSt

Myztic
02-06-2003, 07:36 PM
i went in there.. it looks like i could really screw something up bad. so i better not touch it.

but why does it require a hack just to change my font colour? there should be an option for that.. cuz this hacking stuff is too complicated.

Logik
02-06-2003, 08:03 PM
There is no option. It requires hacking. Sorry. :(

Dean C
02-07-2003, 03:38 PM
Indeed. Well if i had the time i would test this for you but i don't sorry :(

- miSt

Myztic
02-21-2003, 12:47 PM
i changed this....

if ($counter%2==0) {
$post[textcolor]="{firsttextcolor}";
$post[textclass] = "text1";
} else {
$post[textcolor]="{secondtextcolor}";
$post[textclass] = "text2";

to..

if ($counter%2==0) {
$post[textcolor]="{firsttextcolor}";
$post[textclass] = "text1";
} else {
$post[textcolor]="silver";
$post[textclass] = "text2";

and it didnt work...

i also need to change the second background colour as well... because i think if i change it using my admin feature... it will also change the colour on my main page as well.. but i only want just the background colour of the every second post column to be changed.. and my main forum page to remain with the colour it has now..

...Thanx

Colon33
02-21-2003, 07:24 PM
Thats a rediculous hack bro. sorry. :)

Dean C
02-22-2003, 10:52 AM
I said to place it below Mystic ;)

Myztic
02-23-2003, 05:56 AM
I did place it below... just like you said..

have i changed the correct place for silver? did i add that part right?