Code: Select all
SELECT ag.*, ao.* FROM phpbb_acl_groups ag, phpbb_acl_options ao
WHERE ag.forum_id = 0
AND ag.auth_option_id = ao.auth_option_id
AND ao.auth_option_id LIKE 'f_%'
Can you give me some idea why you think this particular mod is causing the problem? I've raised it with the mod's developers and they can't see why it should.A_Jelly_Doughnut wrote:I have a feeling it is a bug in the Zero Dupe MOD. The MOD seems to be directing users to the moderator-only forum to view this particular announcement, so they are denied access.
OK, but why does it always get diverted to forum 10? I have opted to keep forum names out of the rewritten URLs as it makes them too long and also because topics quite often get moved to different forums so I prefer URLs to simply refer to the topic.A_Jelly_Doughnut wrote:Ok, that is the problem right there. Global announcements require a forum ID to be in the URL to be displayed reliably.
Code: Select all
SELECT username_clean FROM phpbb_users LIMIT 1
Code: Select all
$sql_array['WHERE'] .= ' OR (t.topic_type = ' . POST_GLOBAL . '
AND f.forum_type = ' . FORUM_POST . ')';
Code: Select all
$sql_array['WHERE'] .= ' OR (t.topic_type = ' . POST_GLOBAL . '
AND f.forum_type = ' . FORUM_POST . ' AND f.forum_id <> 10)';
Yes, that is why viewforum.php now takes f as a parameter in the URLDBM wrote:Were forum numbers introduced to phpbb3 URLs to enable global announcements then?