MyBB Community Forums

Full Version: API functions?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a function I can call with a parameter of a UID that will ban a person's account? I am trying to integrate banned accounts from my game into the MyBB forum so they are synchronous.
Not sure. Look at the banning page in the ACP. If it makes use of it, then it exists. Otherwise just do what the page does
It basically just does manual database entries which is quite deceiving when I worked it out. The "mybb_banned" table in the database is strictly for storing ban reasons and lift dates. The simplest and most efficient way to ban some is to just change their usergroup to the banned group in the "mybb_users" table which seems to be what the MyBB scripts check for before displaying a page.

Thanks for your help Pirata. Smile