Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-13T17:52:42-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6418 2011-05-13T17:52:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14962#p14962 <![CDATA[Re: Protect other members profiles from current user?]]>
For now you'll have to protect the content in that page using the conditionals, checking the user and his level to do what you want.

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 5:52 pm


]]>
2011-05-13T17:18:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14954#p14954 <![CDATA[Re: Protect other members profiles from current user?]]> we are getting there :-)

Now if you can also help me figure out how do I write the URL to insert into the URI Restrictions (typical w/budyypress) section

/members/???username???/profile/

you are my hero for today :-)

Thanks!

Statistics: Posted by candy — May 13th, 2011, 5:18 pm


]]>
2011-05-13T16:54:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14950#p14950 <![CDATA[Re: Protect other members profiles from current user?]]>
You could try

Code:
get_user_field('username'$user_id); 

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 4:54 pm


]]>
2011-05-13T15:48:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14934#p14934 <![CDATA[Re: Protect other members profiles from current user?]]> )

s2 all revolves around "current_user_is" or "current_user_can" so far so good, but how do I integrate the "user" (not the current, just a user; let's say I am logged in as candy (current_user=candy") and you are also a member of the community, but you are not current_user (cause I am at that point).

So how do I call an URL to see your profile?

mysite.com/members/%%???christian???%%/profile

is there a short code for that %%???christian???%% just as I do for %%current_user_login%% to get your user name in the url?

know what I mean?

Statistics: Posted by candy — May 13th, 2011, 3:48 pm


]]>
2011-05-13T14:43:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14929#p14929 <![CDATA[Re: Protect other members profiles from current user?]]>
WP Admin -> s2Member -> General Options -> Login Welcome Page -> Special Redirection URL
Wp Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants -> S2MEMBER_CURRENT_USER_LOGIN

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 2:43 pm


]]>
2011-05-13T13:58:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14924#p14924 <![CDATA[Re: Protect other members profiles from current user?]]> So there is no parameter for the "username" that one can parse in the URL?

Like you have for %%current_user_login%% - only that not for "current" !?!

Thanks!

Statistics: Posted by candy — May 13th, 2011, 1:58 pm


]]>
2011-05-13T12:05:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14900#p14900 <![CDATA[Re: Protect other members profiles from current user?]]> viewtopic.php?f=4&t=6415

Statistics: Posted by Cristián Lávaque — May 13th, 2011, 12:05 pm


]]>
2011-05-13T10:50:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6418&p=14883#p14883 <![CDATA[Protect other members profiles from current user?]]>
Is there a way to protect not the whole members directory but only parts of the profiles?

Like for ex /members/%%user%%/profile/ ??!

That %%user%% does not seem to work, and I do not mean protectig the logged in user to see his onw profile, but I'd like to restrict his access to parts of the other user's profiles (like /userX/profile/, userX/activity) etc.?!?!

I'd like everyone to see the list of members but not have access to their complete profile
How is this done?!

Thank you!

Statistics: Posted by candy — May 13th, 2011, 10:50 am


]]>