Events Made Easy
[resolved] Feature request - new BBPress topic on Event creation (8 posts)

  1. AdventureRidingNZ
    Posted 1 year ago #

    Hi Team

    This is a feature I'd really like to see, when a new Event is created in EME a topic is created and linked to in BBpress, if installed.

    EME is a great plugin, and the Front End Submit is really useful on a community site, having the ability to join the Calendar into BBPress would be really useful in making sites with both plugins more cohesive.

    Thanks for all your efforts.



  2. AdventureRidingNZ
    Posted 1 year ago #

    The ability to enable WP comments on an event would possibly make this work as BBPress can as an option replace the WP Comments functionality on pages and posts, so in turn might work the same for WP comments on an events

  3. Franky
    Plugin Author

    Posted 1 year ago #

    The available hooks can help you there:
    eme_insert_event_action and others, see http://www.e-dynamics.be/wordpress/?cat=41

    Based on that, it shouldn't be too difficult to create a bbpress topic based on it.

  4. AdventureRidingNZ
    Posted 1 year ago #

    I'll have a look but I'm not a developer so it's likely to be beyond my abilities.

  5. Franky
    Plugin Author

    Posted 1 year ago #

    If you can provide the bbpress function to create a new topic, I can give you an example to start with.

  6. AdventureRidingNZ
    Posted 1 year ago #

    The function is bbp_insert_topic

    Code with arguments:

  7. Franky
    Plugin Author

    Posted 1 year ago #

    Based on this: http://www.e-dynamics.be/wordpress/?topic=trigger-a-post

    your code in your functions.php would be something like this for starters, change the 'post_parent' (seems to be the forum id, but might not even be needed) and 'forum_id' to your liking:


    function make_eme_bbtopic($event_passed) {
    $new_post = array(
    'post_title' => $event_passed ['event_name'],
    'post_content' => $event_passed ['event_notes'],
    'post_parent' => 0, // forum ID
    $new_post_meta = array(
    'forum_id' => 0

  8. AdventureRidingNZ
    Posted 1 year ago #

    That works pretty well thanks. It shows up in the correct forum section with all the content.

    The new thread shows up in the 'Latest posts' sidebar widget, but not in the main body of the page, no idea why that would be.

    I might have a play and see if I can make it post a link back to the Event listing.

    I had to change both the 'post_parent' and the forum_id to the same forum_id to make the forum post appear in the right place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Made Easy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic