Problem about permissions

Download and support for PhpBB3 Top Stats Mod
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

Hello,
I have a forum where everybody can post, but the messages need to be approved before being displayed.

After the installation of Top Stats, messages not approved are displayed.

How can I fix this ?
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

Problem about permissions

Post by Blackwolf »

Nully wrote:Hello,
I have a forum where everybody can post, but the messages need to be approved before being displayed.

After the installation of Top Stats, messages not approved are displayed.

How can I fix this ?
Is this when your logged in? Are they viewable as a guest?

This was fixed in version 1.0.8

1.0.8 (Post by Blackwolf #10588)
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
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

Yes, viewable as guest. This is the problem !
I have the last version 1.0.8.
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

Help please. I just deleted 3 posts about different generics for all illnesses :x
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Problem about permissions

Post by Stoker »

Im not at my pc at the moment so i have no ftp or file access.

But check the version number of the topstats.php file you are using. You might have forgotten to update it.
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

I downloaded and installed version 1.0.8 from your forum on sunday february 19th, 2012.
I can see

Code: Select all

@version $Id: install_top_stats.php, v1.0.8 20011/06/12 Stoker $
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Problem about permissions

Post by Stoker »

No, I mean includes/functions_top_stats.php
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

Includes/functions_top_stats.php :
@version $Id: functions_top_stats.php v1.0.8 20011/06/12 Stoker $
May be you mean I should have to install version 1.0.3 and then update ? :idea:
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Problem about permissions

Post by Stoker »

Now I get it.
Open functions_top_stats.php and 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 ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0 AND t.topic_approved = 1
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Problem about permissions

Post by Nully »

Thanks a lot.
It works, I made a test :thumb:
Locked