Anyway I can do this? I got custom usertitles for all users but I wanna have mod's stand out, usually have to enter in the bold code manually but how can I have it be bold automatically? if its possible. thanks
Announcement
Collapse
No announcement yet.
Automatic bold usertitles for mods?
Collapse
X
-
Put this in your postbit and postbit_legacy templates, replacing $post[usertitle]:
<if condition="$post[usergroupid]==5"><b>$post[usertitle]</b><else />$post[usertitle]</if>
You might need to clean that up a bit as I do not know the usergroup ID of the moderator group, nor am I certain if that's the right $post variable for the user title, but it should do what you want it to.To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson
Comment
-
- Open the template: postbit
- Find this code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
- Replace it with this code:
<if condition="$post['usertitle']">
<if condition="$post['usergroupid'] == 7">
<div class="smallfont"><strong>$post[usertitle]</strong></div>
<else />
<div class="smallfont">$post[usertitle]</div>
</if>
</if> - Save the template and check your forum!
Last edited by Floris; Sun 14 Mar '04, 2:30am.
Comment
-
I still thing the best method would be to change the usertitle markup
But, to bold moderators usertitles so they can have any usertitle, and still be moderators (or if you dont have a moderator usergroup)
THIS METHOD DOES NOT CHECK USERGROUPS!
Use the following code:
Replace
Code:<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
Code:<if condition="$post['usertitle']"><if condition="can_moderate(0, '', $post['userid'])"><div class="smallfont"><strong>$post[usertitle]</strong></div><else /><div class="smallfont">$post[usertitle]</div></if></if>
ps- if you are going to check for a usergroup membership - you should use is_member_of($post, 7) because not everyone will use primary usergroups for a moderator (or any other usergroup for that matter)Last edited by merk; Sun 14 Mar '04, 4:08am.
Comment
-
My method?
OH CRAPIT! Silly typo, i didnt remove <strong> from the else
Code:<if condition="$post['usertitle']"><if condition="can_moderate(0, '', $post['userid'])"><div class="smallfont"><strong>$post[usertitle]</strong></div><else /><div class="smallfont">$post[usertitle]</div></if></if>
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment