PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Restricting Profile URI

s2Member Plugin. A Membership plugin for WordPress®.

Restricting Profile URI

Postby bitofgrace » January 24th, 2012, 3:59 pm

Hi there,
I recently had to re-do all my s2 settings because of a breakdown in mySQL

How do you restrict non-members from viewing buddypress member profile page?

i thought it was
/%%user_login%%

but that is not working, nor is
/%%user_login%%/profile/

-grace
User avatar
bitofgrace
Registered User
Registered User
 
Posts: 64
Joined: September 8, 2011

Re: Restricting Profile URI

Postby Bruce C » January 24th, 2012, 4:00 pm

You need to go into Restriction Options -> URI Restrctions
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Restricting Profile URI

Postby bitofgrace » January 24th, 2012, 4:04 pm

YEs Bruce, thank you, I know where - what i need to know is what is the correct way to distinguish the URI??

the two i mentioned above are not blocking public from viewing individual profile pages.

-grace
User avatar
bitofgrace
Registered User
Registered User
 
Posts: 64
Joined: September 8, 2011

Re: Restricting Profile URI

Postby Bruce C » January 24th, 2012, 4:09 pm

Oh, OK well you should just be able to use /profile/ because it shows up regardless I believe. There's no Replacement Code for everyone's login.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Restricting Profile URI

Postby bitofgrace » January 24th, 2012, 4:14 pm

hmm
then something is not working perhaps.
It used to work well.
But now if i type in the exact address.. i get in even while not logged in as a member.

-grace
User avatar
bitofgrace
Registered User
Registered User
 
Posts: 64
Joined: September 8, 2011

Re: Restricting Profile URI

Postby Bruce C » January 24th, 2012, 4:16 pm

Can you send the URL of the member you are trying to access?
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Restricting Profile URI

Postby bitofgrace » January 24th, 2012, 4:18 pm

Any member at all
but here's my testing account:

http://video.icu2.com/bitofgrace
User avatar
bitofgrace
Registered User
Registered User
 
Posts: 64
Joined: September 8, 2011

Re: Restricting Profile URI

Postby Bruce C » January 24th, 2012, 4:23 pm

OK, I've done a job similar to this one before. This actually isn't possible through s2Member directly because of how BuddyPress works with the usernames. You'd need to run a PHP function that checks the URI, and sees if the URI contains the username of a user, and checks if the current user is under level 0. It's actually quite complicated, which is probably why s2Member hasn't integrated it yet.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron