Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-12-2008, 09:27 PM
EviLoreGAF EviLoreGAF is offline
 
Join Date: Jan 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 07-12-2008, 09:40 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-12-2008, 11:01 PM
EviLoreGAF EviLoreGAF is offline
 
Join Date: Jan 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 07-12-2008, 11:18 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or do something like:
Code:
<span class="blabla">$vbph....</span>
Then the CSS:
Code:
.blabla a {
color: #FFFFFF;
}
Reply With Quote
  #5  
Old 07-13-2008, 03:29 AM
EviLoreGAF EviLoreGAF is offline
 
Join Date: Jan 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-13-2008, 07:00 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same procedure as before. Just use:
Code:
.blabla .time {color:#FFFFFF}
Instead.
Reply With Quote
  #7  
Old 07-15-2008, 04:29 PM
EviLoreGAF EviLoreGAF is offline
 
Join Date: Jan 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This all worked perfectly, thanks for all the help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04878 seconds
  • Memory Usage 2,209KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete