vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Align Logo with Header Advert 2 (No Drop) (https://vborg.vbsupport.ru/showthread.php?t=232325)

Sax on the Web 02-05-2010 09:54 AM

Quote:

Originally Posted by syrus.xl (Post 1975221)
Hi,

You will need to edit your front page, and where it says Style select Inherit - this will then inherit the correct style site-wide.

HTH

Thanks a lot,
in the matter of fact I changed it to "vb4 default" and that did the trick. (It was set as "vB3 incompatible" before).

Follow-up question: I would like to create a separate style for the front page which would be a sub-set of the forum header. (I.e. only one out of four banners.) How to get started?

thnx in advance,

HRCHOSTING 02-07-2010 05:36 PM

Installed but its pushing the image half way off the side of my page. Any idea's?

RedTrinity 02-12-2010 02:48 AM

Quote:

Originally Posted by HRCHOSTING (Post 1976805)
Installed but its pushing the image half way off the side of my page. Any idea's?

Happening on our forum too :confused: VB4.0.1, using Firefox 3.5.

syrus.xl 02-12-2010 06:14 AM

I coded this for version 4.0.0 - it does require updating, but this will not be done until vBulletin release 4.0.2, just in case they make further CSS changes to the header template.

Sorry about this...

murekhalir 02-12-2010 05:08 PM

its all good. I'll just have to wait then.

It is chrome compatible for sure.

ie7 no.

ie 8 yes.

daveaite 02-13-2010 08:01 AM

Quote:

Originally Posted by HRCHOSTING (Post 1976805)
Installed but its pushing the image half way off the side of my page. Any idea's?

Adjust vbulletin.css

Edit this to perfection. :) Heres what I did below...

Code:

#logo_main {
    float:left;
    display:inline-block;
    width:274px;
    height:60px;
    margin-top:25px;
    margin-left:0px;
    position:relative;

#banner_ad_top {
    float:right;
    display:inline-block;
    margin-right:260px;
    margin-top:50px;
    width:468px;
    height:60px;


RedTrinity 02-13-2010 10:31 AM

1 Attachment(s)
Quote:

Originally Posted by daveaite (Post 1981242)
Adjust vbulletin.css

Edit this to perfection. :) Heres what I did below...

Thanks. Your advice helped me to get my banner back from wandering off the right side of the screen! Though still having issues with getting it to the right of the existing banner. Here's where I am at the moment (see attached image):

PHP Code:

#logo_main {
    
float:left;
    
display:inline-block;
    
width:400px;
    
height:100px;
    
margin-top:5px;
    
margin-left:0px;
    
position:relative;
}  
#banner_ad_top {
     
float:right;
     
display:inline-block;
     
margin-right:250px;
     
margin-top:0px;
     
width:400px;
     
height:100px


Any suggestions? I'm not sure how I can get the ad banner any further up whilst the margin-top is already set to 0 :confused: It seems to be aligning itself with 'the top' being distinguished as the bottom of the left banner, instead of the top of the header area.

Not sure how to fix this. Would appreciate further help.

Cheers :)

ETA: Just to add, apon further experimenting, raising that margin-right: amount with the ad banner does indeed fix the banner off the screen issue, but it also creates the big gap underneath the original logo banner (to which the ad banner is on the right of, as per the pic attached).

So whilst fixing the old problem, it seems to create a new one.

RedTrinity 02-13-2010 11:01 PM

1 Attachment(s)
Ok so I managed to get the banners aligned in FF (my default browser) and looking good. But they are still coming up as misaligned for IE :confused:

Have tried adjusting the doc_minwidth value, but doesn't seem to be making much (if any) difference with this problem.

Starting to do my head in a bit :(

HRCHOSTING 02-14-2010 03:17 AM

Quote:

Originally Posted by daveaite (Post 1981242)
Adjust vbulletin.css

Edit this to perfection. :) Heres what I did below...

Code:

#logo_main {
    float:left;
    display:inline-block;
    width:274px;
    height:60px;
    margin-top:25px;
    margin-left:0px;
    position:relative;

#banner_ad_top {
    float:right;
    display:inline-block;
    margin-right:260px;
    margin-top:50px;
    width:468px;
    height:60px;


worked like a charm, thanks

RedTrinity 02-14-2010 03:24 AM

Quote:

Originally Posted by HRCHOSTING (Post 1981842)
worked like a charm, thanks

Just make sure its working properly in all browsers, as I found this fixed my problem in Firefox, but not IE.


All times are GMT. The time now is 11:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete