vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Font Colour Along With Replied Background Colour. (https://vborg.vbsupport.ru/showthread.php?t=48306)

Myztic 01-30-2003 04:07 AM

Font Colour Along With Replied Background Colour.
 
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:

PHP Code:

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

Below it add:

PHP Code:

        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?


All times are GMT. The time now is 02:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01019 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete