Making bp-events work on BuddyPress 1.2 (with invites working)

There is a lot of chatter about wanting the plugin creator to update bp-events to work with Buddypress version 1.2, and so far it hasn’t happened, however, this guy has ported it for us so kindly:

http://codewarrior.getpaidfrom.us/2010/04/21/buddypress-event-plugin-for-1-2/

Just in case his site goes down or something, I’ll list the plugin here: bp-events-dave-aubin-1-2.zip.

== Installation ==

- Unzip package
- upload “bp-events” folder into “plugins” directory
- IMPORTANT: move “events” folder to your active theme (if using default theme, use “bp-default”)
- network activate and you’re done!

One thing I’ve noticed is inviting friends to events is broken. Was broken in BuddyPress 1.1 too. I wrote an article about this before. For BP 1.2, made this patch. It patches the wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php file to make inviting friends work.

http://www.koopman.me/src/buddypress.bp-events.patch

Here’s how to apply it:

cd wp-content/plugins/buddypress;
patch -p1 < /path/to/buddypress.bp-events.patch;

If you can’t run patch, just read the patch and make the edits to the file by hand.

UPDATE: From this page, One more thing, need this for BP 1.2.5+ (this took me awhile to figure out):

At about line 278 of bp-events.php where it says:

add_action( ‘plugins_loaded’, ‘events_setup_nav’ );
add_action( ‘admin_menu’, ‘events_setup_nav’ );

ADD THIS just after:

add_action( ‘bp_setup_nav’, ‘events_setup_nav’ );

And that’s it, should be working. The unique thing this post provides is the patch to make the event invite functionality work. Everything else you could have found elsewhere.

Frankly, I’m a little surprised that bp-events invite functionality is not a bigger deal. Can’t find anyone online complaining about this. What gives, is it just me? If you have bp-events installed, with ability to invite friends, please leave a comment and tell me how.

Dave.

About Dave Koopman

Started with Go Daddy in 2002 as a software developer in Email. In a team environment, we built Web-Based Email and Online Group Calendar. Since, positions include: Manager of Dedicated Hosting Development, Systems Architect, Manager of Mysql Operations, Email Architect, Chief Technology Officer, VP Product Development and most recently Chief Scientist. This is a personal blog and opinions are of my own and not necessarily that of my employer. I also author on Inside.GoDaddy.com. Connect with me on Google.
This entry was posted in Code, Linux, Research and tagged , , . Bookmark the permalink.

5 comments on “Making bp-events work on BuddyPress 1.2 (with invites working)

  1. I need your help. I agree the events is a deal breaker for me on my website. I followed your instructions, I added the bp-events folder. I added the events folder to the default theme folder.

    Please help.

  2. You can skip the patch if you don’t care about invites working, but you need to do the part about “At about line 278 of bp-events.php where it says:….”? That’s the kicker, you need to make that edit for it to work.

    Other things it could be: 1) file ownership, readability by the web server. 2) Before you start, properly remove completely any previous installations of buddypress, including the old buddy press themes.

  3. dominik on said:

    Okey. But topic add in forum don’t work..

  4. Sorbari A on said:

    Thanks for the great article. Been struggling for a while now to get event on my buddypress site but this article made it a breeze.

    I just have one problem. I I can’t patch the ajax.php file to get the invite to work. I’ve tried everything. Is it possible for you to make the patched ajax.php file for buddypress 1.2.7 available for download? That would really be helpful.

    Thanks a lot again for the article. It was most helpful.

  5. DaveK on said:

    @Sorbari one of these days yes…. so sorry, been swamped at work. I’m using buddypress on an intranet site and we’ll eventually get around to updating it and I’ll need to update this patch then. I promise when I do that I’ll come back and update this post. Sorry I can’t help right now.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.