How to create custom box under navbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRGTB
    Senior Member
    • May 2005
    • 5454

    How to create custom box under navbar

    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:

    Code:
     
    <!-- 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 -->
    [COLOR=red]Title goes here[/COLOR]
    <!-- title end -->
    </td>
    </tr>
    </tbody>
    <tbody id="collapseobj_custom_block" style="$vbcollapse[collapseobj_custom_block]">
    <tr>
    <td class="alt2">
    <!-- code start -->
    [COLOR=red]Add your code here[/COLOR]
    <!-- 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.

    Code:
    <td class="alt[COLOR=red]2[/COLOR]">

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


    Code:
     
    <!-- 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 -->
    [COLOR=red]Title goes here[/COLOR]
    <!-- title end -->
    </td>
    </tr>
    <tr>
    <td class="alt2">
    <!-- code start -->
    [COLOR=red]Add your code here[/COLOR]
    <!-- code end -->
    </td>
    </tr>
    </tbody>
    </table>
    <br />
    <!-- custom block end -->
    Last edited by MRGTB; Fri 1 Sep '06, 6:38am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...