vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Limit Profile Field Viewing to Friends Only (https://vborg.vbsupport.ru/showthread.php?t=180220)

shlomot 05-23-2008 04:24 AM

Limit Profile Field Viewing to Friends Only
 
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:
Code:

<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?

Quote:

Originally Posted by GameWizard (Post 1528713)
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:
Code:

<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.


All times are GMT. The time now is 03:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01343 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete