Helping you Build Your Own Social Network!

Faster, better and easier!

Chanhes required for 1.5 compatibility

(7 posts) (4 voices)
  • Started 9 months ago by gwu
  • Latest reply from Brajesh Singh

Tags:

No tags yet.


  1. Hi Brajesh,

    just like any other BP website,my website is using lot of plugins. Some of which will not get the required attention from the developers.

    Can you point out few things which we need to do or check to make our plugin play well with the changes in BP 1.5

    Also I could not find a list of changes coming in BP 1.5.

    thanks,
    gwu

    Posted 9 months ago #
  2. You can find a list of plugins that work and don't work with 1.5 here:

    http://codex.buddypress.org/releases/1-5-plugin-compatibility/

    I have a number of patches I've put together for the plugins I use to get them to work with BP 1.5.

    Posted 9 months ago #
  3. thanks.

    This is helpful, though this does no list the plugins got from other places like wpmudev.

    So I want to know what are the changes I need to do to get my plugin to work on BP1.5.

    In other words, what has changed in BP 1.5 which can break my plugins.

    thanks

    Posted 9 months ago #
  4. @TJ,
    thanks for posting that. The community has done a great work on that.

    @Gwu,
    I will list a couple of important changes.
    1. Testing of current component:- do not use $bp->current_component=='something'
    instead use bp_is_current_component('something')

    2. You will need to assign a wordpress page to each and every component which needs a top level page(in older term a directory page). Like for your contact plugin, you will need to assign it a top page.

    If you are using older code, you will need to have the component slug same as component id in order to allow bp to help you create those pages.

    3. hook order:- There are some changes in bp_loaded, bp_init and some other hooks, so there are chances that a plugin will break if it hooking to wp action forcaching screen with higher priority(like 1,2 etc)

    4. Other than that, there are some minor changes but won't affect most. Like you should not use the older constants like BP_ACTIVITY_SLUG instead use bp_get_activity_slug()(has a function for each of the older constants).

    Since I have updated all the premium plugins from BuddyDev for the current BP Trunk, I found two issues nagging. 1. The loading order of hooks(I am planning to write a detailed tutorial on that) and another managing the directory page(I had too many issues while making BP branded login compatible as It uses 3 top level pages).

    Also, the problems will depend on the plugin and how they were written, if Bp skeleton component was used as a model, there are chances nothing (except the directory page assignment) should break for your existing setup. They may break on newer installs when you will be using the hierarchical page structure for the community like site.com/community/members style(look we have got community as the top level page which is parent of all the social pages).

    Posted 9 months ago #
  5. thanks Brajesh

    Posted 9 months ago #
  6. == I have updated all the premium plugins from BuddyDev for the current BP Trunk ==

    Good to know Brajesh. Thanks as always :-)

    Posted 9 months ago #
  7. Thanks Mercime. I am posting the list today :) will be looking forward to your tests :)

    Posted 9 months ago #

Reply

You must log in to post.