![]() |
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. |
in usergroup pick the one you want to edit scroll down to General Permissions/Can View Member Info = No
|
This seems to also block the member of who's profile it is, from being able to view their own profile.
|
Did not have time to test.
--------------- Added [DATE]1372453289[/DATE] at [TIME]1372453289[/TIME] --------------- Try posting that request here |
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> |
Quote:
|
Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] && is_member_of($bbuserinfo, X, X, X)"> |
Quote:
|
Wait, that's wrong, lol.
HTML Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] OR is_member_of($bbuserinfo, X, X, X)"> |
So is that for groups or x = each member id
|
For groups.
|
So in Style Manager wrap the following?
memberinfo_block Is that the correct one? and just that one? |
Depends what you want to hide :), if you wanted to hide the "About Me" then you'd wrap the code from the "memberinfo_block_aboutme" if you want to hide the lot then wrap all the code in "memberinfo_block"
|
I do want to hide the whole lot and seen only be the person it belongs to and staff.
But when I use exel's code above and wrap it round the code for memberinfo_block. The info can still be seen :| *confused* |
try make a normal user account and test it
|
Here is what I did...
I set "Can View Member Info" back to "Yes". Then did changed it like this... memberinfo_block Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid'] OR is_member_of($bbuserinfo, 5, 6, 7)"> I was able to view other peoples profiles. --------------- Added [DATE]1372544450[/DATE] at [TIME]1372544450[/TIME] --------------- OK I just tried wrapping the code around "MEMBERINFO" without the _block. And that seems to work. If another member tries to view a profile, they get a white screen. No error messages etc... this sound right? |
ur right it does not work
|
What doesn't work? what are you expecting to happen?, you shouldn't get a white screen you should get the headers, footers..etc but nothing in between.
--------------- Added [DATE]1372549477[/DATE] at [TIME]1372549477[/TIME] --------------- Right just checked, you cant wrap the entire MEMBERINFO, you have to be a bit smarter and wrap waht you need so possibly just wrap from HTML Code:
<!-- begin user css --> HTML Code:
<!-- end usercss --> |
Sorry if I'm been a bit dim here. But I don't get what you mean :|
So are we talking about the "MEMBERINFO" or the "memberinfo_block" as originally mentioned? My memberinfo_block Code:
<!-- {vb:raw id} --> Code:
{vb:stylevar htmldoctype} |
Below this <div class="member_content"> put your opening condition and close it before the last </div> in memberinfo
|
Thanks that's worked a treat!!
:D |
Strange I don't seem to have <div class="member_content"> in MEMBERINFO template even the default does not have it.
|
Quote:
HTML Code:
{vb:raw navbar} |
All times are GMT. The time now is 04:15 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:
|