php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#203440 - 04/04/06 12:04 AM Re: [6.7] [beta] Hide Private Forums
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
Works great! Thanks again!

Top
#203441 - 05/24/06 05:57 PM Re: [6.7] [beta] Hide Private Forums
Tiger66 Offline
Member

Registered: 03/31/04
Posts: 58
Loc: Israel
Quote:
Originally posted by LK:

Try the following:
in public_common.pl, find: (TWICE)
Code:
			next FORUM if $vars_forums{$f}->[3] ne "On";
Add below:
Code:
			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:
Code:
			next FORUM if $f == 3;


One small problem is that it hides the forum from admins too

Top
#203442 - 05/31/06 07:01 AM Re: [6.7] [beta] Hide Private Forums
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
There's nothing (simple) to do against it, since it is cached, so whatever the average user sees, so does the administrator.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 2 of 2 < 1 2


Moderator:  Charles, Gizmo 
Top Posters Last 30 Days
AllenAyres 83
Gizmo 29
sirdude 24
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (blaaskaak, sirdude), 39 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
07/05/08 04:29 PM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks