1

Topic: extern.php active topics doesn't show everything ?

I use extern.php on my site to display last active topics.

I'm log as Admin,
But it show only topics who are visible to guest, is it normal ?

Re: extern.php active topics doesn't show everything ?

Yes, it's quite normal.

3

Re: extern.php active topics doesn't show everything ?

Is there any possibilities to correct that ?

I mean someone who's posting in a private section, can never see his topic in active topics.

Strange no ?

Re: extern.php active topics doesn't show everything ?

if it will show in active, it won't be a private message...

5

Re: extern.php active topics doesn't show everything ?

Frank H wrote:

if it will show in active, it won't be a private message...

But someone who has acces to this forum can't see it in active topics box sad

6

Re: extern.php active topics doesn't show everything ?

No becuase the whole idea is that the active topics should be visible to everyone who visits a site and will usually appear on the front page of the site.

7

Re: extern.php active topics doesn't show everything ?

Ok I got the point smile

If I would like to show more than that based of forums perm ?

Alex king made it, but it show too many informations...


I have seen that on extern :

$result = $db->query('SELECT g_read_board FROM '.$db->prefix.'groups WHERE g_id=3') or error('Unable to fetch group info', __FILE__, __LINE__, $db->error());
if ($db->result($result) == '0')
    exit('No permission');

Alex king made :

$result = $db->query('
    SELECT t.* 
    FROM '.$db->prefix.'topics AS t 
    INNER JOIN '.$db->prefix.'forums AS f 
    ON f.id=t.forum_id 
    LEFT JOIN '.$db->prefix.'forum_perms AS fp 
    ON (
        fp.forum_id=f.id 
        AND fp.group_id='.$pun_user['g_id'].'
    ) 
    WHERE (
        fp.read_forum IS NULL 
        OR fp.read_forum=1
    ) 
    ORDER BY t.last_post DESC
    LIMIT '.$ak_limit

Is it an easy way to keep interresting param from extern (show last topics from x, y, z forums only) and consider forums perm to show more than "guest can view" ?

Sorry for my english sad