vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Altering $vbphrases (https://vborg.vbsupport.ru/showthread.php?t=185127)

EviLoreGAF 07-12-2008 09:27 PM

Altering $vbphrases
 
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:
Code:

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

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>

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

<span class="blabla">$vbph....</span>
Then the CSS:
Code:

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

.blabla .time {color:#FFFFFF}
Instead.

EviLoreGAF 07-15-2008 04:29 PM

This all worked perfectly, thanks for all the help.


All times are GMT. The time now is 09:28 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.01081 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete