vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Profile viewable to member only (https://vborg.vbsupport.ru/showthread.php?t=299614)

cravendale 06-28-2013 05:01 PM

Profile viewable to member only
 
Hi,

I've been looking around for a mod that will do this without any luck.

All I need it to do is allow either only the member to be able to view their own profile and no one else.

Or as above and with usergroup set permissions that can view profiles.

ForceHSS 06-28-2013 05:40 PM

in usergroup pick the one you want to edit scroll down to General Permissions/Can View Member Info = No

cravendale 06-28-2013 06:25 PM

This seems to also block the member of who's profile it is, from being able to view their own profile.

ForceHSS 06-28-2013 07:47 PM

Did not have time to test.

--------------- Added [DATE]1372453289[/DATE] at [TIME]1372453289[/TIME] ---------------

Try posting that request here

Simon Lloyd 06-28-2013 10:38 PM

In the member_info blocks wrap the whole thing in this
HTML Code:

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']">ALL THE PROFILE CODE</vb:if>
now the only person that can view the stuff that you've wrapped in the conditional is the person who the profile belongs to!

ForceHSS 06-29-2013 12:28 AM

Quote:

Originally Posted by Simon Lloyd (Post 2431111)
In the member_info blocks wrap the whole thing in this
HTML Code:

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']">ALL THE PROFILE CODE</vb:if>
now the only person that can view the stuff that you've wrapped in the conditional is the person who the profile belongs to!

Good idea would use this myself but would be better if admins, super mods and mods can see others

exel 06-29-2013 12:48 AM

Code:

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] && is_member_of($bbuserinfo, X, X, X)">
ALL THE PROFILE CODE
</vb:if>

X being the staff usergroup ids. :|

Simon Lloyd 06-29-2013 12:56 AM

Quote:

Originally Posted by exel (Post 2431126)
Code:

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] && is_member_of($bbuserinfo, X, X, X)">
ALL THE PROFILE CODE
</vb:if>

X being the staff usergroup ids. :|

Lol beat me to it! :)

exel 06-29-2013 01:10 AM

Wait, that's wrong, lol.

HTML Code:

<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] OR is_member_of($bbuserinfo, X, X, X)">
ALL THE PROFILE CODE
</vb:if>


ForceHSS 06-29-2013 03:23 AM

So is that for groups or x = each member id


All times are GMT. The time now is 03:12 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
  • Page Generation 0.04356 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete