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.

Re: Moderator - "User searches" results page

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.

Re: Moderator - "User searches" results page

Fixed

Re: Moderator - "User searches" results page

The Select column is not showing up.

Re: Moderator - "User searches" results page

Also, when no records are found, don't show the Ban button.

Re: Moderator - "User searches" results page

Fixed

Re: Moderator - "User searches" results page

Parse error: syntax error, unexpected T_ENDIF in C:\xampp\htdocs\punbb13\admin\users.php on line 847

when clicking the User search link.

Re: Moderator - "User searches" results page

Got it

Re: Moderator - "User searches" results page

Don't show the Select column when ban is disabled for moderators.

Thanks.

Re: Moderator - "User searches" results page

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).

Re: Moderator - "User searches" results page

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.

"Programming is like sex: one mistake and you have to support it for the rest of your life."