Add a bar to the very top of the forum - Image included

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aceofspades
    Senior Member
    • Mar 2006
    • 324
    • 3.6.x

    Add a bar to the very top of the forum - Image included

    Can someone please tell me how i would go about adding a bar across the very top of the forum, i need it to be on each page so i guess id put it in the header template but i dont know the code. Here is a picture:



    Any help you could give would be much appreciated!

    James
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You are right, it's the header template, below:
    Code:
    <a name="top"></a>

    add:
    Code:
    <div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
        <tr align="center">
                <td class="vbmenu_control">
                    bar at top
                </td>
        </tr>
        </table>
    </div>



    Customize it to your liking.

    Comment

    • aceofspades
      Senior Member
      • Mar 2006
      • 324
      • 3.6.x

      #3
      Thank you for your help Floris. One thing i didnt think of is that i actually want the area below the bar to be white, not the default gray. I made up a quick pic in paint to show what i mean:



      Can you (or anyone that knows) please tell me how i can adjust my default style in this way?

      Regards,

      James

      Comment

      • SNN
        Senior Member
        • Jul 2006
        • 856
        • 4.0.0

        #4
        Simple. (With Floris's table code)
        Code:
        <!-- logo -->
        <a name="top"></a>
        <div align="center">
            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
            <tr align="center">
                    <td class="vbmenu_control">
                        bar at top
                    </td>
            </tr>
            </table>
        </div>
        <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
        <tr>
         <td align="$stylevar[left]" class=page><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        </tr>
        </table>
        <!-- /logo -->
        <!-- content table -->
        $spacer_open
        $_phpinclude_output
        Should work, if not, I have a few other ideas.

        Comment

        • aceofspades
          Senior Member
          • Mar 2006
          • 324
          • 3.6.x

          #5
          Perfect thank you

          Comment

          • Floris
            Senior Member
            • Dec 2001
            • 37767

            #6
            By the way, nice idea. I can't wait to get a sneak preview or a final screenshot from when it's ready.

            Comment

            • aceofspades
              Senior Member
              • Mar 2006
              • 324
              • 3.6.x

              #7
              Thanks Floris, its going to be a while yet though, ive changed my design 3 times already!

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...