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™
<?php
add_action ("template_redirect", "my_custom_capabilities", 1);
function my_custom_capabilities ()
{
if (bp_is_group_forum () && !current_user_can ("access_s2member_ccap_forums"))
{
header ("Location: " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
exit ();
}
}
?>
<?php
add_action ("template_redirect", "my_custom_capabilities", 1);
function my_custom_capabilities ()
{
if (fnmatch ("/activity*", $_SERVER["REQUEST_URI"]) && !current_user_can ("access_s2member_ccap_activity"))
{
header ("Location: " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
exit ();
}
else if (fnmatch ("/forums*", $_SERVER["REQUEST_URI"]) && !current_user_can ("access_s2member_ccap_forums"))
{
header ("Location: " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
exit ();
}
}
?>
Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests