PDA

View Full Version : Altering $vbphrases


EviLoreGAF
07-12-2008, 09:27 PM
Hello all:

I'd like to know what's the easiest way to edit certain $vbphrases. Here's the dillemma:

http://home.pacbell.net/jckwong/login.jpg

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!

Opserty
07-12-2008, 09:40 PM
Use CSS.

Find out the name of the CSS class for the blue bit then have something like:

.class a {
color: #FFFFFF;
}
(Change class to the name of the real class)

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.

EviLoreGAF
07-12-2008, 11:01 PM
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:

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


I am sure there is a cleaner way to do some of the items above, but it works just fine...

Opserty
07-12-2008, 11:18 PM
Or do something like:
<span class="blabla">$vbph....</span>
Then the CSS:

.blabla a {
color: #FFFFFF;
}

EviLoreGAF
07-13-2008, 03:29 AM
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.

Opserty
07-13-2008, 07:00 AM
Same procedure as before. Just use:

.blabla .time {color:#FFFFFF}

Instead.

EviLoreGAF
07-15-2008, 04:29 PM
This all worked perfectly, thanks for all the help.