View Full Version : Show user ranks in memberlist?
Caiman
05-07-2006, 06:02 PM
As it says in the title.
I'd like to show user ranks, specifically images, in a field on the memberlist, is there a modification out there to do this, and if not... anyone in the mood to show me how?
Thanks.
antialiasis
05-07-2006, 08:55 PM
Well, you can do that by editing the template, I believe. If you for example wanted it right after the username column, just find this in the memberlist_resultsbit template:
<td class="alt1Active" align="$stylevar[left]" id="u$userinfo[userid]">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
And under it, put something like this:
<if condition="exec_switch_bg()"><td class="$bgclass">$userinfo['rank']</td></if>
I haven't tested it as I'm not using ranks at my forums at the moment, but it's basically just a variation of the code used for all the other columns so it should work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.