Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only registered and activated users can see links in activity stream

  • @danesensei

    Participant

    I am trying to achieve the above question, can someone point me to the right direction?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @bphelp

    Participant

    Try this plugin to see if it fits your requirement just understand it makes all BP pages private but line 24 in private-community-for-bp.php can be edited and commented out the components you don’t wish to protect there is an example built in the plugin for sitewide forums to see how to comment certain components out:
    https://github.com/bphelp/private_community_for_bp

    @danesensei

    Participant

    Thanks for the link. Maybe I did not explain it clearly. I still want full access to bp components for non registered/login users. What I want to do is allow members to have the ability to restrict viewing http links inside the post in activity stream unless they are log in. Is this possible?

    @jhulianni

    Participant

    Help me!

    Error: Warning: Cannot modify header information – headers already sent by (output started at /home/content/36/10763236/html/wp-content/themes/OneCommunity/forums/index.php:12) in /home/content/36/10763236/html/wp-includes/pluggable.php on line 876

    Codigo:

    function nonreg_visitor_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_profile_component() ) {
    /* enter the component name to be blocked to visitors in the above line */
    if(!is_user_logged_in()) { //just a visitor and not logged in
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    }

    Solved error?????

    @bphelp

    Participant

    @jhulianni
    Please provide more info when requesting support. See this sticky topic:
    https://buddypress.org/support/topic/when-asking-for-support-2/
    Looks more like an issue in your theme from the error you posted.

    @bphelp

    Participant

    @jhulianni
    Actually it would be more appropriate to start your own topic because hijacking another persons thread is usually frowned upon especially since it has nothing to do with the topic authors support request. Thank you!

    @bphelp

    Participant

    @danesensei
    Try this technique:
    http://stackoverflow.com/questions/2091168/disable-a-link-using-css
    Pay attention to nickf ‘s usage. It uses jquery so if your not familiar with it then you need to study:
    http://learn.jquery.com/about-jquery/how-jquery-works/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only registered and activated users can see links in activity stream’ is closed to new replies.
Skip to toolbar