MyBB Community Forums

Full Version: Overview modification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Isn't the line wrong?

I want to completely hide the forum category, both the posts and the topics. With this code, only the fid are specifically hidden, right?
(2020-03-13, 01:11 PM).m. Wrote: [ -> ]^ are you sure that forum id is 9999999 ?

code around line 612 in the plugin file :
$overview_unviewwhere = "AND fid NOT IN ({$overview_unviewable})";

you can change it like this (x is forum id -- number) :
$overview_unviewwhere = "AND fid NOT IN ({$overview_unviewable},x)";

This will only work if the current user has unviewable forums, which might not be the case for administrators, for example.

A better approach would be to add:
$overview_unviewwhere .= " AND fid NOT IN (x,x,x)";

After the following line:
https://github.com/frostschutz/MyBB-Over...w.php#L613
(2020-03-13, 03:38 PM)DrPinkelstein Wrote: [ -> ]Isn't the line wrong?

I want to completely hide the forum category, both the posts and the topics. With this code, only the fid are specifically hidden, right?

Simply add each subforum to the hidden list. For the code to fetch sub forums automatically is asking too much.
Unfortunately without success, the forums are still displayed in the overview
Maybe because the plugin only seems to check the user primary group? I won't be sure. I suggest you to try and share more information (settings values, code snips of what you edit, screenshots, etc.) in order for people to be able to assist you. Otherwise, we can only guess or make assumptions.
Pages: 1 2