Page 1 of 2

Problem about permissions

Posted: 21 Feb 2012, 20:44
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 ?

Problem about permissions

Posted: 22 Feb 2012, 05:59
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)

Problem about permissions

Posted: 22 Feb 2012, 08:44
by Nully
Yes, viewable as guest. This is the problem !
I have the last version 1.0.8.

Problem about permissions

Posted: 23 Feb 2012, 17:30
by Nully
Help please. I just deleted 3 posts about different generics for all illnesses :x

Problem about permissions

Posted: 23 Feb 2012, 18:44
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.

Problem about permissions

Posted: 23 Feb 2012, 23:17
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 $

Problem about permissions

Posted: 23 Feb 2012, 23:18
by Stoker
No, I mean includes/functions_top_stats.php

Problem about permissions

Posted: 23 Feb 2012, 23:22
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:

Problem about permissions

Posted: 23 Feb 2012, 23:38
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

Problem about permissions

Posted: 24 Feb 2012, 11:35
by Nully
Thanks a lot.
It works, I made a test :thumb: