WordPress.org

Ready to get started?Download WordPress

Forums

User Switching
[resolved] $members_template not needed after upgrading to BP 1.7? (4 posts)

  1. Anton
    Member
    Posted 1 year ago #

    I had to comment out the calls to $members_template on row 366-370 to get the front end user switching to work again on member profile pages, using BuddyPress 1.7. Don't know if this the right way™ code wise but worked for me.

    http://wordpress.org/extend/plugins/user-switching/

  2. Anton
    Member
    Posted 1 year ago #

    Sorry, my bad. Just noticed the above mentioned suggestion was a bad idea™ - it moved the problem with "0" as user id to the members listing page instead. What works is this combo:

    if ( !empty( $members_template ) && !$bp->displayed_user->id )

  3. John Blackbourn
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks nat0n. I'll test it out!

  4. John Blackbourn
    Member
    Plugin Author

    Posted 10 months ago #

    This is now fixed in User Switching 0.8. Thanks nat0n.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags