MyBB Community Forums

Full Version: "Can only view own threads?" not working for sidebox...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I configured a sub-forum with the "Can only view own threads?", to be used as a "talk to moderation" forum. I set as follows:

[X] Can view forum?
[X] Can view threads within forum?
[X] Can only view own threads?
[ ] Can download attachments?

But the threads are popping up to other users on the sidebox.

Would anyone know how to fix this?
The code in that plugin is taken mostly from portal.php (from MyBB 1.6 beta) for it to work the way you want it to (the way it should) it needs an update but that author doesn't support that plugin as far as I know.

If you wanted to fix it yourself you could open portal.php and compare the parts taken for the latest threads sidebox and make adjustments.
Thanks Wildcard, it worked, I just added:

Quote:$forumpermissions[$thread['fid']] = forum_permissions($thread['fid']);
// Make sure we can view this thread
if($forumpermissions[$thread['fid']]['canview'] == 0 || $forumpermissions[$thread['fid']]['canviewthreads'] == 0 || $forumpermissions[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
continue;
}

after these lines:

[/u]
Cool. That is how it starts man. First you are editing a plugin file and the next thing you know you are neck-deep in MyBB :p

Good luck.