MyBB Community Forums

Full Version: mybb 1.8.x add-on to prevent the member from entering the subject
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Mybb 1.8.x version,;

I want to keep a member away from the topic he is discussing.

I want to prevent him from entering that topic
Only a specific member, or a specific usergroup?
Are these specific topics with a certain label, in a certain board, or just, in general, specific topics?

This would not be difficult at all to do, but the issue is that someone could very easily circumvent this simply by registering another account. That will be the difficult aspect of doing a "blacklist" way of going about it. It might be better to have a board that displays topics to everyone with at least X posts, but blocks them to specific usergroups.

What, very specifically, do you need this to do?
I just want to prevent certain members from entering and replying to that topic
If I have this right, you still need it to display in the thread list, but just to be blocked from entering and replying? Is this just one thread?
(2020-02-29, 10:11 PM)Darth Apple Wrote: [ -> ]If I have this right, you still need it to display in the thread list, but just to be blocked from entering and replying? Is this just one thread?


It will only be for the subject
Telling him not to won't work? Why not banning him entirely or from that specific forum?

Seems quite simple to me. Blocking the subject field would seem a waste of resources for something like this.
(2020-03-01, 12:51 AM)Omar G. Wrote: [ -> ]Telling him not to won't work? Why not banning him entirely or from that specific forum?

Seems quite simple to me. Blocking the subject field would seem a waste of resources for something like this.


My aim is to prevent people who are controversial about it from getting into that topic.
Could you elaborate? I'm unsure if you mean to stop the user from entering specific subjects within the subject field (see attached image) or to stop the user from entering one specific thread.

If the second is the case, I can think of three ways to achieve it.
  1. https://community.mybb.com/mods.php?action=view&pid=292
  2. https://community.mybb.com/mods.php?action=view&pid=353
  3. https://community.mybb.com/mods.php?action=view&pid=403
    1. Create one additional group and put the use into that additional group.
    2. Create one prefix to block that group from viewing.
    3. Put that prefix to the thread you want to block for that group.

      The downside in using my plugin is the enforcement of one specific thread prefix so your thread won't have another.

If you don't mind the user viewing the thread content and just want him not to reply, I'd suggest the 2nd option.
https://community.mybb.com/mods.php?action=view&pid=353

the second option looks good.
Some locations for version 1.8.22 do not work well.
No warning appears.

There is no warning like the picture below.

[Image: 943c8873a08.png]
You are confused about that warning. I have replied in the plugin release thread on benefit of future inquiries:
https://community.mybb.com/thread-165119...pid1344304