New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#168: Batch actions in admin users page #15
Conversation
…to the admin users page.
Good job! Here are some changes: Missing language string for 'No ban admins message'. It is currently possible for moderators to ban moderators when mass banning. Ban/Delete buttons should only be displayed if there are records found. change to: To keep code consistent with other files: find: |
Thanks for the review. Gosh, how do you do this all the time? ;) Darn - so I did, in the end, forget to add the moderator check to this code. I will fix the bugs tomorrow. But I would actually vote against consistency this one time, as the COUNT way is (in theory) the faster way. Let the database do what it's an expert for... |
It looks like it did not merge all of my code correctly. I am having some branch problems, it seems. Looking into them right now. |
…ly related to moving users to different groups.
Much better now. This means I had actually solved any problems you mentioned except for the empty list issue. I will do that later on. Anything else (now that we can move users to different groups)? |
File: C:\xampp\htdocs\fluxbb145master\admin_users.php FluxBB reported: Unable to fetch moderator group info Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM users AS u INNER JOIN groups AS g ON u.group_id = g.' at line 1 (Errno: 1064) Failed query: SELECT COUNT(u.*) FROM users AS u INNER JOIN groups AS g ON u.group_id = g.g_id WHERE g.moderator=1 AND u.id IN (9) line 535: Remove the space before and after = in: Since buttons are hidden if not applicable, this can be removed: |
Thanks. Every known bug should now be fixed. |
File: C:\xampp\htdocs\fluxbb145master\admin_users.php FluxBB reported: Unable to fetch moderator group info Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM users AS u INNER JOIN groups AS g ON u.group_id=g.g_' at line 1 (Errno: 1064) Failed query: SELECT COUNT(u.*) FROM users AS u INNER JOIN groups AS g ON u.group_id=g.g_id WHERE g.g_moderator=1 AND u.id IN (2211) Is not liking this COUNT(u.*) ? Also when no users selected: |
The query should now definitely be fixed. Sorry for not testing it properly (both times). I really hope that's enough of me messing up. Thanks for your thorough testing. |
This is still happening when no users selected: You're welcome. |
Gosh, I suck at debugging (today). I think the same thing will happen in many other places in the core (e.g. moderate.php), but that's another issue (and we already have a ticket: http://fluxbb.org/development/core/tickets/14/). Thanks again. Do you think the JavaScript is good? As in, the behaviour is ok? |
Perfect. The behaviour of the JavaScript is fine. |
Cool. Do you think this is ready to be merged into core? |
I think so. |
Squash-merged in 6bfcd8d |
Ticket: http://fluxbb.org/development/core/tickets/168/
Things that need review:
I think I have tested everything, but there are always situations...