Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
Color Forums Details »»
Color Forums
Version: 1.00, by Twilkey Twilkey is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.1 Rating:
Released: 06-11-2008 Last Update: Never Installs: 14
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-12-2008, 02:26 PM
ahayat ahayat is offline
 
Join Date: Mar 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod reserved *
Reply With Quote
  #3  
Old 06-15-2008, 08:06 AM
niravdave niravdave is offline
 
Join Date: Jun 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod colors only the the default height.

For example i have the forum + subforums height of 100px. This only applied backgroud color to 50px
Reply With Quote
  #4  
Old 06-19-2008, 03:06 PM
karnevil karnevil is offline
 
Join Date: Feb 2007
Location: Derbyshire
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you work out a fix to that niravdave?
Reply With Quote
  #5  
Old 11-30-2008, 06:47 PM
GSeybold GSeybold is offline
 
Join Date: Dec 2007
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a live demo of this?
Reply With Quote
  #6  
Old 12-04-2008, 09:11 PM
tommyturnage's Avatar
tommyturnage tommyturnage is offline
 
Join Date: Nov 2007
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice
Reply With Quote
  #7  
Old 12-09-2008, 04:19 PM
Byk Byk is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can do this with a category? I want color category, no forums.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04181 seconds
  • Memory Usage 2,255KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete