Topic: Moderator - "User searches" results page
[Ban] [Delete] [Change group] buttons
With ban permission, display the Select column with the Ban button only.
Without ban permission, hide the buttons.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → Moderator - "User searches" results page
[Ban] [Delete] [Change group] buttons
With ban permission, display the Select column with the Ban button only.
Without ban permission, hide the buttons.
I have to relook at the permissions for those actions anyway: right now, they're limited to administrators although the buttons show up for mods and admins.
Fixed
The Select column is not showing up.
Also, when no records are found, don't show the Ban button.
Fixed
Parse error: syntax error, unexpected T_ENDIF in C:\xampp\htdocs\punbb13\admin\users.php on line 847
when clicking the User search link.
Got it
Don't show the Select column when ban is disabled for moderators.
Thanks.
That's somewhat more difficult to do, since the buttons are generated after the rest of the page and we have to let extension authors create buttons as well, which could have different permissions levels. I think I'll let Rickard decide if we can/should move the button generation to just after we require header.php (not the actual output, just the generation).
It's even more complex than that. Not showing the select column means not having a <form> at all and that affects the markup of the whole page.
PunBB Forums → PunBB 1.3 troubleshooting → Moderator - "User searches" results page
Powered by PunBB, supported by Informer Technologies, Inc.