Back to vBulletin 4.x Template Modifications

Forum Icons on forumhome "Updated"
Mod Version: 1.01, by fxwoody

vB Version: 4.1.0 Rating: (1 vote - 5.00 average) Installs: 8
Released: 16 Jan 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code  

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:
Forum Icons on forumhome
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

Download

No files for download.

Screenshots

Click image for larger version
Name:	cover.png
Views:	1014
Size:	34.5 KB
ID:	125681  


vblts.ru supports vBulletin®, 2022-2024