MyBB Community Forums

Full Version: Modifications to Ban Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I have two banned usergroups on my forum. However, I want one of them to display the normal banned message, but the other one displays a different banned message, similar to the normal one.

How'd I accomplish this??
This might need a plugin. You can use the simple technique to show different messages for different groups. Some thing like this;

if ($mybb->user['usergroup'] == "7") // which actually a normal banned group
{
   $message1 = "You are banned, bla bla bla";
}
else if ($mybb->user['usergroup'] == "10") // which is your custom banned group
{
   $message = "You are banned, bla bla bla";
}

But again, its a dirty method to do like this. For more efficient way, you have to request for a hack.
Probably going to need a plugin. I'll get my Lead Dev to work on one when my software goes to Alpha 2.

Thanks! Smile