Welcome, Guest. Please Login or Register.
March 15, 2025, 10:14:11 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [code 1.5.0] Hide Category bar « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [code 1.5.0] Hide Category bar  (Read 1279 times)
Zulu
Full Member
***
Posts: 104


I'm no longer a llama, I'm a Monkey

WWW
[code 1.5.0] Hide Category bar
« on: January 24, 2003, 09:32:05 AM »
Reply with quote

I have a few boards that are only for some member groups.. But this goes for one board at a time, so you'll get a lot of cat-bars on your boardindex if you're an admin/gm.
Here's the fix  :P, It'll hide the cat-bar, but will display the boards if you put 'HIDE' in front of your cat-name. For example 'HIDEAdmins Only' or 'HIDE My Board'

in Boardindex.php search for:
         echo "<tr> <td colspan=\"3\" class=\"catbg\" height=\"18\">\n";
         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";

And put before it:
if(substr($row_board[catName], 0, 4) != 'HIDE') {

And After It:
}


If you have Collapsable YaBB Installed: (Already Collapsed cat's will look completely hidden !)
 
search for (Boardindex.php)
      if ($allowcollapsemod)
      {
         if ( $modSettings['showcollapsedicons'] )
            $caticon = "<img src=\"$imagesdir/collapsed_none.gif\" alt=\"$txt[334]\">&nbsp;";
         else
            $caticon = '';
         $newpost = false;
         $newicon = '';

Add before:

if(substr($row_board[catName], 0, 4) != 'HIDE') {

Search for:
      else
      {
         echo "<tr> <td colspan=\"3\" class=\"catbg\" height=\"18\">\n";
         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";
      }
And add After:

}



Have fun  8)
Logged

Webby @ RFI
Formerly known as PtPazuzu
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [code 1.5.0] Hide Category bar « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.058 seconds with 20 queries.