In threaded forum l...
 
Notifications
Clear all

wpForo 1.x.x [Solved] In threaded forum list, forums are still listed for usergroups with "no access" to the forum

4 Posts
2 Users
0 Likes
1,290 Views
Posts: 42
Topic starter
(@needurhelp)
Trusted Member
Joined: 5 years ago

I have a trash bin forum that can only be viewed by admins as I have set "no access" to the other usergroups. However, it's still listed on the forums list of threaded mode for users with no access. Is there a way to hide the forum completely?

3 Replies
Sofy
Posts: 4237
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi needurhelp,

Thank you for letting us know. 

We're going to check the issue. I'll update the topic asap. 

Sofy
Posts: 4237
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

@needurhelp,

The issue will be fixed in the next version release.

If you need to resolve it asap please follow the steps below. 

1. Open the wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/forum.php file

2. Find this line (line 49):  

<?php if($child_forumid == $cat['forumid']) continue; $forum = wpforo_forum( $child_forumid ); ?>

3. Replace with the following one:

<?php if( $child_forumid == $cat['forumid'] || !WPF()->perm->forum_can('vf', $child_forumid) ) continue; $forum = wpforo_forum( $child_forumid ); ?>

4. Then open  wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/forum-sub.php file

5.  Find this line (line 34):

<?php if($child_forumid == $cat['forumid']) continue; $forum = wpforo_forum( $child_forumid ); ?>

6. Replace with the following one:

<?php if($child_forumid == $cat['forumid'] || !WPF()->perm->forum_can('vf', $child_forumid) ) continue; $forum = wpforo_forum( $child_forumid ); ?>

7. Then delete all caches and check again.

The solution works if you use the latest wpForo version ( v. 1.6.4 ).

1 Reply
(@needurhelp)
Joined: 5 years ago

Trusted Member
Posts: 42

@sofy

Thanks, I'll give this a try.