Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2003, 04:07 AM
Myztic Myztic is offline
 
Join Date: Dec 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 01-31-2003, 04:46 AM
Myztic Myztic is offline
 
Join Date: Dec 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

?..
Reply With Quote
  #3  
Old 01-31-2003, 11:02 AM
Myztic Myztic is offline
 
Join Date: Dec 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

help plea.se..
Reply With Quote
  #4  
Old 01-31-2003, 03:46 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 02-06-2003, 06:47 PM
Myztic Myztic is offline
 
Join Date: Dec 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 02-06-2003, 06:54 PM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a file. Its in your FTP
Reply With Quote
  #7  
Old 02-06-2003, 07:03 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe yes its a file located in your admin directory. Open it up and then do what i said

- miSt
Reply With Quote
  #8  
Old 02-06-2003, 07:36 PM
Myztic Myztic is offline
 
Join Date: Dec 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-06-2003, 08:03 PM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no option. It requires hacking. Sorry.
Reply With Quote
  #10  
Old 02-07-2003, 03:38 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Indeed. Well if i had the time i would test this for you but i don't sorry

- miSt
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04080 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete