Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Change link color only in post and/or cms articles Details »»
Change link color only in post and/or cms articles
Version: 1.00, by AURFSCAN AURFSCAN is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 03-06-2011 Last Update: Never Installs: 38
Template Edits
 
No support by the author.

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





Screenshots

File Type: jpg linkcolor.jpg (241.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
fred86, furnival

Comments
  #22  
Old 05-28-2012, 12:21 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the difference between links and hyperlinks as you are sing those terms?
Reply With Quote
  #23  
Old 06-13-2012, 05:12 PM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I attempted this. I edited the additional.css for the Style I'm using as such:

Code:
.postcontent a {
	color: #FF00FF;
	text-decoration: none;
	font-weight: bold;
}

.postcontent a:link {
	color: #FF00FF;
	text-decoration: none;
	font-weight: bold;
}

.postcontent a:visited {
	color: #FF00FF;
	text-decoration: none;
	font-weight: bold;
}

.postcontent a:active {
	color: #FF00FF;
	text-decoration: none;
	font-weight: bold;
}

.postcontent a:hover {
	color: #c1272d;
	text-decoration: underline;
	font-weight: bold;
}
But it just doesn't seem to be taking. Instead, it is just using the global body link colors instead. Here is the site I'm working on:

http://stoicstudio.com/forum/showthr...ull=1#post2756

You'll note the first word (Acromage) is a link but it's not pink (just using pink so its an obvious change and then making it something better).

Any ideas what I'm doing wrong?
Reply With Quote
  #24  
Old 06-13-2012, 06:11 PM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed my own issue. For some reason, moving that to the top of the additional.css file made it work. Probably means I failed at closing something somewhere that I'll have to look into.

But another thumbs up from me - works great on 4.1.12!
Reply With Quote
  #25  
Old 07-20-2012, 12:40 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep this is fun as far as you don't have an image inserted into thread. Underlined images don't look pretty at all
Reply With Quote
  #26  
Old 03-18-2013, 07:57 AM
BigAl205's Avatar
BigAl205 BigAl205 is offline
 
Join Date: Oct 2010
Location: Hayden,AL
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wanted links in the postbit underlined so it would stand out, so I changed the link decoration in the stylevar. Unfortunately, I thought it made the forum home look too busy. I'm glad I found this.
Reply With Quote
Reply

Thread Tools

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 05:14 PM.


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.04362 seconds
  • Memory Usage 2,268KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete