Firstly wonderfully useful plugin! Thank you.
Just thought I'd note here (and since it may solve Saphira's issue to an extent) that one tiny modification we have made is to add the "User State" to the "Recently registered users" (/moderatorpanel/recent-registered/) table in the Moderator Panel. We've found this useful so at a glance we can see which users were just rejected outright (typically by StopForumSpam) since they have not been banned it's not quite clear on the list who are accepted (ie Valid) new users. To this end we've butchered the last column in the table which currently holds the Banned state for the user (ie Yes/No). We've found having this addition saves hopping between the Rejected User Log table and the Recent one.
The tweaks:
In the
andrew_moderatorpanel_macros
template we've modified the last table cell (~line 450) from:
PHP:
<td class="dataList-cell">
<xf:if is="$user.is_banned == 1">
{{ phrase('yes') }}
<xf:else/>
{{ phrase('no') }}
</xf:if>
</td>
to
PHP:
<td class="dataList-cell" style="text-transform: capitalize;">
<xf:if is="$user.is_banned == 1">
{{ phrase('banned') }}
<xf:else/>
{{ phrase_dynamic($user.user_state) }}
</xf:if>
</td>
It's worth pointing out that the phrases for the states don't seem to correspond 1:1 to the enum values, so
email_confirm
would seem to correspond with the phrase
awaiting_email_confirmation
, so the
phrase_dynamic()
doesn't actually pull in an existing phrase and just defaults back to the actual enum value. I guess there will probably be a function to convert the enum into its associated phrase, but I don't know if it's easily available in a template so for now and our purposes the above is
good enough. We added the CSS transformation just to neaten these
raw values up a little. You could of course add your own phrases I should point out!
The underlying values for
user_state
are
enum('valid','email_confirm','email_confirm_edit','moderated','email_bounce','rejected','disabled')
.
In the
andrew_moderatorpanel_recentregistered_view
template we modified the last table header from:
PHP:
<th class="dataList-cell">{{ phrase('banned') }}</th>
to
PHP:
<th class="dataList-cell">{{ phrase('user_state') }}</th>
Hope someone might find it useful, or maybe a more polished version would be worth adding to the plugin?