Skip to:
Content
Pages
Categories
Search
Top
Bottom

Non Registered Users Can View Registered Users


  • AhmadHussain92
    Member

    @ahmadhussain92

    Here’s the website I’m working on

    http://www.ledtechconnect.com

    My issue is non-registered users that visit the website can actually click users and view what they’re doing, I need to make it so that all the Site Activity/Profile features are exclusive to registered users, how do I get it so it does not let them view the social network activities?!

    Thanks! Really Appreciate it!

Viewing 1 replies (of 1 total)

  • aces
    Participant

    @aces

    Do you mean something like the walled garden technique?

    I use (bp version 1.5.6 ): https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/code-snippet-make-site-privet-parse-error/#post-130982

    Then I use the following to hide feeds from logged out users
    `
    function bp_remove_feeds() {
    remove_action( ‘bp_actions’, ‘bp_activity_action_sitewide_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_personal_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_friends_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_my_groups_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_mentions_feed’, 3 );
    remove_action( ‘bp_actions’, ‘bp_activity_action_favorites_feed’, 3 );
    remove_action( ‘groups_action_group_feed’, ‘groups_action_group_feed’, 3 );
    }
    add_action(‘init’, ‘bp_remove_feeds’);
    `

Viewing 1 replies (of 1 total)
  • The topic ‘Non Registered Users Can View Registered Users’ is closed to new replies.
Skip to toolbar