• I have modified the plugin so that non registered members may have access to 5 additional pages other than the registration page. Suggestion to the authors to include such a feature in the next version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m looking to do the same thing. Would you be willing to share how you did this? I would greatly appreciate it.

    Edit:

    Never mind, I already figured out how to do it. For anybody else looking to do the same:

    Open buddypress-members-only/buddypress-members-only.php in the editor.
    Look for this line:

    function buddypress_only_for_members()
    {
    	if (is_front_page()) return;

    Below that line you can add the following line:

    if (is_page( array( '42, 'about-me', 'Contact' ) )) return;

    // Returns true when the Pages displayed is either post ID 42, or post_name “about-me”, or post_title “Contact”. Just add your own ID’s, slugs, or titles of the pages you want to be shown without having to log in.

    Thread Starter navinachettri

    (@navinachettri)

    Glad you came with the solution yourself.
    My solution for 5 additional pages can be found in
    https://pastebin.com/tbbtSUwL if you still need them. It is the modified buddypress-members-only/buddypress-members-only.php if any one is still looking for the solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggestion’ is closed to new replies.