Back to vBulletin 4.x Template Modifications

Forum Block Title with Image
Mod Version: 1.00, by TheSupportForum

vB Version: 4.0.1 Rating: (1 vote - 5.00 average) Installs: 13
Released: 30 Dec 2009 Last Update: Never Downloads: 1
Not Supported Template Edits Re-usable Code  

Provided by
http://www.tutorials4you.co.uk


PLEASE RATE THIS MOD
http://hosting.tutorials4you.co.uk/cart.php


Description:


this useful template will allow you to have an image beside yor chosen forum block

How to:

1) enable forum blocks

ADMIN CP > Settings > Options > Forum Sidebar and Block Options > Edit Settings > Enable Forum Sidebar > Yes





Create a new template
  • Admin CP > Styles & Templates > Style Manager > Add New Template
  • Title
block_title
replace title with your chosen title - you will need to remember this



Code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_title" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_title"/></a>
<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/image.png" title="{vb:raw blockinfo.title}" alt="" />{vb:raw blockinfo.title}</span>
</div>
<div id="block_title" class="blockbody floatcontainer">
<div class="blockrow">{vb:raw content}</div>
</div>
</div>
<div class="underblock"></div>
</li>

replace title with the same title name from above

replace image.png with your chosen image
create an image 16x16 pixels or reduce an image to this size



you will need to create your sideblock

  1. Enable the Sideblock
    • ADMIN CP > Settings > Options > Forum Sidebar and Block Options > Edit Settings > Enable Forum Sidebar > Yes
  1. Create a Sideblock
  2. ADMIN CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP
    • Title: titilename (this will appear as the title)
    • Description: give a brief description.
    • Content Type: HTML
  • Content
HTML Code:
paste the htm code into the box
Template to Use
block_title

remember to replace title with the block title you created earlier in your custom template


EXAMPLE

Download

No files for download.

Screenshots

Click image for larger version
Name:	example.JPG
Views:	3073
Size:	6.6 KB
ID:	108644  


vblts.ru supports vBulletin®, 2022-2024