WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Events Manager] - Disable Events on Buddypress (11 posts)

  1. elmediano
    Member
    Posted 2 years ago #

    Hi all!

    I'm running:

    - WP 3.2.1
    - BP 1.5
    - Events Manager 4.303

    I'm building a site that uses Events Manager normally to display Events. We are not using the booking system or anything, just the info and calendar.

    At the moment, we don't require the use of Events on Buddypress, we will in the future though.

    So, my question is: Is there anyway to disable the Events Manager on Buddypress?

    Cheers

  2. Marcus
    NetWebLogic Support
    Posted 2 years ago #

    if you add this to your theme functions.php file it think it should work:

    remove_action( 'bp_init', 'bp_em_init' );

  3. elmediano
    Member
    Posted 2 years ago #

    Absolute legend! ;)

    Works better than my CSS cheat :-P

    #events-personal-li { display:none;}

    Thank you Marcus, really appreciate it.

  4. karl19
    Member
    Posted 2 years ago #

    Thanks, just what I was looking for!

  5. KatyP
    Member
    Posted 2 years ago #

    Thanks! My BP Group Event link wouldn't let me add group events..it just took me to my error page.

    It would be nice to know how to make it work, but, in the meantime, this snippet works great!

  6. Marcus
    NetWebLogic Support
    Posted 2 years ago #

    if you remove that, then you shouldn't be able to do anything in BP.

  7. KatyP
    Member
    Posted 2 years ago #

    Strange. The other features seem to still work.

    The best thing would be if "Events" did something besides take me to an error page. I do have an Event posted, so I would think that would show up. Or maybe it would give me the option to add a new event. But it doesn't do anything. I haven't found any BP settings in EM's settings page.

    Does anyone know how to make the Events link actually do something?

  8. elmediano
    Member
    Posted 2 years ago #

    Can't remember of by heart and might be wrong but I think there's a folder you have to copy from the plugin directory to your theme?

    Not sure as I can't check at the moment so sorry if I'm just making it up! :P

  9. KatyP
    Member
    Posted 2 years ago #

    Oh man! I'm going to wait until you remember or somebody else confirms before I start moving folders around. I already break my site enough as it is!

    Event Manager does have buddypress files. I just figured, since the rest of the plugin is so well thought out, that they probably wouldn't require me to guess how to make parts of it work.

  10. KatyP
    Member
    Posted 2 years ago #

    Okay, okay, it was my fault. I've been having some database problems and just finished moving everything to a new database the old fashioned way.

    And the Events link in BuddyPress works! :D

  11. angslycke
    Member
    Posted 1 year ago #

    Hi!

    I'd like to disable the BuddyPress integration of Event Manager for a while during my development process and have tried adding:

    remove_action( 'bp_init', 'bp_em_init' );

    to my functions.php file but the Event tabs still show in the groups and on the user profile pages. Now, I'm a beginnger with PHP and might be doing something wrong. Do I need to add the above code to a function to activate it? Any other suggestions? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic