Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Block Title with Image Details »»
Forum Block Title with Image
Version: 1.00, by TheSupportForum TheSupportForum is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.1 Rating:
Released: 12-29-2009 Last Update: Never Installs: 13
Template Edits
Re-useable Code  
No support by the author.

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

Screenshots

File Type: jpg example.JPG (6.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-30-2009, 08:29 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice won

thank you

installed
________
TEEN VIDEOS
Reply With Quote
  #3  
Old 01-02-2010, 09:01 AM
zaheerjk zaheerjk is offline
 
Join Date: Apr 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.osamA View Post
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
Reply With Quote
  #4  
Old 01-02-2010, 10:12 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zaheerjk View Post
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
Reply With Quote
  #5  
Old 01-04-2010, 01:23 AM
KozmoK KozmoK is offline
 
Join Date: Apr 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-06-2010, 03:58 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KozmoK View Post
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
Reply With Quote
  #7  
Old 05-09-2011, 10:03 PM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 05-10-2011, 11:14 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what's up with the "transfer your hosting to us" link going to a parked page for sale up in the OP?
Reply With Quote
  #9  
Old 07-20-2011, 05:14 PM
AttalaEA AttalaEA is offline
 
Join Date: Apr 2011
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04520 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete