vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Changeing colours of text/links in templates (https://vborg.vbsupport.ru/showthread.php?t=83911)

Nog 07-22-2002 10:25 AM

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 noghttps://vborg.vbsupport.ru/

SaintDog 07-22-2002 10:43 AM

Admin CP -> Styles -> Modify

You can edit the link color(s) there

Nog 07-22-2002 12:57 PM

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?

mashby 07-22-2002 02:16 PM

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.

Nog 07-22-2002 02:45 PM

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.

mashby 07-22-2002 03:05 PM

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!

shiva 07-22-2002 08:34 PM

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.

Nog 07-23-2002 10:15 AM

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.

Nog 07-23-2002 03:52 PM

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.
:)

mashby 07-23-2002 05:15 PM

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=...>


All times are GMT. The time now is 10:18 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.01867 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete