Whenever a Members signs up on your WordPress site, they are assigned a Role matching the type of registration that was completed. Either Level #0 ( Free Subscriber ) , or one of the paid s2Member Roles with Level # 1-4. Then, the first time they attempt to access your bbPress installation, s2Member will automatically assign them a bbPress role of "Member" on your bbPress installation. In order for this to work as expected, you must have the
s2Member -> bbPress Bridge installed. Please check your Dashboard under:
s2Member -> API Bridges -> bbPress.
Thanks for the info...my problem is when bbbridge is installed the general public can not see the forums? Is there a fix?
After you install the
s2Member -> bbPress Bridge in your Dashboard, you can open this file, it's inside:
/bb-plugins ( or my-plugins ) /_s2member-bbpress-bridge.php.
Look for this section in that file:- Code: Select all
if (!bb_is_user_logged_in () || !bb_current_user_can ("participate"))
{
if ($url = bb_get_option ("wp_siteurl")) {
$bbPress = bb_get_option ("uri"); if (preg_match ("/^" . preg_quote ($bbPress, "/") . "/", $_SERVER["HTTP_REFERER"]))
wp_redirect ($url, apply_filters ("ws_plugin__s2member_content_redirect_status", 301, get_defined_vars ()));
else wp_redirect ($url . "/?s2member_membership_options_page=1&s2member_seeking=bbpress&s2member_level_req=" . urlencode ($min), apply_filters ("ws_plugin__s2member_content_redirect_status", 301, get_defined_vars ()));
exit ();
}
}
Try changing that to just this:- Code: Select all
if (!bb_is_user_logged_in () || !bb_current_user_can ("participate"))
{ }
* NOTE. This is untested code. Please use at your own risk.