Forums

[Plugin: BP Profile Search] Quick Fix for WP 3.1 (7 posts)

  1. Gopherboy
    Member
    Posted 11 months ago #

    If you update WordPress to 3.1 and Buddypress to 1.2.8 and use multi_site this will no longer work because Buddypress uses 3.1's new network_admin dashboard. A quick change to line 30 of bps-main.php will fix this problem.
    Find the following line:

    add_action ('admin_menu', 'bps_add_pages', 20);

    And replace it with this:

    #add_action ('admin_menu', 'bps_add_pages', 20);
    add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bps_add_pages', 20 );

    This will allow the plugin to work with multisite enabled.

    http://wordpress.org/extend/plugins/bp-profile-search/

  2. Andrea Tarantini
    Member
    Posted 11 months ago #

    Thank you Gopherboy, I'll add your fix to the next plugin version, coming in a few days.

  3. Gopherboy
    Member
    Posted 11 months ago #

    Cool. Thanks. Great plugin by the way. You should be very proud.

  4. abelcreative
    Member
    Posted 9 months ago #

    Hey guys, I'm using the latest of WP, BP and BP Profile Search but still don't have a link in the menu. Am I missing something?

  5. Andrea Tarantini
    Member
    Posted 9 months ago #

    If you wish I could have a look at your installation. You can find my email on http://www.blogsweek.com/about-the-author/

  6. Gopherboy
    Member
    Posted 6 months ago #

    I think I found the problem. BP on my install is not loading before the search plugin loads so it can't tell what version of BP is running so it does not create the menu item. I made a workaround by creating a loader.php file as per the buddy press docs: http://codex.buddypress.org/plugin-development/checking-buddypress-is-active/ since buddypress must be active for this plugin (admin-side or otherwise) to even work.

  7. Andrea Tarantini
    Member
    Posted 6 months ago #

    Thank you Gopherboy, your suggestion is very helpful. I'll add that check in the next plugin release.

Reply

You must log in to post.

About this Topic