Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2002, 10:25 AM
Nog
Guest
 
Posts: n/a
Default Changeing colours of text/links in templates

Im trying to change the colour of certain links, and text, but not all, in some templates.

Ive tryed changeing <smallfont> to <smallfont color="#000000">

for black but it doesant work. and <smallfont color="black"
that doesant work either.

I have no clue how to change some but not all link colours.
Maybe <a href color=#FFFFFF> or summit link that.

poor nog
Reply With Quote
  #2  
Old 07-22-2002, 10:43 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Admin CP -> Styles -> Modify

You can edit the link color(s) there
Reply With Quote
  #3  
Old 07-22-2002, 12:57 PM
Nog
Guest
 
Posts: n/a
Default

I know you can change all the link colour's there but I dont want to change all, just some.

And is the line Im putting into the template's to change colour of select bits of text correct?
Reply With Quote
  #4  
Old 07-22-2002, 02:16 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you could add some extra tags in your css file. For example, you could have <smallfont> for one color and <smallfont2> for another color.
Reply With Quote
  #5  
Old 07-22-2002, 02:45 PM
Nog
Guest
 
Posts: n/a
Default

That would do the trick for sure.
When you say my css file do you mean the cp.css file?
What should I put in this to sort a differant color for smallfont2?

Thanks for all the help.
Reply With Quote
  #6  
Old 07-22-2002, 03:05 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the easiest would be to simply create a new css entry. In your "headerinclude" template, you could include the following:

NEWFONT {BACKGROUND: none; FONT-FAMILY: verdana, arial, helvetica, sans-serif; color: #000000}

Then in your code you can use <newfont> as a tag for a black font.

Remember, you'll need to add other elements, such as font size, etc.

Hope that helps!
Reply With Quote
  #7  
Old 07-22-2002, 08:34 PM
shiva
Guest
 
Posts: n/a
Default

Here's the code example for that. Add a new set of styles in your header, and you can also have seperate colors for the links, and hover:

.leftcolumn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000}
.leftcolumn a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:active { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FF0000}

Then its just a <font class="leftcolumn"> THE TEXT</font> of the text you want.

This is the code for the left nav links at www.shivasite.com if you need a example.
Reply With Quote
  #8  
Old 07-23-2002, 10:15 AM
Nog
Guest
 
Posts: n/a
Default

Thanks a lot for the help guys.

I added a new font for the white text to make it black and it works.

Just have to sort the links now, Ill try adding that code now.
Reply With Quote
  #9  
Old 07-23-2002, 03:52 PM
Nog
Guest
 
Posts: n/a
Default

I cant get it to work.

All I need is an alternate link color that can be used anywhere on the forum. This alternate link should be white and the hover color red. Im a noob at this.

What should I put in the headinclude template and how would I use the alternate link rather than the standard?

Your forum looks really cool by the way shiva. Must of taken weeks to get it looking like that.
Reply With Quote
  #10  
Old 07-23-2002, 05:15 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do this:

1. Go to your headerinclude template in your Admin Control panel

2. Search for
Code:
.thtcolor {
	COLOR: {tableheadtextcolor};
}
3. Just after that and BEFORE the </style> tag insert the following
Code:
.new {
	COLOR: red;
}
4. Change the color (currently "red") to whatever color you want.

5. Save Changes

6. Go into any template and change the start of any link tag, aka <a href=> to the new class to see the new color
Code:
<a class="new" href=...>
Reply With Quote
Reply


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 11:36 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.13901 seconds
  • Memory Usage 2,243KB
  • 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
  • (3)bbcode_code
  • (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
  • (4)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete