This topic has 13 replies, 2 voices, and was last updated 8 years by lopreg.

  • Author
  • #103527
     lopreg
    Participant

    Hi,

    I just discovered that when people try to subscribe to my site’s feed they end up being subscribed to domain.com/activity/feed/.
    Please, how I can I stop this? I need to make sure that when people search for feeds on my site, they only get to the default domain.com/feed/.
    I don’t need any body being able subscribe to any activity on my site via RSS except the default wordpress posts’ feeds.
    Thanks for your assistance.

    #103557
     sharmstr
    Moderator

    This isnt a Kleo bug. Kleo has nothing to do with RSS feeds. There are a few topics about this on the buddypress forum. Please refer to them for assistance. https://buddypress.org/support/search/rss/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103623
     lopreg
    Participant

    @Sharmstr thanks for the response. I have searched around but the codes I found doesn’t appear to work. Then I came across this => https://buddypress.org/support/topic/changing-the-default-rss-feed-sitewide-activity/. Please, can you help tell where I should be implementing it on the theme. Thanks again

    #103754
     sharmstr
    Moderator

    Go to /kleo/header.php and move the wp_head line above the bp_head line. I have no idea if this will work. Let me know.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103756
     sharmstr
    Moderator

    FYI – If you look at buddypress template files, you’ll see that they are calling bp_head before wp_head as well.

    /plugins/buddypress/bp-themes/bp-default/header.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103793
     lopreg
    Participant

    You are right @sharmstr. I doesn’t appear to solve the problem.
    Am I really the only one having this issue? Or is anyone else having the same challenge?
    I have tried the codes below to completely remove buddypress feeds but none works.

    COPY CODE
    
    function bpfr_hide_rss_feeds() {	
       remove_action( 'bp_actions', 'bp_activity_action_sitewide_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_personal_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_friends_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_my_groups_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_mentions_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_favorites_feed' );
       remove_action( 'groups_action_group_feed', 'groups_action_group_feed' );    
    }
    add_action('init', 'bpfr_hide_rss_feeds');
    
    COPY CODE
    
    function bp_remove_feeds() {
            remove_action( 'wp', 'bp_activity_action_sitewide_feed', 3 );
            remove_action( 'wp', 'bp_activity_action_personal_feed', 3 );
            remove_action( 'wp', 'bp_activity_action_friends_feed', 3 );
            remove_action( 'wp', 'bp_activity_action_my_groups_feed', 3 );
            remove_action( 'wp', 'bp_activity_action_mentions_feed', 3 );
            remove_action( 'wp', 'bp_activity_action_favorites_feed', 3 );
            remove_action( 'wp', 'groups_action_group_feed', 3 );
    }
    add_action('init', 'bp_remove_feeds');
    
    #103795
     sharmstr
    Moderator

    Are they removed if you add the code to the bp-custom.php file and enable the WP 2015 theme?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103797
     lopreg
    Participant

    Yes. I just tested the first code with 2015 theme, and it worked.
    Thanks again for the assistance @sharmstr

    #103822
     sharmstr
    Moderator

    Okay. Does it work with it in bp-custom.php and Kleo enabled?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103824
     lopreg
    Participant

    It doesn’t work. I have tried both the bp-custom.php and function.php, the codes doesn’t work in any of them when kleo is enabled.
    Thanks for all the assistance @sharmstar and happy val 🙂

    #103827
     sharmstr
    Moderator

    I just tested this and the WP 2015 theme and the WP 2016 theme doesnt add the feeds even without the custom code, so it wasnt a good way to test this. Moving the bp_head call after the wp_head call doesnt work either.

    Anyhow, the code you’re using is completely wrong. Try this

    COPY CODE
    
    function bpfr_hide_rss_feeds() {	
      remove_action( 'bp_head', 'bp_activity_sitewide_feed' );
      remove_action( 'bp_head', 'bp_members_activity_feed' );
      remove_action( 'bp_head', 'bp_groups_activity_feed' );  
    }
    add_action('bp_init', 'bpfr_hide_rss_feeds');
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103830
     lopreg
    Participant

    Wow. This worked!!!
    Thanks a lot @Sharmstr. You are a life saver! 🙂

    #103831
     sharmstr
    Moderator

    You’re welcome. Now get off your computer and go enjoy valentines day 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #103832
     lopreg
    Participant

    Hahaha. I surely will. Thanks to U 🙂

Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?