 |
 |
 |
 |
#203420 - 07/10/05 07:18 PM
[6.7] [beta] Hide Private Forums
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
Modification Name: Hide Private Forums Author(s): LK Description: Hides the private forums (from forum summary), only if you have access to those forums you can see them. All-new code (nothing in common with the previous 6.5 version, besides the concept), now supports ultimatebb.php. Almost untested though. Demo: none Requirements: UBB 6.7, may work with others with little changes. Download Link: http://www.ubbdev.com/ubb/upload/00004463/hide67.txt Credits: Originally by wwb95 Note: it doesn't support password-enabled forums.
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#203430 - 07/23/05 06:09 AM
Re: [6.7] [beta] Hide Private Forums
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
Untested: Open public_forum_summary.pl. Find in sub CategoryStrip: Replace with: Find: Add ABOVE: if ($catarray->[2] eq "NUMBER") {
return '<?php echo Privates(NUMBER2,"'.UBBCGI::escape($abcdefg) . '"); ?>';
} else {
return $abcdefg;
}Now replace NUMBER with your private category number (click on the category, the number after "category=" is the category number), and replace NUMBER2 with a number of one of your hidden forums.
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#203441 - 05/24/06 05:57 PM
Re: [6.7] [beta] Hide Private Forums
|
Member
Registered: 03/31/04
Posts: 58
Loc: Israel
|
Originally posted by LK: Try the following: in public_common.pl, find: ( TWICE) next FORUM if $vars_forums{$f}->[3] ne "On";Add below: next FORUM if $f == NUMBER; Replace NUMBER with the number of the forum you'd like to hide, for example if you'd like to hide forum 3 add: One small problem is that it hides the forum from admins too
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|