View Full Version : FORUMHOME HeaderBlock spacing?
November 9th, 2010, 07:06 PM
I need to add a <br/> or 2 where my FORUMHOME HeaderBlock exists, as my logo and advertiser banners are running over it at times.
Which template should I edit to add the <br/>?
In addition, I want to center the FORUMHOME HeaderBlock within the space.
Running vB 4.0.8 & vBGallery 3.0
November 10th, 2010, 10:52 PM
the headerblock is sometimes problematic, and if I were you I would not add a <br />
The wrapper <ul> is not generated in a template but hardcoded in
$tmp_vars['hdgal_imagebits'] = '<ul id="headerimgs" style="white-space:nowrap;" class="ppgGalheader">' . $tmp_vars['hdgal_imagebits'] . '</ul>';
it is there twice, once for cached images, once for newly generated.
BUT I WOULD NOT TOUCH THAT if I were you - as the element is float left or right, that can be changed in Stylevars on a per Style base. There you can also change the distance from top. (if you need a higher header, you can add a <br /> in your main header template somewhere)
to play around with the settings..
go to ACP->Styles & Templates->Style Manager.
There in the style you want to change select Stylevars in the dropdown menu.
That will take you to the Style Variable Editor.
Scroll down to the vbgallery sections to the section: vbgallery_Headerblock
There you have 3 stylevars you can edit.
ppg_hdblock_position : setting left or right
ppg_hdblock_topmargin: it is set to -4, default for left, but if you set it to right above.. you might need another height.
ppg_hdblock_topmargin_noreg: if you set it to right above.. you will need another distance to top so the block will not interfere with the login stuff.
more detailed explanation from the stylevar help:
Useful if you set the Headerblock to 'right'. As the login in header has a different height than the block for registered users, you might need a different top-margin for guests. You can position the block higher by using a negative top-margin: example -12 will set the Block 12 pixel higher than default. [Suggested setting when block is set to 'right': Units: px and Size:-12]
negative value : -12 will set block higher than default, positive value will set it lower..
it says if you set to right, but of course it will also work if the headerblock is "left"
November 11th, 2010, 05:59 PM
Thank you very much. Unfortunate that it can't be centered, but the right side justification is better, and the spacing was easily set in the StyleVars.
November 13th, 2010, 08:35 AM
centering is a bummer, because now you have float:left and float:right.
if you want to center it, you would have to change the whole html and you wouldnt be able to place it left or right anymore.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.