The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Altering $vbphrases
Hello all:
I'd like to know what's the easiest way to edit certain $vbphrases. Here's the dillemma: The bottom is, the default style, while along the top is where we would like to move the area. The $vbphrases I'd like to alter are: $vbphrase[last_visited_x_at_y] (last visited and time) and $vbphrase[private_messages_nav] Private message link and other details As you can see, using the blue background would make the time harder to read, and the link to the private messages is even worse. I'm assuming that the vbphrases contain the code for each section. Any help would be greatly appreciated! Also, we are committed to the skin design, so changing the background of the blue tab would not be an option. Thanks in advance! |
#2
|
|||
|
|||
Use CSS.
Find out the name of the CSS class for the blue bit then have something like: Code:
.class a { color: #FFFFFF; } No need to edit vBulletins Phrases then. They should only be used to display text and you should avoid adding any kind of style to them. |
#3
|
|||
|
|||
Thanks for the quick reply and suggestion. My only concern is that with that code, won't it affect ALL instances of the class? I probably wouldn't want that.
Also, the class for the time stamp is, conveniently, time. Again, I would only like to alter it for that one instance, which is in the upper-right corner. It's the only reason why I'd consider altering the vbphrases For additional reference here's the code for the blue region, as defined by the template: Code:
<if condition="$show['member']"> <td valign="top" nowrap="nowrap" width="400" height="61"> <div class="smallfont" align=right style="background-image: url(URL);width:400px;height:61px;background-repeat: no-repeat;"> <strong><span style="color:white;"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></span></strong><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]"><span style="color:white;">$vbphrase[last_visited_x_at_y]</span></phrase> <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]"><span style="color:white;">$vbphrase[private_messages_nav]</span></phrase></if> </div> </td> |
#4
|
|||
|
|||
Or do something like:
Code:
<span class="blabla">$vbph....</span> Code:
.blabla a { color: #FFFFFF; } |
#5
|
|||
|
|||
This worked great for the links, thanks!
Didn't quite work for the time, though. Any suggestions? The default css class is "time." However, I only want to change the color for that one instance. In fact, it seems to has been done really well with vbulletin.org. |
#6
|
|||
|
|||
Same procedure as before. Just use:
Code:
.blabla .time {color:#FFFFFF} |
#7
|
|||
|
|||
This all worked perfectly, thanks for all the help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|