Results 1 to 3 of 3

Thread: needs help with some simple coding...

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    1

    needs help with some simple coding...

    I am new with working on templates but I have experience in coding. The templates take a different form of assortment which i'm trying to get to understand fully but I can't seem to. Could some start me off or something on getting borders around every members avatar...in their posts?

    Here's my template vb file code....

    PHP Code:
    2.0.3|||Default|||Default|||Default|||16|||3|||#FFFFFF|||#000044|||#FFFFFF|||#000000|||#CFD9FF|||#003366|||#C0C0FF|||#001133|||#F7F7F7|||#001f4f|||#DEDFDF|||#003050|||#333399|||ffff99|||#FF4400|||#ffff00|||#800080|||#cccccc|||<body>|||<body bgcolor="#000044" text="#ffffff" id="all" leftmargin="5" topmargin="5" marginwidth="5" marginheight="5" link="#000020" vlink="#000020" alink="#000020">|||images/vBulletin_logo.gif|||[url]http://www.direlegacy.com/forums/attachment.php?s=&postid=63[/url]|||#F1F1F1|||#000044|||images|||[url]http://www.direlegacy.com/~tanis/Buttons/[/url]|||images/reply.gif|||reply.gif|||images/newthread.gif|||newthread.gif|||images/threadclosed.gif|||threadclosed.gif|||header|||<!-- logo and buttons -->
    <center>
    <
    table border="0" width="100%" cellpadding="0" cellspacing="0">
    <
    tr>
      <
    td valign="top" align="left" 
    background="images/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="images/vBulletin_logo.gif" border="0" alt="$bbtitle"></a></td>
      
       <!-- 
    toplinks -->
      <
    tr>
    <
    td align="Center">
    <
    a href="usercp.php?s=$session[sessionhash]"><img src="images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
       <
    a href="register.php?s=$session[sessionhash]&action=signup"><img src="images/top_register.gif" alt="Registration is free!" border="0"></a>
       <
    a href="calendar.php?s=$session[sessionhash]"><img src="images/top_calendar.gif" alt="Calendar" border="0"></a>
       <
    a href="memberlist.php?s=$session[sessionhash]"><img src="images/top_members.gif" alt="Find other members" border="0"></a>
       <
    a href="misc.php?s=$session[sessionhash]&action=faq"><img src="images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
       <
    a href="search.php?s=$session[sessionhash]"><img src="images/top_search.gif" alt="Search" border="0"></a>
       <
    a href="index.php?s=$session[sessionhash]"><img src="images/top_home.gif" alt="Home" border="0"></a>
       <!-- <
    a href="member.php?s=$session[sessionhash]&action=logout"><img src="images/top_logout.gif" alt="Logout" border="0"></a>  -->
       &
    nbsp;
       <!-- /
    toplinks -->
      </
    td>
    </
    tr>
    </
    table>
    <!-- /
    logo and buttons -->

    <!-- 
    content table -->
    <
    table bgcolor="#FFFFFF" width="100%" cellpadding="10" cellspacing="0" border="0">
    <
    tr>
      <
    td>
    |||
    avatar|||<img src="$avatar[avatarpath]alt="$avatar[title]border="2">
    $avatar[title]|||headinclude|||<meta name="MSSmartTagsPreventParsing" content="TRUE">
    <
    meta http-equiv="MSThemeCompatible" content="Yes">
    <
    style type="text/css">
    BODY {
        
    SCROLLBAR-BASE-COLOR#CFD9FF;
        
    SCROLLBAR-ARROW-COLOR#000000;
    }
    SELECT {
        
    FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
        
    FONT-SIZE11px;
        
    COLOR#000000;
        
    BACKGROUND-COLOR#cfcfcf
    }
    TEXTAREA, .bginput {
        
    FONT-SIZE12px;
        
    FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
        
    COLOR#000000;
        
    BACKGROUND-COLOR#CFCFCF
    }
    A:linkA:visitedA:active {
        
    COLOR#333399;
    }
    A:hover {
        
    COLOR#FF4400;
    }
    #cat A:link, #cat A:visited, #cat A:active {
        
    COLOR#000000;
        
    TEXT-DECORATIONnone;
    }
    #cat A:hover {
        
    COLOR#000000;
        
    TEXT-DECORATIONunderline;
    }
    #ltlink A:link, #ltlink A:visited, #ltlink A:active {
        
    COLOR#333399;
        
    TEXT-DECORATIONnone;
    }
    #ltlink A:hover {
        
    COLOR#FF4400;
        
    TEXT-DECORATIONunderline;
    }
    .
    thtcolor {
        
    COLOR#000000;
    }
    </
    style>

    $headnewpm||| 
    Now, could someone just edit that for me to where borders will be around avatars? I know it's easier than I think it is...
    Last edited by Cyrus Drake; Nov 14th, 2001 at 06:08 PM.
    ~Cyrus
    My Anime forums at - http://www.direlegacy.com/forums/

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    In CSS you can define attributes for a class. Just define an avatar class with borders, and then set the id attribute on a div tag around the avatars.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    chenko
    Guest
    Code:
    IMG.Avatar
    {
        BORDER-TOP: black solid 2px;
        BORDER-RIGHT: black solid 2px;
        BORDER-LEFT: black solid 2px;
        BORDER-BOTTOM: black solid 2px
    }
    
    
    <IMG src="folder/pic.jpg" Class="Avatar">

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width