Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2013, 09:56 PM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add Block above Forum Sidebar

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
Reply With Quote
  #2  
Old 03-07-2013, 04:24 PM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.


Thanks,
David
Attached Images
File Type: jpg Screen Shot 2013-03-07 at 12.22.54 PM.jpg (53.1 KB, 0 views)
Reply With Quote
  #3  
Old 03-07-2013, 04:42 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add a block in the forum block manager & place your ad code in it, then use the display order to make it #1
Reply With Quote
  #4  
Old 03-07-2013, 04:52 PM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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?
Reply With Quote
  #5  
Old 03-07-2013, 05:13 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-07-2013, 08:12 PM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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,
Code:
{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.
Reply With Quote
  #7  
Old 03-09-2013, 02:26 AM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Code:
<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:
Reply With Quote
Reply


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 12:08 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.04731 seconds
  • Memory Usage 2,239KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_code
  • (2)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete