Announcement
Collapse
No announcement yet.
Banner placement next to logo?
Collapse
X
-
Thanks a lot, Syrus! I had the same problem and your solution worked great for me!
-
Originally posted by The_Gismo_Man View PostThanks again for the advice, hmm, maybe a bit too much for me to do, which template would i put it into?
Leave a comment:
-
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:
-
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:
-
Originally posted by syrus.xl View PostIs it the Tayside Bikers forum in question?
I'm not wanting to add any adsense type banners, sorry for the confusion and appreciate your coding skills
Leave a comment:
-
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:
-
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:
-
Originally posted by syrus.xl View PostAre you referring to the #toplinks? The area where the login is located.
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:
-
Originally posted by The_Gismo_Man View PostNice 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:
-
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:
-
or just do away with the header 1 slot altogether so the site logo drops down in place of that?
Leave a comment:
-
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:
-
I posted this question few days back, could have been me. Thanks you rock!
Leave a comment:
-
You are welcome.. This issue was raised on another thread but I cannot seem to find it now.
Leave a comment:
Related Topics
Collapse
-
by DplaxHi, can someone please halp me, I have moved the search box down to the nav bar, and now I would like to put a banner (responsive) in that space to the right of the logo. I think it should be possible....
-
Channel: Support Issues & Questions
Sun 19 Aug '18, 7:42am -
Leave a comment: