Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-07T02:18:10-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1495 2011-09-07T02:18:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=34186#p34186 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>

Statistics: Posted by Cristián Lávaque — September 7th, 2011, 2:18 am


]]>
2011-09-06T05:45:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=34090#p34090 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>
Since I posted this I have moved my install from the dev to the live server and the problem seems to have gone away! I am not sure what is causing this change in behaviour but it is probably a server setting.

Might be a red herring, i.e. my dev-server is configured in an odd way, and this is never an issue on live sites. Even so was an interesting exercise going through everything. If I ever get to the bottom of it i will return and post my findings. As it is, the code I added to force the check is never being called and S2Member is picking up on the URI restriction regardless.

Shrugs...

Statistics: Posted by Mungo — September 6th, 2011, 5:45 am


]]>
2011-09-05T22:33:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=34078#p34078 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>

Statistics: Posted by Cristián Lávaque — September 5th, 2011, 10:33 pm


]]>
2011-09-05T08:08:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=34045#p34045 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>
Code:
<?php if(is_uri_permitted_by_s2member("/members/")) { ?>

BuddyPress template code

<?php } else {registration encouragement here} ?>


Took me a while to track this down so I hope this helps someone else
All the best
Mungo

Statistics: Posted by Mungo — September 5th, 2011, 8:08 am


]]>
2011-03-02T13:21:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=7322#p7322 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>
I have set groups as private in buddypress but anybody can view my directory by adding /members/ to my url. Is there a way of specifying the url and requiring members to be registered and logged in to view?

Regards,

Gary

Statistics: Posted by GPMBuzz — March 2nd, 2011, 1:21 pm


]]>
2011-01-31T11:47:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=6201#p6201 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>
Gayatriom wrote:
However, everyone is able to access this!


When you say "everyone" do you mean anonymous users who are not logged in?

Are you logging out, clearing your cookies and cache before trying to access restricted pages? Have you tried accessing the restricted pages from a different computer -- sometimes I find that the computer I'm using for configuring keeps me logged in, in unexpected circumstances.

I can't think of anything obvious that would be the problem. Are you running any other plugins that deal with membership or capabilities?

Have you designated a Member Options page?

Try this: Remove all of your Membership restrictions -- so delete the URI restrictions. Go to the Page Restrictions. Select a page from the drop down menu and restrict it to level 0.

The log out, clear cache and cookies. Then try to access that specific page.

If you can access it then you do have a bigger problem. If it you can't then we've confirmed that S2M is actually operational and the problem may be isolated to the URIs.

Don't know if any of this helps, but I'm trying <smile>.

Statistics: Posted by gwc_wd — January 31st, 2011, 11:47 am


]]>
2011-01-29T22:11:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=6156#p6156 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]> /members/admin/friend/add-friend/
/groups/create/
/forums/


This is what I have put in URI restriction.
However, everyone is able to access this!

Statistics: Posted by Gayatriom — January 29th, 2011, 10:11 pm


]]>
2011-01-29T22:06:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=6153#p6153 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]> I'm enclosing everything in two /members/ slashes.
I don't know what I'm doing wrong.

Statistics: Posted by Gayatriom — January 29th, 2011, 10:06 pm


]]>
2011-01-15T15:59:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=5635#p5635 <![CDATA[Re: Buddypress & S2Member, restricting through uri]]>
/members/
/groups/
/forums/
/activity/

requiring level 0

and /create/

requiring level 1

I have no other restrictions for the other levels or elsewhere in S2M settings.

These are all working for me correctly.

The only difference I can see from your example is that I am enclosing the string in two / so I have
/groups/ while you have groups/

Note also that URIs are case sensitive so if you use /Groups/ it will not catch /groups/

So we would need more information to try to assist because what you are describing is not replicated -- at least not on my systems and I've fiddled with many convolutions of S2m +BP. What else might you have configured in S2M options that could be restricting access?

Statistics: Posted by gwc_wd — January 15th, 2011, 3:59 pm


]]>
2011-01-09T03:46:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1495&p=5380#p5380 <![CDATA[Buddypress & S2Member, restricting through uri]]> viewtopic.php?f=4&t=538&p=2263&hilit=buddypress+groups%2C+activity#p2263

However, it's not working for me. Even though I have it set to restrict those areas of buddypress for Level 0, it's restricting even level 1,2,& 3 from viewing these sections, even though I've not set them to be restricted. When I remove these from the URI restriction, it opens buddypress so even a visitor can see groups and users. I want these sections locked down.

So it seems to either be a bug or a config issue on my side. Has anyone else ran into this problem implementing S2Member on Buddypress, and can you tell me how to solve this problem?

Statistics: Posted by isisjade — January 9th, 2011, 3:46 am


]]>