Announcement
Collapse
No announcement yet.
Banner placement next to logo?
Collapse
X
-
Originally posted by SLY LS1 View PostI can't get the advertising to work either..
Does anyone know who it works ?
I think someone mentioned there's 2 places in the top ad section, so you can try inserting your ad code in both boxes to see if one of them places the ad to the right of the logo.
Comment
-
The right box in the control panel advertising tool will place the banner to the right of the logo, but also below it.
Using this feature requires that you have a 3rd party banner serving program like OpenX, and you place the invocation code from that product in this space to make it work. Looks nice, too.
Comment
-
I had the same issue...
What I did was re-code the header and added additional CSS so the banner rotator would not push my logo out. I've attached a screen capture of my header showing the modified header.
It is quite simple to change, I have left the original banner ad locations in place, and added my own - but either one could be easily coded into the new header.
Comment
-
I'll have to modify it slightly, because I have additional coded DIV's that are not needed. I'll post the code I done in awhile, once I have redone it.
I'll add the right ad block so it works with the default vBulletin Advertising Management AdminCP.
Comment
-
How to set up the Logo and one Advert so they are aligned horizontally
If you try to use the default vBulletin 4.0 code to align an advert along side your logo, it will not work. I coded this workaround, because the default code would not work the way I wanted it to.
I have coded this little modification so that if you place an advert in ad area 2 of the header it will appear next to your logo, and will not affect your logo's position whatsoever.
In the #logo_main adjust the width and height values to suit your own logo. The margin-top value adjusts the distance between the top of your logo and the top of the toplinks. margin-left I have set to 20px, but you can adjust this to suit where you want the logo to be from the left side.
The best way is to adjust the values gradually if you are not sure about CSS coding.
In the vbulletin.css template find:
Code:.body_wrapper { padding: 0 {vb:math 2 * {vb:stylevar padding}} {vb:math {vb:stylevar padding}*2}; background: {vb:stylevar body_background}; -moz-border-radius: {vb:stylevar border_radius}; -webkit-border-radius: {vb:stylevar border_radius}; _display: inline; }
Code:/* Replacement Header CSS */ #header_wrapper { width:100%; height:140px; } #logo_main { float:left; display:inline-block; width:274px; height:98px; margin-top:20px; margin-left:20px; position:relative; } #banner_ad_top { float:right; display:inline-block; margin-right:20px; margin-top:50px; width:468px; height:60px; }
Code:{vb:raw ad_location.global_header2}
Code:<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="Powered by vBulletin" /></a></div>
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:raw ad_location.global_header2} </div> </div> <!-- End Custom Header -->
Hope this helps some of you with this issue!Last edited by syrus.xl; Tue 5 Jan '10, 2:19pm.
Comment
-
I'll be trying this, subscribing to this thread, thank you syrus =)
Originally posted by syrus.xl View PostIf you try to use the default vBulletin 4.0 code to align an advert along side your logo, it will not work. I coded this workaround, because the default code would not work the way I wanted it to.
I have coded this little modification so that if you place an advert in ad area 2 of the header it will appear next to your logo, and will not affect your logo's position whatsoever.
In the #logo_main adjust the width and height values to suit your own logo. The margin-top value adjusts the distance between the top of your logo and the top of the toplinks. margin-left I have set to 20px, but you can adjust this to suit where you want the logo to be from the left side.
The best way is to adjust the values gradually if you are not sure about CSS coding.
In the vbulletin.css template find:
Code:.body_wrapper { padding: 0 {vb:math 2 * {vb:stylevar padding}} {vb:math {vb:stylevar padding}*2}; background: {vb:stylevar body_background}; -moz-border-radius: {vb:stylevar border_radius}; -webkit-border-radius: {vb:stylevar border_radius}; _display: inline; }
Code:/* Replacement Header CSS */ #header_wrapper { width:100%; height:140px; } #logo_main { float:left; display:inline-block; width:274px; height:98px; margin-top:20px; margin-left:20px; position:relative; } #banner_ad_top { float:right; display:inline-block; width:50%; margin-right:20px; margin-top:50px; width:468px; height:60px; }
Code:{vb:raw ad_location.global_header2}
Code:<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="Powered by vBulletin" /></a></div>
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:raw ad_location.global_header2} </div> </div> <!-- End Custom Header -->
Hope this helps some of you with this issue!
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 -
Comment