Masked subjects [resolved]

Download and support for PhpBB3 Top Stats Mod
Locked
User avatar
vin91
BBCoder II
BBCoder II
Posts: 5
Joined: 02 May 2012, 19:35
BBCodes: 5

Masked subjects [resolved]

Post by vin91 »

Hello,

sorry for my English, I use google translation.

I would like some hidden forums topics in "recent active topics"
I find a topic on your forum that talks about it, but unfortunately it concerns an old version of your mod.
How please?

Thank you in advance;)
Last edited by vin91 on 04 May 2012, 18:30, edited 1 time in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Masked subjects

Post by Stoker »

I think the edits are the same. Have you tried them?
Board rules! No PM support
User avatar
vin91
BBCoder II
BBCoder II
Posts: 5
Joined: 02 May 2012, 19:35
BBCodes: 5

Masked subjects

Post by vin91 »

Yes I try
The topic in question is: topic ID 1542
Stoker wrote: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.
in:
includes / functions_top_stats.php
this line does not appear AND t.topic_approved or even a line that looks like.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Masked subjects

Post by Stoker »

Open includes/functions_top_stats.php
Find:

Code: Select all

if (!empty($config['tsrat_enable']) && sizeof($flist))
Replace with:

Code: Select all

if (!empty($config['tsrat_enable']))
Find:

Code: Select all

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

Code: Select all

WHERE  t.topic_moved_id = 0 AND t.topic_approved = 1
Board rules! No PM support
User avatar
vin91
BBCoder II
BBCoder II
Posts: 5
Joined: 02 May 2012, 19:35
BBCodes: 5

Masked subjects

Post by vin91 »

Hello,
Thank you very much it works :)
for : phpBB 3.0.10
I just add on the same line t.forum_id AND <> 59 after WHERE t.topic_moved_id = 0 AND 1 = t.topic_approved

which gives:
WHERE t.topic_moved_id t.topic_approved t.forum_id = 1 AND <> 14

And here's how to exclude several forums:

WHERE t.topic_moved_id t.topic_approved t.forum_id = 1 AND <> 14 AND t.forum_id <> 23 AND t.forum_id <> 28 ...


Still grieve for my english ^ ^
Thank you again;)
Locked