So, basically, all this does is make a second "custom title" field so it still displays their position (member/moderator/administrator)?
Not bad, but it could be done a lot easier, without having to bother making new profile fields and such.
I'm thinking you could improve it by doing the following;
Open postbit/postbit_legacy and find:
Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
Copy this somewhere, then replace it with the following:
Code:
<font size=1 color=#XXXXXX><b>
<if condition="$post[usergroupid] == X">Administrator</if>
<if condition="$post[usergroupid] == X">Super Moderator</if>
<if condition="$post[usergroupid] == X">Moderator</if>
<if condition="$post[usergroupid] == X">Registered User</if>
</b></font>
Replace the X's with the relevant color/usergroup information.
Find the following:
Code:
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
Paste the following code, which you copied earlier, after it:
Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
Of course, if your goal is to let the user have multiple custom-titles, then ignore what I just said.