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 ?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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 ?
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 ?
if it will show in active, it won't be a private message...
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
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.
Ok I got the point
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
PunBB Forums → PunBB 1.2 troubleshooting → extern.php active topics doesn't show everything ?
Powered by PunBB, supported by Informer Technologies, Inc.