MyBB Community Forums

Full Version: Redirecting at the "List Users Awaiting Activation" page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This annoys the life out of me. I have been manually activating users via the "List Users Awaiting Activation" page. It annoys me that I have activated a user, I get redirected to the main user management page, rather than the "List Users Awaiting Activation" page.

Sad
Slythfox Wrote:This annoys the life out of me. I have been manually activating users via the "List Users Awaiting Activation" page. It annoys me that I have activated a user, I get redirected to the main user management page, rather than the "List Users Awaiting Activation" page.

Sad
That makes two of us!Big Grin
Open /admin/users.php

Find

	cpredirect("users.php?".SID, $lang->activated);

Replace by

	cpredirect("users.php?".SID."&action=find&search[usergroups][]=5&searchop[sortby]=regdate&searchop[order]=desc", $lang->activated);
LeX- Wrote:Open /admin/users.php
....
Thanks a lot LeX-. I changed the code as you recommended and it works the way Slythfox and I want it. What a relief!

Regards
Would this work on any search admins do for members in the ACP?
No =P Only when a users account gets activated.
Your request needs a different redirect change =P