Exclude forums from Recent Active

Download and support for PhpBB3 Top Stats Mod
geeko80
BBCoder II
BBCoder II
Posts: 17
Joined: 18 Nov 2011, 21:57

Exclude forums from Recent Active

Post 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?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Exclude forums from Recent Active

Post 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.
Board rules! No PM support
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Exclude forums from Recent Active

Post by Makis »

And if I want to add more than one forum?
Can I use or or ,

Thanks
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Exclude forums from Recent Active

Post by Stoker »

Could be: AND t.forum_id <> 11 AND t.forum_id <> 18
Board rules! No PM support
User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 23:20
BBCodes: 30
Favourite MOD: Thanks for Posts
Contact:

Exclude forums from Recent Active

Post 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)
Support requests via PM go straight to /dev/null!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Exclude forums from Recent Active

Post by Stoker »

Sounds like a good idea doktornotor :thumb:
Board rules! No PM support
User avatar
Blackwolf
BBCoder IV
BBCoder IV
Posts: 272
Joined: 04 Dec 2010, 12:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia

Exclude forums from Recent Active

Post 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
Last edited by Blackwolf on 01 Dec 2011, 10:32, edited 1 time in total.
Ultimate Edition, Ultimate Edition Oz, Oz Unity

“We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.”
User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 23:20
BBCodes: 30
Favourite MOD: Thanks for Posts
Contact:

Exclude forums from Recent Active

Post by doktornotor »

You probably messed it up? :D
Support requests via PM go straight to /dev/null!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Exclude forums from Recent Active

Post by Stoker »

Its there in 1.0.6 but will be removed in 1.0.7
Board rules! No PM support
User avatar
Blackwolf
BBCoder IV
BBCoder IV
Posts: 272
Joined: 04 Dec 2010, 12:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia

Exclude forums from Recent Active

Post 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
Last edited by Blackwolf on 01 Dec 2011, 10:43, edited 2 times in total.
Ultimate Edition, Ultimate Edition Oz, Oz Unity

“We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.”
Locked