Found the cause of completely blank page forum indexes and thread contents.
In /archive/index.php
Code:
$forumperms = $bbuserinfo['forumpermissions'][$foruminfo['forumid']];
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
//if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'])
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR !($forumperms & GTPCANREADCONTENT) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'])
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
{
exit;
}
and
Code:
$forumperms = $bbuserinfo['forumpermissions'][$f];
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
//if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS))
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR !($forumperms & GTPCANREADCONTENT))
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
{
exit;
}
makes the script exit and hence the blank pages.
I removed these 2 and I can see the archive forum index, and the thread titles are not hot-linked anymore. So the forum view is fixed.
However, if I cheat and construct the archive thread url, I can still see the thread contents. To stop that, find:
Code:
if ($do == 'thread')
{
echo print_archive_navigation($foruminfo, $threadinfo);
and add below it:
Code:
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
$noaccess = iif(!($forumperms & GTPCANREADCONTENT), ' <em>('.$vbphrase['private'].')</em>');
if ($noaccess)
{
echo "<div class=\"info\">".$vbphrase['gtp_archive_private']."</div>";
exit;
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
This fixes the archive thread view for me... hope it didn't break anything.