Skip to:
Content
Pages
Categories
Search
Top
Bottom

redirect not working unless I add home page as allowed.

  • Hello. Seems that config wont work unless I add ” into the array. When I do this all my restricted pages then are visible to non-members.

    here is my config:

    `MM_BUDDYPRESS_PRIVATE_COMMUNITY::$ALLOWED_URIS = Array(”,’/about’, ‘/members-only’, ‘/s/*’, ‘/register’);
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_TO_URL = site_url() . ‘/members-only';
    $REDIRECT_HOOK = ‘hellomember';
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_HOOK = ‘/activity';
    `

Viewing 1 replies (of 1 total)
  • Avatar of nipponmonkey
    NipponMonkey
    Member

    @nipponmonkey

    Your $REDIRECT_HOOK is wrong:

    `
    $REDIRECT_HOOK = ‘hellomember';
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_HOOK = ‘/activity';
    `

    Try:
    `
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_HOOK = ‘hellomember';
    `

    And maybe you don’t need ‘/s/*’ in the allowed URIs?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.