Log in

View Full Version : A Few Issues, $bbuserinfo[usertitle]


phalanxents
02-22-2016, 09:21 PM
Let me explain myself.

I want it on a users profile, where a user will see the user title of the profile they are visiting.
So, if a registered user is viewing my profile, it will show "administrator". If I view a moderator, it will show "Moderator"

===============

Also, If I want to have a different profile layout for usergroup 10 (for example), how would I set this so that layout shows to ALL people who view usergroup 10's profile? (not just them seeing their own profile layout - which I know the IF condition will do)

MarkFL
02-23-2016, 02:33 PM
You can use "User Ranks" to display text/HTML/images per usergroup...this will show up in postbits and profile pages.

As far as a different profile page format based on usergroup, you could create custom templates for that purpose, and have them rendered as needed.

phalanxents
02-23-2016, 07:48 PM
I'm sure in the past, I used something like
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7, 18)">
Show this profile layout
<else />
Show this one
</if>