Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 02-28-2014, 03:14 AM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to move header 2 over (ad location)?

I am using the Header 2 location in ad management. I think the ads are supposed to be all the way over to the right and they are just to the right of my logo instead. If that is where they are supposed to be, I would like to move them over (see attached). I am not techie, so I really try to keep things basic.

I am running 4.2.2, using the default style with the only modifications being a few changes to colors and adding my own title image. The only mods I have on there now are webtemplates and vbadvanced. This issue is happening whether those are on or disabled. I am not sure what to modify or where to do it.
Attached Images
File Type: jpg move header 2.jpg (49.6 KB, 0 views)
Reply With Quote
  #2  
Old 02-28-2014, 05:22 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks to me like the ad is to the left of the toplinks rather than under them, which is keeping it pushed over. I saw someone asked about this same issue at vbulletin.com ahwile back and no one ever answered him. I guess this must not be a common issue, I don't know why I am having this problem, but I need to fix asap.
Reply With Quote
  #3  
Old 02-28-2014, 05:57 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to ACP->Styles & Templates->Style Manager and edit the vbulletin-chrome.css template.

Locate ad_global_header2 (near the end of the css) and edit the padding and/or margin as needed.

This is the only way I know to do it without affecting all of the other ad locations.
Reply With Quote
  #4  
Old 02-28-2014, 07:04 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add this to additional.css, you must adjust padding/margin AND float etc to see changes, change the margin-right from 25px to something of your choice otherwise they now float right and are 25pixels from the right edge.

Code:
.ad_global_header {
	float:{vb:stylevar right};
	margin-right:25px !important;
}
#ad_global_header1 {
	float:{vb:stylevar left};
	padding:0px !important;
	margin:0px !important;
}
#ad_global_header2 {
	float:{vb:stylevar left};
	padding:0px !important;
	margin:0px !important;
}

Also, #ad_global_header1 is on the left close to your logo, these are inline so #ad_global_header2 is to the right of it, if one ad location does not exist it will still be on the left side. If one of them is floating on the left instead of right then change {vb:stylevar left} to {vb:stylevar right}
Reply With Quote
  #5  
Old 02-28-2014, 08:28 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Add this to additional.css, you must adjust padding/margin AND float etc to see changes, change the margin-right from 25px to something of your choice otherwise they now float right and are 25pixels from the right edge.

Code:
.ad_global_header {
	float:{vb:stylevar right};
	margin-right:25px !important;
}
#ad_global_header1 {
	float:{vb:stylevar left};
	padding:0px !important;
	margin:0px !important;
}
#ad_global_header2 {
	float:{vb:stylevar left};
	padding:0px !important;
	margin:0px !important;
}

Also, #ad_global_header1 is on the left close to your logo, these are inline so #ad_global_header2 is to the right of it, if one ad location does not exist it will still be on the left side. If one of them is floating on the left instead of right then change {vb:stylevar left} to {vb:stylevar right}
Thank you! This helped a lot as I didn't know where to begin. I changed the float to right and added a top margin. The problem I am having now is that it worked for all forum pages, but not pages using Logician's webtemplates.
Reply With Quote
  #6  
Old 03-03-2014, 08:02 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician helped me sort out where to put the code for my webtemplates pages. Here is the code I actually used to get it to look the way I want it:

Code:
.ad_global_header {
    float:{vb:stylevar right};
    margin-right:0px !important;
}
#ad_global_header1 {
    float:{vb:stylevar left};
    padding:0px !important;
    margin:0px !important;
}
#ad_global_header2 {
    float:{vb:stylevar right};
    padding:0px !important;
    margin-top:50px !important;
}
Reply With Quote
  #7  
Old 03-05-2014, 03:47 PM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How Would I Make It So global Header 2 Can Be Adjusted ToP, Bottom, Left, And Right?
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:06 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.06399 seconds
  • Memory Usage 2,234KB
  • 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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete