brewhousemedia (@brewhousemedia)

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • In reply to: Bavatars Error

    @brewhousemedia

    Member

    If you’re unlucky like me and you still have some old php4 code that’s preventing you from flipping the switch to php5. Here’s what I did to fix bavatars.php, around line 48.

    //$id = bb_get_user( $id_or_email, array( 'by' => 'email' ) )->ID;

    // Fix for Fatal error: syntax error, unexpected T_OBJECT_OPERATOR

    $bb_get_user_object = bb_get_user( $id_or_email, array('by' => 'email'));

    $id = $bb_get_user_object->ID;

    @brewhousemedia

    Member

    Thanks for the tip, that’s much better.

    @brewhousemedia

    Member

    Thanks for the tip, that’s much better.

    @brewhousemedia

    Member

    That’s because there’s a bug in the plugin. Or rather the plugin was probably written for an earlier version of bbpress.

    To fix the “redirect” issue, you need to edit avatar-upload.php and change line 7 from:

    bb_auth(); // logged in?

    to:

    bb_auth( 'logged_in' ); // logged in?

    Now it’s off to do more testing.

    @brewhousemedia

    Member

    That’s because there’s a bug in the plugin. Or rather the plugin was probably written for an earlier version of bbpress.

    To fix the “redirect” issue, you need to edit avatar-upload.php and change line 7 from:

    bb_auth(); // logged in?

    to:

    bb_auth( 'logged_in' ); // logged in?

    Now it’s off to do more testing.

Viewing 5 replies - 1 through 5 (of 5 total)