You can just search for
Code:
<!-- end logged-in users -->
and put the code above it
Also I noticed some issues in the code like the font changing I would review the code before putting it on your site. And you will have to change the colors as well. Here is mine for the test forum.
Code:
<div><hr />
<font size="1">Legend: |
<b><font color="#FF6600">Administrator</font></b> |
<b><font color="#FF9933">Moderator</font></b> |
<b><font color="#00FF00">Beta Tester</font></b> |
<b><font color="#66FFFF">Premium User</font></b> |
<b>Registered User</b> |
<b><font color="#AAAAAA">Limited Access</font></b> |</font>
</div>