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 Icons on forumhome "Updated" Details »»
Forum Icons on forumhome "Updated"
Version: 1.01, by fxwoody fxwoody is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.0 Rating:
Released: 01-15-2011 Last Update: Never Installs: 8
Template Edits
Re-useable Code Code Changes  
No support by the author.

Forum Icons on forumhome V 4.x.x

This mod allows you to have specific forum icons on the forumhome page per forum.

Originally posted for 3.x.x by Sofia in here:
https://vborg.vbsupport.ru/showthread.php?t=214289
So i thought it would be interesting to have it for the newer versions.

Installation:

Find in "forumhome_forumbit_level2_post":
HTML Code:
				<div class="datacontainer">
					<div class="titleline">
						<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
						<vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
					</div>
					<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>
Replace with:

HTML Code:
  			<div class="datacontainer">
                                    <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; max-height: 32px; max-width: 32px;" />
                                <div>
                                    <h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                       <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                       <vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if></div>
If you have subforums

In "forumhome_subforumbit_post" replace with this:

HTML Code:
<li class="subforum">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" /> 
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title} <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; width: 25px; height: 25px;"/></a>
</li>
Create a folder "iconforums" into your images/misc folder. Upload your icons in images/misc/iconforums.

Indicate a forumid for the images name.

Example:
ID Forum = 3. So your image have this name : "3.gif"
ID Forum = 7. So your image have this name : "7.gif"

You must have an icon for each forum or it will generate errors in your log as "missing icons"

Reminder!! Don't forget to change the extension to your images format (.jpg .gif .png)
also, adjust the size with in the codes for better fit on your board

Screenshots

File Type: png cover.png (34.5 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 01-16-2011, 03:32 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged and thanks
Reply With Quote
  #3  
Old 01-16-2011, 08:18 AM
kfyonur kfyonur is offline
 
Join Date: Apr 2008
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx super
Reply With Quote
  #4  
Old 01-17-2011, 09:54 PM
Eduardo Leon's Avatar
Eduardo Leon Eduardo Leon is offline
 
Join Date: Oct 2009
Location: Peru
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah nice ..

thanks
Reply With Quote
  #5  
Old 06-29-2011, 01:10 AM
cionfs's Avatar
cionfs cionfs is offline
 
Join Date: Jun 2007
Location: Taranto - Italy
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A copy?

https://vborg.vbsupport.ru/showthrea...ighlight=icons
Reply With Quote
  #6  
Old 07-01-2011, 12:26 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should it be??? If it is, well, all credits to you cionfs

Cheers
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 11:56 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.03837 seconds
  • Memory Usage 2,276KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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