Photo Placement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Accessable
    Member
    • Oct 2003
    • 70

    Photo Placement

    I have a photograph at the top of my vbulletin forum page. If i wanted the image at the top of the display to center, where would i specify that?

    To insert the photo I went to: AdminCP -> Styles & Templates -> Style Manager -> pulled down the menu next to the style i wanted to customize to StyleVars

    Next I scrolled down to the 2nd main section and found the entry called Title Image

    This works, but the photo is left justified. I would like to center it. How do I do this?

    Thanks!!!
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    In order to center the logo, you need to edit the Header Template:

    AdminCP > Styles & Templates > Style Manager > Common Templates (from drop menu next to style name)

    The first portion of the Header Template is what you need to edit.

    Find this:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
            &nbsp;
    <!--
      NEW HEADER &amp; NAVBAR
      
      Now that the nav buttons are in the
      navbar template, you can stick whatever
      you like into this space.
    
      This makes it much easier for novice
      admins to customize their header
      template without affecting important
      navigation elements.
    -->
        </td>
    </tr>
    </table>
    <!-- /logo -->
    And replace it with this:
    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><center><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></center></a></td>
    </tr>
    </table>
    <!-- /logo -->

    Comment

    • Accessable
      Member
      • Oct 2003
      • 70

      #3
      Thank you soooooo much!! Sooooooooooo much. Soooo soooooooo much! You have no idea how much i appreciate this!

      From the text in the code section you provided it appears to be from a programming guide of some kind. Where may I find such a guide or even a collection of examples?

      Thanks again - you made my day and then some!!!!

      Comment

      • peterska2
        Senior Member
        • Oct 2003
        • 8869
        • 3.7.x

        #4
        The text in the code sections is what was contained in the relevant section of the header template at various points. It has gradually changed between versions, so may not appear exactly like that depending on the version that you are running.

        There are a lot of template examples at our modification site www.vbulletin.org

        Comment

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