Announcement

Collapse
No announcement yet.

Banner placement next to logo?

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

  • lifanovsky
    replied
    Thanks a lot, Syrus! I had the same problem and your solution worked great for me!

    Leave a comment:


  • syrus.xl
    replied
    Originally posted by The_Gismo_Man View Post
    Thanks again for the advice, hmm, maybe a bit too much for me to do, which template would i put it into?
    All you would do is use the main coding for the vbulletn.css I posted, but use the code from Post #24 in the header.

    Leave a comment:


  • The_Gismo_Man
    replied
    Thanks again for the advice, hmm, maybe a bit too much for me to do, which template would i put it into?

    Leave a comment:


  • syrus.xl
    replied
    My original coding would do that for you. The only difference is that you would probably need to use the header coding from Post #24. Only because if you use a banner rotator that is using javascript then the template would probably break, this is why I added the <vb:literal> tags.

    Basically, it would depend on the banner rotator you wish to use. The one I have running on my site I designed myself, which is flash based, but it is coded directly in to the header template, using no <vb:literal> tags, because I have not used any '{' or }' within the javascript embed code. There are numerous banner rotators around, but I prefer to code and design my own.

    Leave a comment:


  • The_Gismo_Man
    replied
    Originally posted by syrus.xl View Post
    Is it the Tayside Bikers forum in question?
    No, it's the Mini site, i have copied a rotating banner script from vb.org and had hoped to place that banner there under the toplinks.
    I'm not wanting to add any adsense type banners, sorry for the confusion and appreciate your coding skills

    Leave a comment:


  • syrus.xl
    replied
    Is it the Tayside Bikers forum in question? If that's the case I would personally place the bikes as a background image, separate from your logo-image. Then you could place another div to hold the banner location.

    But to do this you would need to use a slightly different layout, and use the CSS z-index parameter to place the divs correctly.

    Let me know if this is what you are referring to...

    Leave a comment:


  • syrus.xl
    replied
    The following code will allow for Google Adsense to be inserted without breaking the template or using the Advertising Manager. Any javascript placed in some templates causes an error upon 'Save'. So you need to add the <vb:literal> tag and close it around the javascript coding. It is a known bug with vBulletin 4.0 Gold.

    Code:
    <!-- Start Custom Header -->
    <div id="header_wrapper">
         <div id="logo_main">
         <a name="top" href="{vb:raw vboptions.site_tab_url}{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>
         <div id="banner_ad_top">
         <vb:literal>
         YOUR AD CODE GOES HERE 
         </vb:literal>
         </div>
    </div>
    <!-- End Custom Header -->

    Leave a comment:


  • The_Gismo_Man
    replied
    Originally posted by syrus.xl View Post
    Are you referring to the #toplinks? The area where the login is located.
    Yes, under the notifications - my profile - settings.
    My titleimage main logo is sized such that there is sufficient room under thos links to position a banner, or even hopefully a rotating banner there, would really sharpen up my header.

    Leave a comment:


  • syrus.xl
    replied
    Originally posted by The_Gismo_Man View Post
    Nice work to code it, but, i don't have adsense on my site so cant use the add new ad, is there a quick way to recode to position the banner to the right and under the vBulletin clickable links?
    Are you referring to the #toplinks? The area where the login is located.

    Leave a comment:


  • syrus.xl
    replied
    This code would eliminate the use of vBulletin's Advertisement Manager. Where I have put 'YOUR AD CODE GOES HERE' would be where you place your own banner code. If you Google Adsense then the javascript may cause an issue but it's a bug in vBulletin than can easily be fixed.

    Code:
    <!-- Start Custom Header -->
    <div id="header_wrapper">
         <div id="logo_main">
         <a name="top" href="{vb:raw vboptions.site_tab_url}{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>
         <div id="banner_ad_top">
         YOUR AD CODE GOES HERE
         </div>
    </div>
    <!-- End Custom Header -->

    Leave a comment:


  • audiokid
    replied
    or just do away with the header 1 slot altogether so the site logo drops down in place of that?

    Leave a comment:


  • The_Gismo_Man
    replied
    Nice work to code it, but, i don't have adsense on my site so cant use the add new ad, is there a quick way to recode to position the banner to the right and under the vBulletin clickable links?

    Leave a comment:


  • audiokid
    replied
    I posted this question few days back, could have been me. Thanks you rock!

    Leave a comment:


  • syrus.xl
    replied
    You are welcome.. This issue was raised on another thread but I cannot seem to find it now.

    Leave a comment:


  • waynem
    replied
    thanks!

    Leave a comment:

Related Topics

Collapse

Working...
X