vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Latest Threads/google adsence under nav bar (https://vborg.vbsupport.ru/showthread.php?t=147405)

mrcrx 05-16-2007 06:28 PM

Latest Threads/google adsence under nav bar
 
I seen this on a site and I think it really looks nice. I tried searching but cant find out how to do it. Can anyone help me set this up? I added a pic of what I described.

http://b20vtec.com/images/frontpagehack.bmp

sinistergaming 05-23-2007 08:32 PM

How to create custom box under navbar

If you would like to add a custom box under your navbar that can be used to display things like Google Adsence banners in or other custom code. That is also collaspsible so members can close it if they wish.

Here is how!

In the FORUMHOME template find this code: $navbar



Add this below it:


<!-- custom block start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('custom_block')">
<img id="collapseimg_custom_block" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_custom_block].gif" alt="" border="0" /></a>
<!-- title start -->
Title goes here
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_custom_block" style="$vbcollapse[collapseobj_custom_block]">
<tr>
<td class="alt2">
<!-- code start -->
Add your code here
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
<!-- custom block end -->


This also XHTML and CSS valid and will keep your homepage validated OK.

change this in the code: to "1" or "2" for colour you prefer for block background colour.

<td class="alt2">


If you don't want the block to be collasible, use this instead:



<!-- custom block start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat">
<!-- title start -->
Title goes here
<!-- title end -->
</td>
</tr>
<tr>
<td class="alt2">
<!-- code start -->
Add your code here
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
<!-- custom block end -->


All times are GMT. The time now is 03:59 PM.

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.01013 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete