Group Mods

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

external-group-blogs Plugin update-bug? (9 posts)

Started 2 years, 7 months ago by: Michael Berra

  • Profile picture of Michael Berra Michael Berra said 2 years, 7 months ago:

    I think Andys Plugin is just great!
    I experience the following behavier: The external Blogs only get updated, when someone actually clicks on the “blog feeds” link in the groups. Only then the activity stream gets updated. I guess that’s not the idea, because the activity should draw people to the group/blog – not the other way around.
    Is that just with me or do other have the same problem? Is there fix (update?)

  • Profile picture of Michael Berra Michael Berra said 2 years, 7 months ago:

    anyone having the same issue?

  • Profile picture of Chouf1 Chouf1 said 2 years, 7 months ago:

    i experience the same issue… but i also read this on line 19 of the php file
    wp_schedule_event( time(), ‘twicedaily’, ‘bp_groupblogs_update_all_feeds’ );

    I suppose this means “refresh the output every 12 hours”.

    Perhaps try to load a thread that is (surely) hourly updated to view if something changes in your plugin output ? :-)

  • Profile picture of Michael Berra Michael Berra said 2 years, 7 months ago:

    Thanks for the hint. I am trying it with a very much updated feed already and it does not refresh every 12 hours… Only when I go manually to the group (or somebody else), then it fetches the feed and makes the activity entries…
    Any more ideas…?

  • Profile picture of Michael Berra Michael Berra said 2 years, 6 months ago:

    Andy, since your on the move in the forums :-) – do you know what could be the reason for that (your plugin)?

  • Profile picture of Andy Peatling Andy Peatling said 2 years, 6 months ago:

    The scheduling doesn’t seem to work properly, it should fetch twice a day. I don’t have time to look into this right now, but anyone interested in debugging?

  • Profile picture of stwc stwc said 2 years, 6 months ago:

    Just a note that I’ve experienced the same issue — was meaning to post about it myself.

  • Profile picture of r-a-y r-a-y said 2 years, 6 months ago:

    Andy,

    Looking at the codex, it appears you’re missing an add_action.

    Change the first five lines of your plugin to:

    /* Schedule an event that will update all external blog feeds twice daily. */
    function bp_groupblogs_on_activation() {
    	wp_schedule_event( time(), 'twicedaily', 'bp_groupblogs_action' );
    }
    register_activation_hook( __FILE__, 'bp_groupblogs_on_activation' );
    add_action('bp_groupblogs_action','bp_groupblogs_update_all_feeds');

    This is untested, not sure if it will work.

  • Profile picture of Sunandan Sunandan said 1 year, 6 months ago:

    Hi , Is there are a way to redirect avatar link to group page instead of sending the user to members page.

    When i am using External group blog. The posts coming from external sites have avatar of this group but the avatar link is redirecting to members page i want this to redirect to Group page. Where should i change the code.