The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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"> ADMIN </if> <if condition="$userinfo[usergroupid] == 2"> MEMBER </if> i would recommend keeping the <head> stuff and doing this in the body part of MEMBERINFO |
#3
|
||||
|
||||
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. |
Благодарность от: | ||
Dr.CustUmz |
#4
|
||||
|
||||
|
#5
|
|||
|
|||
Quote:
|
Благодарность от: | ||
Dr.CustUmz |
#6
|
||||
|
||||
oops, Sorry Ryan, I was just reading another post by MarkFL and was thinking I was replying to him.
|
#7
|
|||
|
|||
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"> <tr><td class="$navclass[men]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=men">Edit Price List (Men)</a></td></tr> <tr><td class="$navclass[women]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=women">Edit Price List (Women)</a></td></tr> </if> <if condition="$userinfo[usergroupid] == 10"> <tr><td class="$navclass[waxing]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=waxing">Edit Waxing</a></td></tr> <tr><td class="$navclass[nails]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=nails">Edit Nails</a></td></tr> <tr><td class="$navclass[facials]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=facials">Edit Facials</a></td></tr> </if> |
#8
|
||||
|
||||
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? |
#9
|
|||
|
|||
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 |
#10
|
||||
|
||||
<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> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|