And a suggestion for v2.0 of this great hack.
It forces sending a PM, very good thinking here. But it's possible that the user disabled (accidentely or not) the message system. It's luck if he sees the message then. It would be nice if it did also forcefully sent an e-mail.
sv1cec's code -^ will allow staff and warned members to check their status which also includes the PM. I added a flag in the forumview that will notify staff and warned members instantly:
In Postbit (or legacy) find:
HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
Above that add
HTML Code:
<if condition="$post[warning_level]>=3 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR ($post[userid]==$bbuserinfo[userid] AND $post[warning_level]>0)"><BR>Warn Level: $post[warning_level]</if>
or to make it flag for staff too (faster spotting):
HTML Code:
<if condition="$post[warning_level]>=3 OR (($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $post[userid]==$bbuserinfo[userid]) AND $post[warning_level]>0)"><BR>Warn Level: $post[warning_level]</if>
$post[warning_level]>=3 makes the warning level visible to everyone once level 3 is reached. Our staff feels that the first warnings should be a private afair between mods and user, level 3 and beyond should get some public pressure.
I also updated the moderator comments in Warn_AddWarn template to get a larger box for composing the PM:
HTML Code:
Moderator Comments:</td>
<td class="alt2"><textarea name="comment" rows=10 cols=50 class="bginput"> </textarea>
</td>
</tr>
It works, but I'm not entirely sure whether it's proper code