View Full Version : Add Block above Forum Sidebar
David Karol
02-24-2013, 08:56 PM
Is it possible to add a block above the forum sidebar?
With this, I'd like to shift the sidebar down, to leave room for a 300x250 advertisement placement on top of it. I'd like to keep it outside the actual sidebar, to keep the lost real estate at a minimum.
Thanks,
David
David Karol
03-07-2013, 03:24 PM
Here's a screenshot to show what's going on here. I'd like the advertisement to appear above the sidebar block, on a white background. The sidebar block should appear below the advertisement.
https://vborg.vbsupport.ru/attachment.php?attachmentid=144067&stc=1&d=1362677038
Thanks,
David
snakes1100
03-07-2013, 03:42 PM
Just add a block in the forum block manager & place your ad code in it, then use the display order to make it #1
David Karol
03-07-2013, 03:52 PM
Just add a block in the forum block manager & place your ad code in it, then use the display order to make it #1
That's how I'm displaying the ad as showed in the screenshot. It still comes up inside this sidebar 'container'. Is there a way around that?
snakes1100
03-07-2013, 04:13 PM
No, without custom coding.
add new template, give it a name like block_custom_sidebar_ad
block templates > block_custom_sidebar_ad
you'd have to then create the block as html & wrap the code to use the custom template above.
David Karol
03-07-2013, 07:12 PM
No, without custom coding.
add new template, give it a name like block_custom_sidebar_ad
block templates > block_custom_sidebar_ad
you'd have to then create the block as html & wrap the code to use the custom template above.
The current block is HTML, and it's template consists of nothing but,
{vb:raw content}
Without {vb:raw content} in there, nothing will display. I'm not sure I understand- is there something additional that needs to go in the template? Or in the block's code? What needs to go there?
Thanks.
David Karol
03-09-2013, 01:26 AM
I got it. Instead of using the blocks manager, I inserted the ad tag directly into the FORUMDISPLAY and FORUMHOME templates, between the following lines:
<div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
***AD TAGS GO HERE***
<br>
<a id="sidebar_button_link" href="#">
Note that I needed an extra line break at the end on the FORUMDISPLAY template only. Without it, the other sidebar blocks would show without any gap. This was not the case on the FORUMHOME template, where the line break seems to occur on its own.
Here's a screenshot of the result:
https://vborg.vbsupport.ru/attachment.php?attachmentid=144081&stc=1&d=1362799687
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.