Log in

View Full Version : Change link color only in "last post"


bigpoppa74
06-19-2011, 01:10 AM
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


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

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


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

<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
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
Link me to your forum and I will resolve your issue and give you code that will work ;)

Here you go. (http://www.steelersuniverse.com/forums/forum.php)

LifesGreatestGift
06-20-2011, 05:56 PM
Try this for top stats link color


#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 1308600009 at 1308600009 ---------------

This should work for subforum link colors

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

--------------- Added 1308600235 at 1308600235 ---------------

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

bigpoppa74
06-20-2011, 07:51 PM
You are a godsend, my friend - it worked beautifully! I hadn't considered the username colors, but I will discuss it with the other admins and mods on my forum.

Thank you so much for all of your help!