Log in

View Full Version : Mini Mods - Forum Block Title with Image


TheSupportForum
12-29-2009, 10:00 PM
Provided by
Tutorials4you (http://www.tutorials4you.co.uk)


PLEASE RATE THIS MOD
Transfter your Hosting to Us (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
Titleblock_title

replace title with your chosen title - you will need to remember this




<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



Enable the Sideblock
ADMIN CP > Settings > Options > Forum Sidebar and Block Options > Edit Settings > Enable Forum Sidebar > Yes
Create a Sideblock
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
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

https://vborg.vbsupport.ru/attachment.php?attachmentid=108644&stc=1&d=1262196291

Dr.osamA
12-30-2009, 08:29 PM
nice won

thank you

installed
________
TEEN VIDEOS (http://www.++++tube.com/categories/39/teen/videos/1)

zaheerjk
01-02-2010, 09:01 AM
nice won

thank you

installed


Hi DR osama , my name is zaheer ahamed ,
i like ur designs , they are rocking ,,,
i am new to this website world ,
i will be thankful if u can help me out with some new forums .

thnaks

TheSupportForum
01-02-2010, 10:12 AM
Hi DR osama , my name is zaheer ahamed ,
i like ur designs , they are rocking ,,,
i am new to this website world ,
i will be thankful if u can help me out with some new forums .

thnaks


i am the owner of this mod how can i help you with some of your forums

KozmoK
01-04-2010, 01:23 AM
Is there a way to call plugins from block content? I want to read fields from a sql database, I have a a forum_start hook that does this on the main forum page - but it would be better if it was a block.

TheSupportForum
01-06-2010, 03:58 PM
Is there a way to call plugins from block content? I want to read fields from a sql database, I have a a forum_start hook that does this on the main forum page - but it would be better if it was a block.

you will need to use php coding to do this

sross
05-09-2011, 10:03 PM
I tried this on 4.1.3 and as soon as I told the block to use my template as described above, the block disappeared. Any idea how to fix this? Thanks!

*update

ok this code worked for me on 4.1.3 (you'll need to change your png filename)


<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>
<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/launched.png" width="22" height="16">{vb:raw blockinfo.title}</span> </div>
<div class="widget_content blockbody floatcontainer">
<div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
{vb:raw content}
</div>
</div>
</div>
<div class="underblock"></div>
</li>

Brandon Sheley
05-10-2011, 11:14 PM
what's up with the "transfer your hosting to us" link going to a parked page for sale up in the OP?

AttalaEA
07-20-2011, 05:14 PM
Thank You :)