Separate category strip colors in forum home?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AyatollahGondola
    Member
    • May 2007
    • 34

    Separate category strip colors in forum home?

    Is it possible to use different colors for category strips in your forum home to separate parts of your forum by color?
  • DoE
    Senior Member
    • Sep 2007
    • 763

    #2
    With a little edit of the forumhome_forumbit_level1_nopost template.

    Find at the top:

    Code:
    <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    replace with:

    Code:
    <td class="<if condition="in_array($forumid, array(6,10))">tcat_$forumid<else />tcat</if>" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    In the array above, place your Category ID numbers. To find them just mouseover each category name on forum home.

    In the main CSS, in the Additional CSS block at the bottom add the following:

    .tcat_6 {
    background: #333377;
    }
    .tcat_10 {
    background: #773377;
    }

    Each number represents your Cat number in the Array. You will need to add styling for the text colors and anchors. But basically the above is all you need to do. You can even add a different background image for each category using this as well. Tested and it works.

    Comment

    • AyatollahGondola
      Member
      • May 2007
      • 34

      #3
      You will need to add styling for the text colors and anchors. But basically the above is all you need to do. You can even add a different background image for each category using this as well
      Accomplished the other stuff I think, but where do I make the above changes

      Comment

      • DoE
        Senior Member
        • Sep 2007
        • 763

        #4
        The template edit: Styles & Templates -> Style Manager -> Edit Templates (from the drop down) -> Forum Home Templates -> Forum Home -> forumhome_forumbit_level1_nopost

        For the CSS: Styles & Templates -> Style Manager -> Main CSS (from the drop down). Then scroll to the very bottom to the Additional CSS box.

        Comment

        • Amiga Harrison
          Member
          • Nov 2006
          • 67
          • 3.8.x

          #5
          How is the same achieved in vB4?
          Retro Amiga gaming. Come visit us as http://www.classicamiga.com

          Comment

          Related Topics

          Collapse

          Working...