View Full Version : Profiles
Hex_legend
10-22-2009, 12:27 PM
Is there a way to code a different profile look for an administrator / staff member than what users have?
If I use the code <if condition""> Then it usually shows the new look profiles on all users for if an administrator is logged in on that profile.
E.g, say I have 2 profile layouts, I want all users to be able to see the admin profiles that look totally different to the user layouts.
Lynne
10-22-2009, 01:34 PM
You probably used the wrong user variable in your condition - what was the exact condition you tried?
Hex_legend
10-22-2009, 02:29 PM
I haven't tried any yet. I was just assuming :)
I just wanted an example of code that would work for that.
Lynne
10-22-2009, 02:33 PM
You could probably use something like <if condition="is_member_of($userinfo, x,y)"> It depends on what template you are using.
Hex_legend
10-22-2009, 02:40 PM
I am using Memberinfo template.
I want it so that users can see the admin profile looking different to their profile.
Seeing as it is a model agency website, the admins are not models, so we need a different layout
Lynne
10-22-2009, 02:45 PM
OK, so you can use that condition and show the template one way for certain usergroups and another way for other usergroups.
<if condition="is_member_of($userinfo, 5,6,7)">
modified USER_CP code
<else />
USER_CP code
</if>
Hex_legend
10-22-2009, 02:50 PM
Thank you Lynne
You have done it again :)
Maybe you could assist with my other post on Age Restricted Content?
https://vborg.vbsupport.ru/showthread.php?t=225774
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.