PDA

View Full Version : Set ban reason (for usergroup move) through plugins?


Skyrider
01-27-2015, 10:16 AM
I have a plugin that automatic moves people to a specific ban usergroup, which works great. However, all the ban reasons are "N/A / Reason not given", Does a PHP/plugin code happen to exist that can set a specific ban reason? I'm asking in general discussions as I was hoping for a existing/valid vBulletin code that can do this without any other custom plugin.

Dave
01-27-2015, 10:21 AM
I'm kind of confused what you want.
The "Ban User" function in the admincp makes it possible for you to provide a ban reason.

I guess you should modify your existing plugin and make it give a ban reason along with the ban.

Skyrider
01-27-2015, 10:56 AM
I'm kind of confused what you want.
The "Ban User" function in the admincp makes it possible for you to provide a ban reason.

I guess you should modify your existing plugin and make it give a ban reason along with the ban.
The ban reason can be specified when you normally ban a user, yes. But if you move users to a banned usergroup, no reason is specified. Hence I'd like to know if there's any code that adds a ban reason.

ozzy47
01-27-2015, 11:02 AM
You would need to update the userban table as well, when your script runs.

Skyrider
01-27-2015, 11:12 AM
Ah, so no official code for it then ey? like "banreason = yada". But then in code form :p. So, shame. Would you mind if I PM you the existing/current plugin we use? Would appreciate it.

ozzy47
01-27-2015, 11:21 AM
Sure, you can PM it to me and I can take a look later today and see if there is anything I can do.

Skyrider
01-27-2015, 11:30 AM
Appreciate your help, submitted the info through PM.

ozzy47
01-27-2015, 11:49 AM
It will be later today before I can even look into it, as I am at work for the next 10 hrs.

Skyrider
01-27-2015, 11:57 AM
10 hours work is over-kill if you ask me :p. But no worries, I appreciate the fact you are willing to take a look at it :).

ozzy47
01-28-2015, 08:59 PM
Sorted via PM. :)