Back to vBulletin 4.x Template Modifications

Change Background Color for Specific Forums on Homepage
Mod Version: 1.00, by addamroy

vB Version: 4.1.x Rating: (1 vote - 5.00 average) Installs: 11
Released: 30 Dec 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This modification will allow you to change the background color of specific forums on your forumhome.

For example, if you want to draw more attention to your private sections to drive paid registrations, this can help.

This mod is done via one simple template edit.

STEP 1 - Find the forumhome_forumbit_level2_post template via edit templates > Forum Home Templates.

Find the code below
Code:
<div class="forumrow table">
And replace it with
Code:
<div class="forumrow table"
<vb:if condition="$forum[forumid] == XXX">
style="background-color:#xxxxxx;"
</vb:if>
>
Replace XXX with the forumid of the forum you want to change the background color of.

Replace xxxxxx to the hex code of the color you want to use. You can find hex codes here, http://www.html-color-codes.com

If you have multiple forums you want to change the background colors of for each, simply stack additional vb:if conditions before the > for each forum you want to change.

Like below
Code:
<div class="forumrow table"
<vb:if condition="$forum[forumid] == XXX">
style="background-color:#xxxxxx;"
</vb:if>
<vb:if condition="$forum[forumid] == XXX">
style="background-color:#xxxxxx;"
</vb:if>
<vb:if condition="$forum[forumid] == XXX">
style="background-color:#xxxxxx;"
</vb:if>
>
Straight forward, works like a charm.

Check out my other Template Modifications for 4.x!

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts

http://www.vbulletin.org/forum/showthread.php?p=2393460

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page

Change Thread Title Color for Specific Forums on Homepage

Change Title Color of Specific Forums on Homepage

Thread Starter Image in Postbit for OP

CUSTOM BUTTONS that look like your forum!

Custom User Rank Box in Posts

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024