Skip to:
Content
Pages
Categories
Search
Top
Bottom

External Group Blogs [BP 1.2.7, WP3.0.4]

  • @flowevd

    Member

    I’m getting some odd behaviour with the External Group Blogs (http://wordpress.org/extend/plugins/external-group-blogs/) plugin.

    When I add a feed, that feed’s earliest post appears in the group with a datestamp of over 40 years ago. No subsequent posts are pulled into the group or the activity stream.

    Anyone have any idea what’s going on?

    Thanks in advance :-)

Viewing 2 replies - 1 through 2 (of 2 total)
  • @flowevd

    Member

    OK, got round to fixing this, after moving to bp_external_activity… the timestamp issue has mysteriously solved itself, but to get the posts to show up on the feed i had to edit some code

    this is the offending bit:

    `$author = $rss_item->get_author();
    if ( !$userdata = get_userdatabylogin( strtolower( $author->get_name() ) ) )
    $user_id = 0;
    else
    $user_id = $userdata->ID;`

    $author is not an object, says PHP. i conjecture this is a problem with my feed which means that $rss_item->get_author() doesn’t work, and $author is left NULL. can anyone confirm/deny this is how it works? the documentation is… terse.

    anyway, i wrapped it in an if statement:

    ` if ($author != NULL) {
    `…
    `} else {
    $author = “A user”; `

    will this work? needless to say i am a novice.

    @flowevd

    Member

    a short update on the date problem – i realised 40 years ago would be consistent with a timestamp of 0. therfore, a second conjecture:
    rss feeds from Blogger don’t like being chopped up into `$feed_item`.

    the solution was to use the feed provided at http://blogurl.com/feeds/posts/default?alt=rss. Other ones don’t work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘External Group Blogs [BP 1.2.7, WP3.0.4]’ is closed to new replies.
Skip to toolbar