Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-23T14:12:10-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=166 2010-06-23T14:12:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=1083#p1083 <![CDATA[Re: Unable to protect bbpress forum]]> s2Member -> API / Bridges.

Statistics: Posted by Jason Caldwell — June 23rd, 2010, 2:12 pm


]]>
2010-06-20T15:50:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=900#p900 <![CDATA[Re: Unable to protect bbpress forum]]> Statistics: Posted by drcoach — June 20th, 2010, 3:50 pm


]]>
2010-06-07T21:52:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=757#p757 <![CDATA[Re: Unable to protect bbpress forum]]>
Glad you found that :) I would give it a try. Buy something and see if you can complete the transaction without any errors. Just to be in the safe side.

Good Luck

Sam

Statistics: Posted by drbyte — June 7th, 2010, 9:52 pm


]]>
2010-06-07T21:31:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=756#p756 <![CDATA[Re: Unable to protect bbpress forum]]>
As for my situation, and perhaps yours wood2695, I found a repaired version of Michael Adams Force Login Plugin at: http://bbpress.org/forums/topic/force-l ... bpress-101 and have implemented it. It appears to be working beautifully! I'm so excited!

Statistics: Posted by drcoach — June 7th, 2010, 9:31 pm


]]>
2010-06-07T20:57:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=755#p755 <![CDATA[Re: Unable to protect bbpress forum]]>
Code:
<iframe src ="bbpress.index.php" width="100%" height="600">
  <p>Forum</p>
</iframe>


You have to create a new page within your template and force the code below

Code:
<?php if(is_user_logged_in()){ ?>
    <iframe src ="bbpress" width="100%" height="500">
  <p>Forum</p>
</iframe>
<?php } else { ?>
    Please Log In
<?php } ?>


This will insure the security of your forum and left a huge weight on your WP.

To insure no body can access your forum directly (http://site.com/forums/index.php) you can use .htaccess to redirect to the new page your have created which includes your secure code

Code:
Redirect 301 /bbpress.index(example).php http://www.example.com/yourpage/


You might want to have 2 index under your bbpress forum folder index.php and index1.php.
copy index.php and rename it index1.php then use the
Code:
<meta http-equiv="refresh" content="2; url=http://example.com/forum/index1.php">

in your index.php

Hope that helps

Statistics: Posted by drbyte — June 7th, 2010, 8:57 pm


]]>
2010-06-07T11:27:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=750#p750 <![CDATA[Re: Unable to protect bbpress forum]]>
Also, can you spell out what it means to use <iframe> and how that's done?

Statistics: Posted by drcoach — June 7th, 2010, 11:27 am


]]>
2010-06-07T10:29:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=749#p749 <![CDATA[Re: Unable to protect bbpress forum]]>
Doing this will add quite a lot of weight to your bbPress installation as it will cause WordPress to load in it’s entirety. Your best option is to try to emulate the functionality you require inside a bbPress plugin."

use

<iframe>

then use:

Code:
<?php if(is_user_logged_in()){ ?>
    Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
    Some public content.
<?php } ?>



Sam

Statistics: Posted by drbyte — June 7th, 2010, 10:29 am


]]>
2010-06-07T07:28:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=747#p747 <![CDATA[Re: Unable to protect bbpress forum]]> http://bbpress.org/forums/topic/s2member-integration

And I did what you said you had done, pasting the code you gave into functions.bb-users.php and options-wordpress.php.

Now I get a white page when I click to the forum whether I'm logged in as a user or not. Any ideas about what might be happening?

Statistics: Posted by drcoach — June 7th, 2010, 7:28 am


]]>
2010-06-07T06:48:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=746#p746 <![CDATA[Re: Unable to protect bbpress forum]]> Statistics: Posted by drcoach — June 7th, 2010, 6:48 am


]]>
2010-06-04T10:03:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=727#p727 <![CDATA[Re: Unable to protect bbpress forum]]>
- Ryan

Statistics: Posted by ryannagy — June 4th, 2010, 10:03 am


]]>
2010-06-04T09:15:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=725#p725 <![CDATA[Re: Unable to protect bbpress forum]]>
I've finally landed on a solution for my particular setup. Here it is (you can go straight to the last few posts as there were several theories discussed)...

http://bbpress.org/forums/topic/s2member-integration

Statistics: Posted by Guest — June 4th, 2010, 9:15 am


]]>
2010-06-03T06:43:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=710#p710 <![CDATA[Re: Unable to protect bbpress forum]]>
viewtopic.php?f=4&t=185 (nothing but a friendly marketing message from Helping Hand at the moment)

http://bbpress.org/forums/topic/s2membe ... post-69389 (A good theory discussion with no actionable solutions yet. The guys at bbPress seem keen on figuring this out too since it only helps strengthen their platform. Maybe ping that thread to show there's more interest than just lil' old me)

I've got another started on WP.org, with no replies. I'll post here if anything come up.

Cheers.

Statistics: Posted by Guest — June 3rd, 2010, 6:43 am


]]>
2010-06-03T06:37:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=709#p709 <![CDATA[Re: Unable to protect bbpress forum]]>
First, regarding your specific question (both originally and to Elizabeth)... I don't have a certified answer on whether or not it will work on bbPress since that is really a stand alone platform, but I can say that I have got a deep integration of bbPress on my WP site and I just tried doing what you are attempting, by defining (several variations) URIs in s2M to protect '/forum'. Like you, it did not work, so I suspect that Elizabeth is absolutely correct.

Now let me explain what I'm attempting to do... likely a similar reason to yours, with a different approach. I've got s2M installed for members to (pay and) join. Some content will be accessible only if you're a member and logged in. But my real goal for s2M was to protect the forum. So I am also using a bbPress plugin called 'zaerl Visibility' that gives you control to show/hide/lock any forums/topics/posts based on a users role. So in theory, as long as you've got your bbPress install deep integrated, any user that is logged in could have access to what you define and those that aren't, couldn't. The problem with this is that s2M assigns users to custom roles based on their s2M level (ie. s2Member Level 4), which don't translate to standard WP roles, which in turn do not translate into your standard bbPress roles.

So if you are like me and sign up members using s2M and have a forum that you'd like to protect, I suggest using that zaerl plugin and then all we have to do is find a way to make s2M automatically populate an additional bbPress role into our user table (the SQL stuff is just over my head). Then again, if your forum is not deep integrated (sharing cookies and whatnot) then this wouldn't really work for you either.

If nothing else, I can confirm that s2M will not protect my (bbPress) '/forum' directory.

Statistics: Posted by Guest — June 3rd, 2010, 6:37 am


]]>
2010-06-02T22:00:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=704#p704 <![CDATA[Re: Unable to protect bbpress forum]]> Statistics: Posted by drcoach — June 2nd, 2010, 10:00 pm


]]>
2010-06-02T04:17:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=677#p677 <![CDATA[Re: Unable to protect bbpress forum]]> In order words bbPress and WordPress work together, but they are 2 separate pieces of software; s2member is designed to work with WordPress.

Statistics: Posted by Elizabeth — June 2nd, 2010, 4:17 am


]]>
2010-05-30T09:40:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=648#p648 <![CDATA[Re: Unable to protect bbpress forum]]> Statistics: Posted by drcoach — May 30th, 2010, 9:40 am


]]>
2010-05-28T22:26:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=639#p639 <![CDATA[Re: Unable to protect bbpress forum]]> -----
Re: Can I protect a Buddypress group?
by Jason Caldwell » May 13th, 2010, 12:01 am

Yep! Go to: s2Member -> General Options -> URI Level Access.

Put in these two lines:
CODE: SELECT ALL
/groups
/forums

In the latest version of s2Member, you can also use some Replacement Codes in this field, which are specifically designed for plugins like BuddyPress. See URI Level Access for full details.

Statistics: Posted by ryannagy — May 28th, 2010, 10:26 pm


]]>
2010-05-28T17:05:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=166&p=635#p635 <![CDATA[Unable to protect bbpress forum]]> I am having difficulty getting s2member to protect a bbpress forum. I have asked it to protect all pages, I have also put in uri level access restrictions.

I have tried several versions of uri level access restrictions. I have tried /forum/, forum/ and
/members/%%current_user_login%%/forum/

None of these attempts has resulted in the forum being protected. The url is http://www.nunomad.com/tribe

Can someone help? I've had several questions here on the forum and have only received one answer so far by another member.

Statistics: Posted by drcoach — May 28th, 2010, 5:05 pm


]]>