News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Hiding a child board from whos online

Started by badman2nd, June 26, 2008, 08:21:24 AM

Previous topic - Next topic

badman2nd

I have a board that is semi private, all members have access but it is tucked away in a child board of another board. This child board is not listed on the main section (hidden by a mod) but if you check who's online it will show what members are in there. Is it possible to exclude this child board from the who's online or even change the text to the standard one when the members don't have access which I believe is "nothing or nothing you can see"?

Thanks.

[SiNaN]

../Sources/Who.php

Find:

$data[$k] = sprintf($session_text, $row['ID_BOARD'], $row['name']);

Replace:

if($row['ID_BOARD'] != 1453)
$data[$k] = sprintf($session_text, $row['ID_BOARD'], $row['name']);


Change 1453 as the child board ID.
Former SMF Core Developer | My Mods | SimplePortal

badman2nd

SiNaN, once again you are fantastic!, can this be done for a particular topic?

Pat

[SiNaN]

In the same file;

Find:

$data[$k] = sprintf($session_text, $row['ID_TOPIC'], censorText($row['subject']));

Replace:

if($row['ID_TOPIC'] != 1453)
$data[$k] = sprintf($session_text, $row['ID_TOPIC'], censorText($row['subject']));


Change 1453 as the topic ID.
Former SMF Core Developer | My Mods | SimplePortal

[SAP]Francis

Quote from: badman2nd on June 26, 2008, 03:15:54 PM
SiNaN, once again you are fantastic!, can this be done for a particular topic?

Pat
This could...

Vehicles Forum

Founded By Francis Morissette

[SiNaN]

Quote from: [SAP]Francis on June 26, 2008, 03:18:17 PM
This could...

Couldn't get what you mean?

By the way, you can use this code instead if you want many topics:

if(!in_array($row['ID_TOPIC'], array(1,2,3,4,5)))
$data[$k] = sprintf($session_text, $row['ID_TOPIC'], censorText($row['subject']));


1,2,3,4,5 are the topic IDs seperated with comma.
Former SMF Core Developer | My Mods | SimplePortal

badman2nd


Advertisement: