![]() |
User Profiles
I really need this for a few of my sites. Very little vb knowledge, although I did see there's an archived 2.2 mod that would have done something SIMILAR.
I want one profile layout for 1 usergroup, another profile layout for another usergroup another for another so on and so on. Would any <if> statements do this? Really need this to work |
one way to do it would be to edit the memberinfo template and use
Code:
<if condition="$userinfo[usergroupid] == ##"> Code:
<if condition="$userinfo[usergroupid] == 6"> i would recommend keeping the <head> stuff and doing this in the body part of MEMBERINFO |
I never thought about doing this this way, opens many ideas for me, thanks Mark!
I have hid profile fields this way but not on member page. |
Quote:
|
Quote:
|
Quote:
|
I am doing the links in the UserCP, as I want different links to show depending on which profile is logged in and it won't show the other ones
I have a hairdressing directory and it will show the options for the price list edits for hairdressers (userid=9) but it won't show the edit price list to beauticians (userid=10) Here's my code (USERCP_SHELL): Code:
<if condition="$userinfo[usergroupid] == 9"> |
I'm a little confused here.
You're wanting links to show based on the user logged in so if I'm logged in and I'm a beautician I see certain links? Right? |
Yes, that's correct.
Obviously hairdressers have different price lists to beauticians. I've used the extra profile fields page and managed to get the extra pages working with the relevant profile fields, I just can't get the links to show for that particular usergroup |
<if condition="is_member_of($bbuserinfo, ##)"> LINK FOR ##</if>
replace ## with usergroup id --------------- Added [DATE]1456583844[/DATE] at [TIME]1456583844[/TIME] --------------- more than one usergroup can see the same link would be <if condition="is_member_of($bbuserinfo, ##, 6, #, ##)"> LINK FOR ##</if> |
All times are GMT. The time now is 04:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|