Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Trouble with google reader and sitewide activity (2 posts)

Started 1 year, 1 month ago by: mmcomber

  • Profile picture of mmcomber mmcomber said 1 year, 1 month ago:

    Hi all,

    Following up on a reader complaint, I found that when someone subscribes to my Buddypress enabled site with Google Reader using the main ULR (threesheetsnw.com), the reader automatically subscibres them to the sitewide activity feed. So instead of just seeing out latests posts, the reader is getting all the sitewide activity and it floods their reader.

    I fixed the problem for him but suggesting he use our RSS URL (via Feedburner) instead and that worked. But is there any way to have our RSS feed, not our sitewide activity, be the default for Google Reader and others?

    Using the Wordpress 3.1 and Buddypress 1.28 with a theme from WPMUDev.

    Thanks!

  • Profile picture of Mikey3D Mikey3D said 1 year, 1 month ago:

    It’s very simple to fix it. In your child theme, open the file header.php and move the Blog Posts RSS Feed and Blog Posts Atom Feed codes between this characters “@@@” just under the style.css’s media=”screen” codes:

    <?php do_action( 'bp_head' ) ?>
    
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    		<?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
    
    		<?php endif; ?>
    
    		<?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
    		<?php endif; ?>
    
    		<?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
    		<?php endif; ?>
    
    		@@@<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
    		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />@@@
    		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    Change to:

    <?php do_action( 'bp_head' ) ?>
    
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    		@@@<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
    		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />@@@
    
    		<?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
    
    		<?php endif; ?>
    
    		<?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
    		<?php endif; ?>
    
    		<?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
    
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
    		<?php endif; ?>
    
    		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    How is that workout for you? Don’t forget to delete this characters “@@@.” It’s just for the demonstration.

    Mikey3D