Ah...HA! Finally proper support for multiple badges...
The admin can also determine whether the Moderator badge will show. Selecting to have it "never show", or "show only if there are no other badges" or "show only if it's a primary group" (which never is the case here) will hide it.
Well, the UI has yet to be written... But it's in progress locally.
Also, I'm not 100% sure I'm doing it right -- I'm actually adding id_group #3 to the list of additional_groups in the $user_profile variable at this point. I don't think that SMF did that at all. It makes sense to me that at least one area has a record of it for the duration of the page...
I'd consider showing just the very first group's name, no point showing all the group names, but only the primary group's name - or post count group name if there isn't a primary group name, and nothing more than that.
I elected to keep both of the systems I wrote.
- Badge system: set it up per-badge (per-group), on individual group pages.
- Group titles: Wedge will only show the primary group's name (if it exists), and/or the post-based group's name (if it exists), and then will determine which to show according to a setting in the Manage Membergroups > Settings page.
My only concern is that it ends up being too complicated for some admins... But OTOH, once they have it set up, they don't have to touch it again. And the default setup should be good enough. (Group title's default is the same as in SMF.)
Got something I can see of the code?
Soon, soon :P
Certain things aren't about speed, especially as you still have to do the extra query to get board moderators to be able to add the board moderator badge into the mix yet.
Well, it's cached most of the time. Uh, let me look... The TTL is 480 seconds. That's not much... Maybe we should increase that. And ensure the cache is emptied for that item when moderators are set up. I don't know... I can see a huge TTL for that kind of thing, personally.
My problem is, I just see so much stuff there is to do and I have no idea where to pitch in to do any of it :(
Personally, I've decided to focus, as soon as I'm finished with my current crap, on three items: custom groups, floating boards (which include adding support for board icons), and topic privacy. Gonna have fun though... It's a lot to swallow. -_-