The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
changing link colors
hello, I need to change the links' colors in the user info part
this part Code:
<if condition="$show['member']"> <td nowrap="nowrap"> <div class="smallfont"> <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <if condition="$show['notifications']"> <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div> <script type="text/javascript"> vBmenu.register("notifications"); </script> <else /><if condition="$show['pmstats']"> <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div> </if></if> by links I mean, the username, and private msgs link.. I need to change it only here, so i dont want to mess the parent style, But i dont know where to add my new class as phrases doesnt respond to classes |
#2
|
||||
|
||||
Read this:https://vborg.vbsupport.ru/showthread.php?t=183312
I posted solution for something similar here. |
#3
|
|||
|
|||
actually i mentioned that in my post,
as in my code i am not usoing tables in this part the only tags are phrases, and i made a custom class and tried it but it didnt work here is my code an my CSS Code:
<div class="usrcustom"> <if condition="$show['member']"> <strong><phrase class="usrcustom" 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br /><br /> <if condition="$show['notifications']"> <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div> <script type="text/javascript"> vBmenu.register("notifications"); </script> <else /><if condition="$show['pmstats']"> <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div> </if></if> CSS Code:
.usrcustom { padding-top:10px; color:#FFFFFF; } a.usrcustom:link, a.usrcustom:visited { color: #E7E7E7; text-decoration: none; } a.usrcustom:active, a.usrcustom:hover { color: #EE2323; text-decoration: underline; } |
#4
|
||||
|
||||
You css is a bit wrong, by your declaration it will affect all links which have usercustom class in it. Whereas you declared the whole div as usrcustom.
So u need to make a as child.. something like .usrcustom a:link, .usrcustom a:visited |
#5
|
|||
|
|||
I got it working now, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|