Page 1 of 2

Exclude forums from Recent Active

Posted: 20 Nov 2011, 20:29
by geeko80
just another question...(sorry to bother you)
In my forum i have i private area staff only.
Is there a way to exclude that area from the mod?

Exclude forums from Recent Active

Posted: 20 Nov 2011, 20:46
by Stoker
Open includes/functions_top_stats.php

Find: AND t.topic_approved
Inline, After add: AND t.forum_id <> 11
11 is the ID of the forum.

Exclude forums from Recent Active

Posted: 01 Dec 2011, 00:02
by Makis
And if I want to add more than one forum?
Can I use or or ,

Thanks

Exclude forums from Recent Active

Posted: 01 Dec 2011, 00:24
by Stoker
Could be: AND t.forum_id <> 11 AND t.forum_id <> 18

Exclude forums from Recent Active

Posted: 01 Dec 2011, 09:06
by doktornotor
Stoker wrote:Could be: AND t.forum_id <> 11 AND t.forum_id <> 18
Or maybe something like:

Code: Select all

$recent_forums_excluded = array(1,2,3,4,5);

...

AND !in_array($data['t.forum_id'], $recent_forums_excluded)

Exclude forums from Recent Active

Posted: 01 Dec 2011, 09:55
by Stoker
Sounds like a good idea doktornotor :thumb:

Exclude forums from Recent Active

Posted: 01 Dec 2011, 10:19
by Blackwolf
Any reason I cant find

Code: Select all

AND t.topic_approved
in my functions_top_stats.php :?:

Latest & greatest....1.0.6 :|

Just want to exclude one private forum....59

Exclude forums from Recent Active

Posted: 01 Dec 2011, 10:31
by doktornotor
You probably messed it up? :D

Exclude forums from Recent Active

Posted: 01 Dec 2011, 10:35
by Stoker
Its there in 1.0.6 but will be removed in 1.0.7

Exclude forums from Recent Active

Posted: 01 Dec 2011, 10:39
by Blackwolf
I just re downloaded the 1.0.6 version. It is NOT in the file functions_top_stats.php.

Code: Select all

AND t.topic_approved
Sorry to argue but please have a look in the file yourself.

There is only one line with the word approved in it...line 56 .....

Code: Select all

WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND topic_moved_id = 0 AND topic_approved