Back to vBulletin 4.x Template Modifications

Status Icons - Different Images for each Forum with opacity!
Mod Version: 1.00, by Gamempire

vB Version: 4.0.1 Rating: (8 votes - 5.00 average) Installs: 142
Released: 07 Feb 2010 Last Update: Never Downloads: 16
Not Supported Template Edits Re-usable Code Translations  

If you want to have different images for each forum that you have created inside your vbulletin board as you can see in this two picture:


Before (pay attention: there are some category with opacity 0.5: this are the category with old threads)
http://img695.imageshack.us/i/status0.png/


After (firefox icon is changed)
http://img695.imageshack.us/i/status1.png/


For doing this you have to install before this Add-on: Forum Icons (I put as attachment the product that you need)
BUT
1. Install only the product
2. Go Into Admincp --> Forum and Moderators; Modify each forum putting the path of each image where it says "Add the path to the icon image here."
3. Go Into Admincp --> Styles and Templates --> Manage Templates;
Edit forumhome_forumbit_level2_post

Find:
Code:
            <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
Replace With:
Code:
            <vb:if condition="$forum['iconlocation']">
                <img src="{vb:raw forum.iconlocation}" class="forumicon" alt="{vb:raw forum.title}" style="opacity: <vb:if condition="$forum['statusicon'] == 'old'">0.5<vb:else />1</vb:if>;" id="forum_statusicon_{vb:raw forum.forumid}" />
            <vb:else />
                <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
            </vb:if>

If you want, you can change the opacity searching "0.5" in my code.
Enjoy it and don't forget to !

Ps: sorry for my bad english, i'm Italian

Download

No files for download.

Screenshots

Click image for larger version
Name:	status1.png
Views:	1633
Size:	82.6 KB
ID:	111792  

Similar Mods

Avatar's opacity according to user's status (online/offline) vBulletin 3.0 Full Releases
Online/Offline Status with Avatar Opacity vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024