View Full Version : Limit Profile Field Viewing to Friends Only
shlomot
05-23-2008, 04:24 AM
I need to limit viewing of certain [custom] profile fields to member's friends only.
This permission can be given by filed, profile field category, or even a profile tab conditional.
Please help. Thanks.
GameWizard
05-23-2008, 07:28 AM
Although there are no privacy settings available in VB, the functionality is there.
Here is some basic code that you can input into the MEMBERINFO template to get this effect:
<if condition="$prepared['isfriend'] OR $prepared['myprofile']">
This is what will show up to people to user, and his friends.
<else />
This will show up to everyone else.
</if>
shlomot
05-24-2008, 02:14 PM
That's a great tip. Makes one jump back to CMPS and check how they utilize it in their built-in privacy setting.
I looked at your threads and posts in general; although 18 years of age, you have undeniable knowledge of the vB platform. Are you available to assist us (as a freelancer) in building up our community?
Although there are no privacy settings available in VB, the functionality is there.
Here is some basic code that you can input into the MEMBERINFO template to get this effect:
<if condition="$prepared['isfriend'] OR $prepared['myprofile']">
This is what will show up to people to user, and his friends.
<else />
This will show up to everyone else.
</if>
GameWizard
05-24-2008, 04:13 PM
Thanks for your comments, although I am actually 19. I might be able to offer some assistance, although my current schedule is very packed. We can discuss it further on MSN, my email is located in my profile.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.