vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Forum Block Title with Image (https://vborg.vbsupport.ru/showthread.php?t=231687)

TheSupportForum 12-29-2009 10:00 PM

Forum Block Title with Image
 
1 Attachment(s)
Provided by
Tutorials4you


PLEASE RATE THIS MOD
Transfter your Hosting to Us


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
Quote:

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

https://vborg.vbsupport.ru/attachmen...1&d=1262196291

Dr.osamA 12-30-2009 08:29 PM

nice won

thank you

installed
________
TEEN VIDEOS

zaheerjk 01-02-2010 09:01 AM

Quote:

Originally Posted by Dr.osamA (Post 1942853)
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

Quote:

Originally Posted by zaheerjk (Post 1944776)
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

Quote:

Originally Posted by KozmoK (Post 1946530)
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)

Code:

<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 :)


All times are GMT. The time now is 06:09 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.05069 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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