2009-01-08, 03:14 AM
If you have a forum set for "Can view forum?" to YES but "Can view threads within forum?" to NO you can still see the last post and thread title in the forum list. Below is the method to correct this. I would do it with a plugin but it's impossible and realistically I call this a bug. Of course double check my code but I believe it's just a simple check for the canviewthreads permission.
Inside inc/function_forumlist.php
Find this:
Thank you.
Inside inc/function_forumlist.php
Find this:
// This forum has a password, and the user isn't authenticated with it - hide post information
$hideinfo = false;
if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']))
{
$hideinfo = true;
}
Change to this: // This forum has a password, and the user isn't authenticated with it - hide post information
$hideinfo = false;
if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']) || $permissions['canviewthreads'] !=1)
{
$hideinfo = true;
}
Thank you.