Centralize Category names / description

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rob-Morgan
    Senior Member
    • Dec 2004
    • 102

    Centralize Category names / description

    I want the category names / descriptions to be centralized instead of at the left.

    How do I go about doing that?

    Thanks alot guys!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

    Add the red code:

    Code:
    <tbody>
    	<tr>
    		<td [color=red]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
    			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    		</td>
    	</tr>
    </tbody>
    <if condition="$childforumbits">
    <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
    $childforumbits
    </tbody>
    </if>

    Comment

    • Rob-Morgan
      Senior Member
      • Dec 2004
      • 102

      #3
      Thats excellent. And also, is there a way of formatting this text? For example if I just want the category names / descriptions in a different colour, for this example, red.

      Is that possible?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu) -> Category Strips

        Comment

        • Julio
          Member
          • Oct 2002
          • 81

          #5
          How to do this under 3.6.8? I checked my style but I can not find this code.

          Here is my code:

          Code:
          <!-- top category table setup -->
          <table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="140" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_left.gif" alt=" " border="0" /></td>
              <td width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" valign="middle">
              
                      
                      <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                      <div align="left">
                      <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><b><font color="#ffffff">$forum[title]</font></b></a></div>
                      <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
                  
              
              </td>
               <td width="140" height="27" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_right.gif" alt=" " border="0" /></td>
            </tr>
          </table>
                  <!-- End top category table setup -->
                  
                  
                  
          
          <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
          <if condition="$childforumbits">
          <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
          <tr align="center">
                <td class="thead" width="5%">&nbsp;</td>
                <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td>
                    <td class="thead" width="7%">$vbphrase[threads]</td>
                <td class="thead" width="7%">$vbphrase[posts]</td>
                    <td class="thead" width="25%">$vbphrase[last_post]</td>
                <if condition="$vboptions[showmoderatorcolumn]">
                <td class="thead" width="11%">$vbphrase[moderator]</td>
                </if>
              </tr>
          $childforumbits
          </tbody>
          </if>
          </table>
            <!-- bottom table setup -->
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="70" align="left" valign="top"><img src="$stylevar[imgdir_misc]/bot_left.gif" alt=" " border="0" /></td>
                  <td  width="100%" style="background-image:url($stylevar[imgdir_misc]/bot_back.gif)"></td>
                  <td width="70" align="right" valign="top"><img src="$stylevar[imgdir_misc]/bot_right.gif" alt=" " border="0" /></td>
                </tr>
              </table>
             <!-- End bottom table setup -->
               <div class="spacer"></div>

          Comment

          • Jose Amaral Rego
            Senior Member
            • Feb 2005
            • 11058
            • 1.1.x

            #6
            You are better off asking the author of the style or over at vBulletin.org and you should post in forum PHP & HTML Questions, as it has nothing to do with this version.

            Hint!.... maybe
            <div align="left">

            Comment

            • Julio
              Member
              • Oct 2002
              • 81

              #7
              Jose:

              Hehehe - Thanks!

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...