Top Stats

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Exclude forums from Recent Active

Post by Makis »

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

Thanks

Exclude forums from Recent Active

Post by Stoker »

Could be: AND t.forum_id <> 11 AND t.forum_id <> 18

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)

Exclude forums from Recent Active

Post by Stoker »

Sounds like a good idea doktornotor :thumb:

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, 08:32, edited 1 time in total.

Exclude forums from Recent Active

Post by doktornotor »

You probably messed it up? :D

Exclude forums from Recent Active

Post by Stoker »

Its there in 1.0.6 but will be removed in 1.0.7

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, 08:43, edited 2 times in total.

Exclude forums from Recent Active

Post by Stoker »

AND topic_approved 8-)

Exclude forums from Recent Active

Post by Blackwolf »

:thumb: Thankyou

So instead of

Code: Select all

AND t.forum_id <> 59
what do I input please....otherwise I get a general error.