OK, it took a little work, but I think I've figured this out.
For the purpose of illustration, I'll use these infraction point levels:
<3 being green
3 - 5 being yellow
6 - 9 being orange
10 - 12 being red
13+ would display your "banned" icon.
First, edit your postbit (or postbit_legacy) template to add the line in
red:
Code:
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$infraction"><img src=$infraction /></if>
<p>
<if condition="$show['reputation']"><div>
Save the template.
Now, move to Plugins and Products, and
Add New Plug-In:
You'll need to adjust the path to the images, and probably adjust which infraction levels trigger the relevant color-coded images. If you want the images to trigger on the user's
number of infractions instead, then use
$post[infractions] instead of $post[ipoints] in the if's above.
Save the plug-in.
Tested on 3.8.6 PL1. The above code works even if the "Display infractions" setting in post #2 is turned off. :up: