Announcement

Collapse
No announcement yet.

Banner Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Banner Problem

    I want to put a background right across the top of my forum behind the Forum Logo

    I put this code into the header template but nothing seems to happen so I guess it is totally wrong

    <!--
    <a href=/forum/images/top_splash.gif><img src=/forum/images/top_splash.gif alt="" border="0" /></a>
    -->

    Also even before adding this I get a strange script message in the top left hand corner, please see screen capture below. Any ideas how to solve this??
    Attached Files

  • #2
    Your code has comment tags around it:

    Code:
    <!--
    
    -->
    This makes it so the code is not displayed on the page.

    As for the "script" text on the top left of your forum... I would need to see the source code of that page. What is the URL to your forum?

    Comment


    • #3
      Thanks for your reply Jake

      The URL of the forum is

      www.digitechg.co.uk/forum

      Comment


      • #4
        It looks like it's in your headinclude template:

        Code:
        <script type="text/javascript">
        <!--
        var SESSIONURL = "";
        var IMGDIR_MISC = "images/misc";
        // -->
        </script>
        
        <script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
        <script type="text/javascript" src="clientscript/vbulletin_menu.js"></script>[color=red]script>[/color]</if>

        Comment


        • #5
          Could you tell me how to get rid of it?

          Also I removed those comment tags and the background banner still did not appear. Could the two problems be linked?

          Thanks

          Comment


          • #6
            Edit the headinclude template:

            Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu) -> headinclude

            The code is highlighted in my previous post.

            As for the banner, I don't see your banner code in the page source code. Where did you add the banner code?

            Comment


            • #7
              I added the code in the header template (see below)

              <!-- 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;

              <a href=/forum/images/top_splash.gif><img src=/forum/images/top_splash.gif alt="" border="0" /></a>

              </td>
              </tr>
              </table>
              <!-- /logo -->

              <!-- content table -->
              $spacer_open

              $_phpinclude_output

              Comment


              • #8
                It doesn't show up in your page source:

                Code:
                <!-- logo -->
                <a name="top"></a>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
                <tr>
                	<td align="left"><a href="index.php?"><img src="images/misc/vbulletin3_logo_white.gif" border="0" alt="DIGITECH FORUMZ" /></a></td>
                	<td align="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 -->
                Are you editing a different style?

                Comment


                • #9
                  I edited it in Vbulletin 3 style as per the headinclude template, the latter worked as the script error disappeared.

                  Comment


                  • #10
                    OK you were correct, I should have edited a sub-style which was in use, the problem is now fixed.
                    Just one last question what would I need to add to the code to make the banner cover the whole top area going from side to side (and behind the logo)

                    Comment


                    • #11
                      Originally posted by Sinbad
                      Just one last question what would I need to add to the code to make the banner cover the whole top area going from side to side (and behind the logo)
                      Try something like this in your header template... add the blue code:

                      Code:
                      <!-- logo -->
                      <a name="top"></a>
                      <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
                      <tr>
                      	<td align="left" [color=blue]background="path/to/background.gif"[/color]><a href="index.php?"><img src="images/misc/vbulletin3_logo_white.gif" border="0" alt="DIGITECH FORUMZ" /></a></td>
                      	<td align="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 -->
                      That will add the background.gif image behind the title image.

                      Comment

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