PDA

View Full Version : Quick query needed, apprecated


NarutoFTW
02-18-2013, 02:26 AM
Can anyone write a query that unbans every member that was banned by a particular moderator?

so like the moderator's user id and unban everyone banned by that person.

Thank you

--------------- Added 1361219532 at 1361219532 ---------------

bump? help please

NarutoFTW
02-20-2013, 03:37 AM
bump

Lynne
02-20-2013, 05:12 PM
You would need to provide more details like what usergroup have the users been banned to? What usergroup do you wish them to be put in when unbanned?

NarutoFTW
02-23-2013, 04:30 AM
Registered user. regular user

Lynne
02-23-2013, 04:48 AM
There is no "regular user" group. We need some usergroupids for this.

Amaury
02-23-2013, 05:28 AM
There is no "regular user" group. We need some usergroupids for this.

Registered Users would be two. :)

borbole
02-23-2013, 11:01 AM
Registered Users would be two. :)

What about if the user has changed it and uses a custom group for Registered Users?

kh99
02-24-2013, 06:12 PM
Try this:
UPDATE userban SET liftdate = 1 WHERE adminid = X


where X is the userid of the mod you mentioned (it's called adminid but it's also for mods). Then run the "Restore Temporarily Banned Users" schedule task (or wait for it to run).