PDA

View Full Version : Status Icons - Different Images for each Forum with opacity!



admin
25-02-2010, 10:41 PM
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/img695/5613/status0.png (http://img695.imageshack.us/i/status0.png/)


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


For doing this you have to install before this Add-on: Forum Icons (http://www.vbulletin.org/forum/showthread.php?t=229529) (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:

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

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

nghia_code
01-04-2010, 12:06 PM
Product đâu vậy bạn ơi

nick1
12-12-2011, 10:48 AM
Thí í great. Ẽactly what I've bên lôking for.