Bigger titleimage misplaces toplinks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ceho
    Senior Member
    • Mar 2008
    • 439
    • 4.1.x

    [Forum] Bigger titleimage misplaces toplinks

    Hi,

    whenever I add a custom titleimage with in this case a size of 1040x200px it misplaces the toplinks: they slip below the titleimage inside of the header. This only happens on IE7!

    It affects the default style on a clean and not anyhow customized installation of vB 4.1 (and did the same on e.g. vB 4.0.7).

    Any ideas how to fix that? Unfortunately we still have a lot of members using IE7...

    Thx!
    sigpic
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Instead of setting it as a titleimage, why not put it as the header_background image?

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • ceho
      Senior Member
      • Mar 2008
      • 439
      • 4.1.x

      #3
      Yes, I am working on that, although I thought it would be nice to have it as a titleimage to remain clickable (to home).

      How would I define the height of the header or should I use a transparent titleimage of e.g. 200x200px?

      Thanks Lynne!
      sigpic

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        You could do the transparent image, but it's probably just cleaner to set a height. Add to additional.css:
        HTML Code:
        /* header height */
        .doc_header {height: 50px;}

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools <- awesome site for html/css help

        Comment

        • ceho
          Senior Member
          • Mar 2008
          • 439
          • 4.1.x

          #5
          Thx. The problem is that if I don't use any titleimage it's showing the alt text (forum name), so maybe I have to use the transparent graphic?

          And the header background is not showing in IE6, just to mention this as it's not so much of a big deal for me ;-).
          sigpic

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            You could just remove the title image from the header template.

            HTML Code:
            <a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a>

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools &lt;- awesome site for html/css help

            Comment

            • ceho
              Senior Member
              • Mar 2008
              • 439
              • 4.1.x

              #7
              OK, that's an option. Thanks a lot Lynne!

              However vB should figure out why this is happening, shouldn't they?
              sigpic

              Comment

              • Destron
                Senior Member
                • Dec 2009
                • 257

                #8
                I have the same problem, but I've never found an acceptable solution, just to keep my site the same way.

                Comment

                • Lynne
                  Former vBulletin Support
                  • Oct 2004
                  • 26255

                  #9
                  Originally posted by ceho
                  OK, that's an option. Thanks a lot Lynne!

                  However vB should figure out why this is happening, shouldn't they?
                  What they should do is have that in a condition. if the titleimage exists, then show the image, if not, then don't, like this:
                  HTML Code:
                  <vb:if condition="$stylevar[titleimage]"><div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div><vb:else /><div>&nbsp;</div></vb:if>
                  I entered this into the bug tracker here - http://tracker.vbulletin.com/browse/VBIV-10501
                  Last edited by Lynne; Sat 4 Dec '10, 9:30am.

                  Please don't PM or VM me for support - I only help out in the threads.
                  vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                  Want help modifying your vbulletin forum? Head on over to vbulletin.org
                  If I post CSS and you don't know where it goes, throw it into the additional.css template.

                  W3Schools &lt;- awesome site for html/css help

                  Comment

                  • ceho
                    Senior Member
                    • Mar 2008
                    • 439
                    • 4.1.x

                    #10
                    Works very well! Thanks Lynne!
                    sigpic

                    Comment

                    • cammot
                      Member
                      • Jul 2009
                      • 89

                      #11
                      Originally posted by Lynne
                      Instead of setting it as a titleimage, why not put it as the header_background image?

                      What's the difference of the two options, and how does one go about installing the header_background image. Any pros and cons between the two ?.

                      Thanks

                      cammot

                      Comment

                      • Lynne
                        Former vBulletin Support
                        • Oct 2004
                        • 26255

                        #12
                        Originally posted by cammot
                        What's the difference of the two options, and how does one go about installing the header_background image. Any pros and cons between the two ?.

                        Thanks

                        cammot
                        One is an image, one is a background image. It's a matter of what you can do to them CSS-wise. It's really up to you on how you do it.

                        Please don't PM or VM me for support - I only help out in the threads.
                        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                        Want help modifying your vbulletin forum? Head on over to vbulletin.org
                        If I post CSS and you don't know where it goes, throw it into the additional.css template.

                        W3Schools &lt;- awesome site for html/css help

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...
                        😀
                        😂
                        🥰
                        😘
                        🤢
                        😎
                        😞
                        😡
                        👍
                        👎