• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Reject All - Users awaiting approval

ShadyX

Well-known member
#1
I have a problem, TONS of spam users are registering on my forum and are being placed in the approval thing. I upgraded my forum to 1.2 a couple of days ago and already 274 users have been put on this list, A way to reject and delete all would be useful.

 

Deriel

Well-known member
#8
Please - I second this suggestion

Sometimes spammers get in, and we need the tools to deal with it. My forum, soon to be migrated from vB to XF, has some 7k moderated spammers to deal with.
 
#9
If you want to mass reject them all you can go to the Users Awaiting Approval page, open your browser console (F12 in Windows) and then paste this:

Code:
$("input[value=reject]").click();
$(":checkbox").prop("checked", false);
$("form[action='admin.php?users/moderated/update']").submit();
Then hit the Enter key. Once you do that the form will be populated to reject all the users in the form and the form will be submitted. When the page reload simply re-open your console and press the arrow key up in yor keyboard and hit the Enter key again.

Hope it helps.

P.S. Bath Update Users "works" but I still see those 4500 users awaiting approval in the header and in the Users Awaiting Approval page. Idk if is a bug or the system works like that.
 
#11
If you want to mass reject them all you can go to the Users Awaiting Approval page, open your browser console (F12 in Windows) and then paste this:

Code:
$("input[value=reject]").click();
$(":checkbox").prop("checked", false);
$("form[action='admin.php?users/moderated/update']").submit();
Then hit the Enter key. Once you do that the form will be populated to reject all the users in the form and the form will be submitted. When the page reload simply re-open your console and press the arrow key up in yor keyboard and hit the Enter key again.

Hope it helps.

P.S. Bath Update Users "works" but I still see those 4500 users awaiting approval in the header and in the Users Awaiting Approval page. Idk if is a bug or the system works like that.
goood for me , thank
 
#14
Thanks for this.
If you want to mass reject them all you can go to the Users Awaiting Approval page, open your browser console (F12 in Windows) and then paste this:

Code:
$("input[value=reject]").click();
$(":checkbox").prop("checked", false);
$("form[action='admin.php?users/moderated/update']").submit();
Then hit the Enter key. Once you do that the form will be populated to reject all the users in the form and the form will be submitted. When the page reload simply re-open your console and press the arrow key up in yor keyboard and hit the Enter key again.

Hope it helps.

P.S. Bath Update Users "works" but I still see those 4500 users awaiting approval in the header and in the Users Awaiting Approval page. Idk if is a bug or the system works like that.
 
#15
Its been 3 years and xenforo still has no bulk action for this??
Seriously, it's no fun to do this for 400+ Users every week.

Thanks to Rodolfo anyway. Not user-friendly, but really safes a lot of time :)
 
#16
You can add that javascript code as a bookmarklet, simply create a new bookmark entry with this as the target URL.

Code:
javascript:<code goes here>
So to reject all:

Code:
javascript:$("input[value=reject]").click();$(":checkbox").prop("checked", false);$("form[action='admin.php?users/moderated/update']").submit();
At least it will be like a button in your bookmarks bar.
 
Last edited:
#17
If you want to mass reject them all you can go to the Users Awaiting Approval page, open your browser console (F12 in Windows) and then paste this:

Code:
$("input[value=reject]").click();
$(":checkbox").prop("checked", false);
$("form[action='admin.php?users/moderated/update']").submit();
Then hit the Enter key. Once you do that the form will be populated to reject all the users in the form and the form will be submitted. When the page reload simply re-open your console and press the arrow key up in yor keyboard and hit the Enter key again.

Hope it helps.

P.S. Bath Update Users "works" but I still see those 4500 users awaiting approval in the header and in the Users Awaiting Approval page. Idk if is a bug or the system works like that.
This helped a lot. thanks