The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profiles
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. |
#2
|
||||
|
||||
You probably used the wrong user variable in your condition - what was the exact condition you tried?
|
#3
|
|||
|
|||
I haven't tried any yet. I was just assuming
I just wanted an example of code that would work for that. |
#4
|
||||
|
||||
You could probably use something like <if condition="is_member_of($userinfo, x,y)"> It depends on what template you are using.
|
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
OK, so you can use that condition and show the template one way for certain usergroups and another way for other usergroups.
HTML Code:
<if condition="is_member_of($userinfo, 5,6,7)"> modified USER_CP code <else /> USER_CP code </if> |
#7
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|