vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Change link color only in post and/or cms articles (https://vborg.vbsupport.ru/showthread.php?t=259966)

AURFSCAN 03-06-2011 10:00 PM

Change link color only in post and/or cms articles
 
1 Attachment(s)
Was looking how to change link colors only in posts and found how todo this here on the forum posted by Lynne.

add to additional.css

Code:

/* change link color in posts and sigs*/
.postcontent a {color:#356fb7;}
.signature a {color:#275187;}

/* change link hover color*/
.postcontent a:hover {color: red;}
.signature a:hover {color: red;}



Also here is the code for cms article and article homepage preview


Code:


/* change link colors in cms articles*/
.article a {color: #336699;}
.article_preview_contents a {color: #336699;}

.article a:hover {color: #CC0000;}
.article_preview_contents a:hover {color: #CC0000;}


change colors to suit you





:)

Randomm 03-07-2011 03:11 AM

worked like a charm (ver 4.0.8 p1)
rated, installed
thanks

EDIT:
If you want to make your links BOLD add this code at the bottom

post - .postcontent a {font-weight: bold;}
sig - .signature a {font-weight: bold;}

XiTCLUB 03-07-2011 06:39 PM

thanks..

snatta 03-07-2011 07:49 PM

Thumbs up!

If I want it underlined, what is the code when?

AURFSCAN 03-07-2011 08:18 PM

Underline

Code:


text-decoration: underline;


eg.


Code:


.postcontent a {color:#356fb7; text-decoration: underline;}


:)

snatta 03-07-2011 08:42 PM

Perfect, thanks.
=========

Is it possible to take it a bit longer?

I thought if you could make some code that allows it come up a box when doing mouseover, I would for example like that it said that:

"You are about to leave ****** Forum

The page you are about to visit is not ****** Forum.
****** Forum takes no responsibility for the material you find on the linked URL."

..or something like that .. :rolleyes:

OldSchoolDSL 03-08-2011 01:14 AM

Installed and working

4.1.2 :)

Overbr 03-08-2011 10:36 AM

tks man ! great work

Asterix_ita 03-09-2011 04:34 AM

thanks

working 4.1.2

iyama 03-23-2011 08:20 AM

I just find out that vb4 has already this option and more under stylevar>link ;)

link color-Undeline-aboveline-blink et cetera


All times are GMT. The time now is 05: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.01483 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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