Centering a Banner (Header Template)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jettin2t
    New Member
    • Oct 2001
    • 12

    Centering a Banner (Header Template)

    Hi,

    I tried to add a simple banner(jpeg file) to my forums by editing the header template. I was able to add the image to the top but I cant seem to get it centered. I am trying to add it above the vbulletin logo and the buttons on the right with it being centered on the page. Anyone have any ideas or suggestions?

    Thanks!


    Oh the image is about 470X60
  • splooge
    Senior Member
    • Mar 2001
    • 215

    #2
    Funny thing, I also came here to ask the same question.

    My next question would be, How can I get the 'user cp' 'register' 'calendar' etc... buttons left and right justified under the banner?

    Comment

    • RavenBeauty
      Member
      • Mar 2002
      • 48

      #3
      oh ME TOO! somebody please tell us how to do this! I am great at graphics but this talk of php's and templates that you can't just create the whole look in front page and then paste in one place but have a THOUSAND places things need to go.. Styles that dont do anything tho I loaded them and chose them.. I am SO LOST! Im not stupid but these things are WAY Over my HEAD! I NEED help so badly with so many little things.. I wish there was customer support by email, such as who to email for style, template etc.. or phone number for these things! I am afraid of asking on these boards so far until tonight out of sheer desperation because I have seen so many threads that if your question is dumb or you don't get it.. the answers are sometimes pretty sarcastic or once or twice even kinda hateful.. SO Im a little shy! I know for the most part good answers come but because my questions are so level one, I think, I am afraid of the answers.. such as YOU DUMMY! I guess I would deserve it but am already calling myself that every day now in my admin panel and I can't take it from others on top of that! hehe

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Re: Centering a Banner (Header Template)

        Originally posted by jettin2t
        Hi,

        I tried to add a simple banner(jpeg file) to my forums by editing the header template. I was able to add the image to the top but I cant seem to get it centered. I am trying to add it above the vbulletin logo and the buttons on the right with it being centered on the page. Anyone have any ideas or suggestions?

        Thanks!


        Oh the image is about 470X60
        just off the top...

        in your header template find this and add the red:

        Code:
        <!-- logo and buttons -->
        <center>
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
        [color=red]<tr>
        <td colspan="2" align="center" valign="middle">
        banner stuff here
        </td>
        </tr>[/color]
        <tr>

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          Originally posted by splooge
          Funny thing, I also came here to ask the same question.

          My next question would be, How can I get the 'user cp' 'register' 'calendar' etc... buttons left and right justified under the banner?
          this is the default header template with the title graphic and buttons reversed:

          Code:
          <!-- logo and buttons -->
          <center>
          <table border="0" width="{tablewidth}" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="bottom" align="left" nowrap background="{imagesfolder}/menu_background.gif">
             <!-- toplinks -->
             <a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/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="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
             <a href="calendar.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_calendar.gif" alt="Calendar" border="0"></a>
             <a href="memberlist.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_members.gif" alt="Find other members" border="0"></a>
             <a href="misc.php?s=$session[sessionhash]&action=faq"><img src="{imagesfolder}/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
             <a href="search.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_search.gif" alt="Search" border="0"></a>
             <a href="index.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_home.gif" alt="Home" border="0"></a>
             <!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="{imagesfolder}/top_logout.gif" alt="Logout" border="0"></a>  -->
             &nbsp;
             <!-- /toplinks -->
            </td>
            <td valign="top" align="right" background="{imagesfolder}/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
          </tr>
          </table>
          <!-- /logo and buttons -->
          
          <!-- content table -->
          <table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0">
          <tr>
            <td>

          Comment

          • jettin2t
            New Member
            • Oct 2001
            • 12

            #6
            Guys thanks for all the help! It worked great.

            Comment

            • RavenBeauty
              Member
              • Mar 2002
              • 48

              #7
              YES thank you very much from me too! Now but the little buttons are kissing the banner too tightly! AND somehow I now have a black uneccesary line under the stuff that goes under the banner! can i ask if there is anybody out there to help with that?
              here is the board... since I guess you need to see it huh?

              http://www.thehunterslife.com/forums THANK YOU AGAIN

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #8
                your header's tables are a little fubar. try this code in your header. i added some cellpadding to space out the top banner from your buttons.

                Code:
                <!-- logo and buttons -->
                <center>
                <table border="0" width="{tablewidth}" cellpadding="10" cellspacing="0">
                <tr>
                <td align="center" valign="middle"><a href="index.php?s=$session[sessionhash]"><img src="{imagesfolder}/THL-logo.jpg" border="0" alt="The Hunters Life Forums"></a></td>
                </tr>
                <tr>
                  <td align="center" valign="middle" nowrap>
                   <!-- toplinks -->
                   <a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/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="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
                   <a href="calendar.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_calendar.gif" alt="Calendar" border="0"></a>
                   <a href="memberlist.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_members.gif" alt="Find other members" border="0"></a>
                   <a href="misc.php?s=$session[sessionhash]&action=faq"><img src="{imagesfolder}/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
                   <a href="search.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_search.gif" alt="Search" border="0"></a>
                   <a href="index.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_home.gif" alt="Home" border="0"></a>
                   <!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="{imagesfolder}/top_logout.gif" alt="Logout" border="0"></a>  -->
                   &nbsp;
                   <!-- /toplinks -->
                  </td>
                </tr>
                </table>
                <!-- /logo and buttons -->
                
                <!-- content table -->
                <table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0">
                <tr>
                  <td>

                Comment

                • RavenBeauty
                  Member
                  • Mar 2002
                  • 48

                  #9
                  YOU are a doll! that worked like a CHARM! Can I ask you more stuff in here concerning things not having to do with centering? Or should I start another thread? It is all VB template screw ups I have members screamin at me about

                  Comment

                  • Jake Bunce
                    Senior Member
                    • Dec 2000
                    • 46598
                    • 3.6.x

                    #10
                    Originally posted by RavenBeauty
                    Can I ask you more stuff in here concerning things not having to do with centering? Or should I start another thread? It is all VB template screw ups I have members screamin at me about
                    sure, ask away. it doesn't matter if it's in here or another thread.

                    Comment

                    • Wedding Guide
                      Member
                      • May 2001
                      • 50

                      #11
                      Well here's a question...what if I want to add a banner to the header? Right now, I have not made any major modifications to the message board.

                      I would just to like to add a banner above the buttons.

                      I tried, but it tiled behind the buttons. That's not the look I am going for.
                      We bring brides & business together...in case you were wondering!

                      Comment

                      • Wedding Guide
                        Member
                        • May 2001
                        • 50

                        #12
                        Nevermind...I figured it out! Yippeeee!
                        We bring brides & business together...in case you were wondering!

                        Comment

                        • Jake Bunce
                          Senior Member
                          • Dec 2000
                          • 46598
                          • 3.6.x

                          #13
                          nice ava

                          you were prolly using the banner as the background image of the td huh...

                          Comment

                          • Wedding Guide
                            Member
                            • May 2001
                            • 50

                            #14
                            Yeah...cause that's where I really wanted it. But, I settled for putting it on the very top.
                            We bring brides & business together...in case you were wondering!

                            Comment

                            • RavenBeauty
                              Member
                              • Mar 2002
                              • 48

                              #15
                              Well here is the biggest mess I have made to date.. when someone hits the quote button you see above as you make a post or reply, it has WHITE on WHITE.. nobody can READ them. I don't want to change the white font if it affects everything else as my colors are dark with white writing.. well you get the picture.. right now there is just a white box and it looks as tho there is nada in it!

                              Second... how do I put a BG image on the background of the forums.. I have LOOKEd everywhere! and tried to find it and if I have over looked that info PLEASE forgive me.. thank you Jake I have seen many posts.. on this forum in the last month since i bought my vboard and yours are always so DETAILED which is desperatley needed by most of us and you are always nice about it too and don't call us or imply that we are idjits

                              Comment

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