vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   changing link colors (https://vborg.vbsupport.ru/showthread.php?t=184196)

bojomojo 07-02-2008 04:58 PM

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

Attitude5ire 07-02-2008 05:40 PM

Read this:https://vborg.vbsupport.ru/showthread.php?t=183312

I posted solution for something similar here.

bojomojo 07-02-2008 05:57 PM

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


Attitude5ire 07-02-2008 07:34 PM

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

bojomojo 07-02-2008 09:05 PM

I got it working now, thanks


All times are GMT. The time now is 11:42 AM.

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.01101 seconds
  • Memory Usage 1,723KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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