Back to vBulletin 3.7 Template Modifications

Color Forums
Mod Version: 1.00, by Twilkey

This modification is in the archives.
vB Version: 3.7.1 Rating: (2 votes - 5.00 average) Installs: 14
Released: 12 Jun 2008 Last Update: Never Downloads: 121
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

PS - Color Forums
This mod allows the admin to set the background color of each individual forum row. As well as the text color for each row.

Installation
First, Upload the bitfield file to your xml folder located in your includes folder. (/forum/includes/xml/)

Next, Import the product file.

Finally Edit your templates. Find forumhome_forumbit_level2_post under your Forum Home Templates list.

Replace the entire template with this, only if you are using the default template. If this template has been edited, then you need to add the style code manually.

Code:
<tr align="center">
    <td class="alt2" style="background-color:$forum[bgcolor2]; color:$forum[textcolor];"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
    <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" style="background-color: $forum[bgcolor1]; color: $forum[textcolor];">
        <div>
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </div>
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    </td>
    <td class="alt2" style="background-color: $forum[bgcolor2]; color: $forum[textcolor];">$forum[lastpostinfo]</td>
    <td class="alt1" style="background-color: $forum[bgcolor1]; color: $forum[textcolor];">$forum[threadcount]</td>
    <td class="alt2" style="background-color: $forum[bgcolor2]; color: $forum[textcolor];">$forum[replycount]</td>
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="alt1" style="background-color: $forum[bgcolor1]; color: $forum[textcolor];"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</tr>
$childforumbits
After you are done, edit the properties of each forum.

If you are not using the default forumhome_forumbit_level2_post template but you are a coder, then you need to add this code to the <td> tags switching between styles as you would like.
Code:
 style="background-color: $forum[bgcolor1]; color: $forum[textcolor];"
Code:
 style="background-color: $forum[bgcolor2]; color: $forum[textcolor];"
If you are not a coder or do not understand this stuff, then just ask.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s bitfield_colorforum.xml (437 Bytes, 68 downloads)
File Type: %1$s product_colorforum.xml (2.6 KB, 68 downloads)

Screenshots

Click image for larger version
Name:	colorforum.jpg
Views:	943
Size:	45.7 KB
ID:	82160   Click image for larger version
Name:	colorforumadmin.jpg
Views:	271
Size:	14.4 KB
ID:	82161  


vblts.ru supports vBulletin®, 2022-2024