Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 09-01-2008, 01:07 PM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to add ad banner to header?

Hi guys,

I am just after some advice/support on how to add ad banner code to the header of the new forum template I am currently setting up?

The code I want to add for the rotating banner is the following...

Code:
<if condition="!is_member_of($bbuserinfo, 109)">
		$GLOBALS[bannerads]
</if>

The template is here: http://www.theparentingsanctuary.com...ms/?styleid=30

I simply want to have it centered in the middle of the header, between the logo on the left and the member info/login on the right. Have tried doing it myself numerous times tonight but to no avail, seems to be conflicting with the logo image a lot.

Thanks in advance for the help

--------------- Added [DATE]1220314902[/DATE] at [TIME]1220314902[/TIME] ---------------

Wow, no help with this one?
Reply With Quote
  #2  
Old 09-02-2008, 11:55 PM
mikesz mikesz is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably need to add some CSS code to be able to place the banner on the header.

For example if you were putting a text line in the header you might use something like :

Two different ways to place text on that skin header:

.mytext {
position: absolute; top: 46px; right: 140px;
height: 37px;
padding-right: 25px;
color: #FF0000;
font-size: 16px;
font-weight: bold;
}

.mytext {
position: relative;
top: -70px; left: 330px;
color: #0000FF;
font-size: 16px;
font-weight: bold;
}

In the header template:

Add:

<div class="mytext"> This is the text I want to display in the header!</div>

You should be able to easily adapt something like this for your banner display.

HTH,

mikesz
Reply With Quote
  #3  
Old 09-03-2008, 09:38 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mikesz,

Thanks so much for your help

I just tried your 2 suggested code variations and unfortunately I am having the same issue I have been experiencing with my own attempted ones previously - and that is apparent conflict with the logo:



From there, using one of your 2 suggestions or my own, I can get the ad banner centered on the same line/level it appears above in the screenshot. But just can't seem to get it to appear further up, so its exactly between the logo and member login info

Any further suggestions or help would really be appreciated!

Cheers,

Nikki.
Reply With Quote
  #4  
Old 09-07-2008, 06:24 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No-one can help?
Reply With Quote
  #5  
Old 09-07-2008, 09:36 AM
Attitude5ire's Avatar
Attitude5ire Attitude5ire is offline
 
Join Date: Feb 2006
Posts: 791
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You dont really need use positioning in ur DIV structure.
I would prolly edit your header template seems a bit clattered.
just divide into 3 divs one for logo one for ads one for Login.
float the login to right, logo to left and your Ad will remain in center.
Another way could be table 3 cells.
Reply With Quote
  #6  
Old 03-06-2010, 10:25 PM
iadventure iadventure is offline
 
Join Date: Feb 2010
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what would the code look like to accomplish this?
Reply With Quote
  #7  
Old 03-07-2010, 05:40 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

go acp > additional.css template and add this:
Code:
.ad_global_header {
float:right;
position:absolute;
top:40px;
right:40px;
}


Now place the Ads HTML code in the ad_global_header2 template :

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Ad Location Templates -> ad_global_header2

Note:
Try to adjust the (red) for right and top values as needed for the placement.

hope it help you all...

best regards

:up:
Reply With Quote
  #8  
Old 11-14-2010, 11:40 PM
danyol1706 danyol1706 is offline
 
Join Date: Jun 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
go acp > additional.css template and add this:
Code:
.ad_global_header {
float:right;
position:absolute;
top:40px;
right:40px;
}


Now place the Ads HTML code in the ad_global_header2 template :

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Ad Location Templates -> ad_global_header2

Note:
Try to adjust the (red) for right and top values as needed for the placement.

hope it help you all...

best regards

:up:
I added above code to additional.css in vB 4.0.8, but it just ignores the code completely and I still cannot get the banner to load right under the login info. I used the "Advertising>Add New Add>Global>Header 2" slot for a test 480x60 banner ad (see attached image).

As seen in the image, my banner is stuck in the middle of the header, along the top.
Attached Images
File Type: png AdAlignment.png (6.8 KB, 0 views)
Reply With Quote
  #9  
Old 07-18-2014, 08:47 PM
osras1 osras1 is offline
 
Join Date: Jul 2014
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking to have my logo on the left with 2 vertical rotating banners on the right side(instead of horizontal) example http://www.reef2reef.com is there a special code ?
Reply With Quote
  #10  
Old 07-18-2014, 11:32 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by osras1 View Post
I am looking to have my logo on the left with 2 vertical rotating banners on the right side(instead of horizontal) example http://www.reef2reef.com is there a special code ?
This thread is over six years old.

Please start your own thread with all relevant information.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05531 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete