vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Change link color only in "last post" (https://vborg.vbsupport.ru/showthread.php?t=265447)

bigpoppa74 06-19-2011 01:10 AM

Change link color only in "last post"
 
Hello. I want to change the link color in the "last post" part of the forum blocks. I know that the stylevar "block_link_color" controls this, but it is overridden by the "link_color" stylevar. Is there any way to make the block link color permanent? Any help would be appreciated.

LifesGreatestGift 06-19-2011 01:14 AM

pretty sure it would be something along the lines of

Code:

.forumbit_post .forumrow .forumlastpost a {color:#666666!important;}
.forumbit_post .forumrow .forumlastpost a:hover {color:#666666!important;}
.forumbit_post .forumrow .forumlastpost a:active {color:#666666!important;}

add to additional.css

bigpoppa74 06-19-2011 01:32 AM

It worked, but link_color also affects the VSa Stats box and subforum links. I'm assuming the code to make those link colors permanent is similar, but in a different CSS template?

Thanks for you help and the very quick response!

LifesGreatestGift 06-19-2011 01:36 AM

I just gave you the code for Last Post by only. What are you looking to do exactly?

bigpoppa74 06-19-2011 02:07 AM

I did want to make those links permanent, but I didn't think about the subforum and VSa Top Stats box links. That was my error, and I apologize for that. I can ask for that in a separate thread if it's proper etiquette.

napy8gen 06-19-2011 11:40 AM

Try this css overwrite: Its better than windows7site give you.

HTML Code:

.forumbit_post .forumrow .forumlastpost .threadtitle {color:#000 !important;}
OR if the VSa still catch the css.

You can go to its template and put style="color:#000;" in the a href code.
so that VSa wont get affected,

style manager> style name> edit templates> forumhome templates> forumhome_lastpostby

find:

HTML Code:

<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
put in style code:
HTML Code:

<a style="color:#000;" href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
change your color code. that is black.

bigpoppa74 06-19-2011 04:30 PM

Thanks, but TWS7's solution worked better for me as far as keeping the "last post" permanent, and I also was able to use it for threadbit. I'm still working on the VSa Stats Box - once I get that, I can stop getting headaches.

LifesGreatestGift 06-19-2011 06:18 PM

Quote:

Originally Posted by bigpoppa74 (Post 2210011)
Thanks, but TWS7's solution worked better for me as far as keeping the "last post" permanent, and I also was able to use it for threadbit. I'm still working on the VSa Stats Box - once I get that, I can stop getting headaches.

Link me to your forum and I will resolve your issue and give you code that will work ;)

bigpoppa74 06-20-2011 04:28 PM

Quote:

Originally Posted by TheWindows7Site (Post 2210072)
Link me to your forum and I will resolve your issue and give you code that will work ;)

Here you go.

LifesGreatestGift 06-20-2011 05:56 PM

Try this for top stats link color

Code:

#vsa_fh_stats a {color:#666666 !important;}
#vsa_fh_stats a:hover {color:#666666 !important;}
#vsa_fh_stats a:active {color:#666666 !important;}

add to additional.css

--------------- Added [DATE]1308600009[/DATE] at [TIME]1308600009[/TIME] ---------------

This should work for subforum link colors

Code:

.subforum a {color:#ff0000 !important;}
.subforum a:hover {color:#ff0000 !important;}
.subforum a:active {color:#ff0000 !important;}

--------------- Added [DATE]1308600235[/DATE] at [TIME]1308600235[/TIME] ---------------

If you wonder why usernames are the color of the links colors its because you havent defined a color for all your usergroups, which I would recommend in admincp just like you did with Super Moderators - Administrators - Moderators


All times are GMT. The time now is 01:53 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.01723 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_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