• Resolved flashbytes

    (@flashbytes)


    Hiya,

    even when I have “bookings” disabled in the Events Manager settings, the BuddyPress user profile still will list the menu item “Events I am attending” (or something of the kind – I’m not sure about the correct wording, because I’m using the German translation), both via admin bar and profile>events page.

    I believe this to be a BUG. Please fix is, otherwise it is confusing for users.

    I have installed:
    WP 3.7.1
    BP 1.8.1
    EM 5.5.2

    Thanks.

    Flashbytes

    http://wordpress.org/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can modify template file at wp-content/plugins/events-manager/templates/buddypress/profile.php and then remove that area or add php condition to check if bookings is disabled

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    sample path: wp-content/themes/Your Theme/plugins/events-manager/buddypress/profile.php

    Thread Starter flashbytes

    (@flashbytes)

    Ah, I see. In that case I’d like to make it an improvement request:
    * implement a condition [if booking is enabled] show [link to attending events]

    I tried your suggestion, but it doesn’t seem to change anything. Neither within the events tab in the user profile nor within the profile menu in the admin bar.

    So for the time being I simply hid the link using CSS:
    #attending-personal-li, #wp-admin-bar-my-em-events-attending { display: none; }

    That did the trick, plus I’m not overwriting a template file that might get some changes in the near future.

    Hi flashbytes I have the same issue. Which CSS file did you stick the code into? Theme, BuddyPress? It didn’t work for me…

    Thread Starter flashbytes

    (@flashbytes)

    @celticdancer
    I dropped the definition into my theme’s style.css.

    It would be a little extreme, but in some cases it’s necessary:
    use “!important” in case it’s overridden by another definition.
    #attending-personal-li, #wp-admin-bar-my-em-events-attending { display: none!important; }

    If you’re using Firefox, I recommend using the extension “Firebug” to look at the html and css structure.

    @flashbytes Thanks for taking the time. Alas it didn’t seem to work for me my theme is relying on so many different CSS files…

    I instead went to wp-content/theme/Your Theme/plugins/events-manager/buddpress/profile.php and deleted everything after ” <h4><?php _e(“Events I’m Attending”, ‘dbem’); ?></h4>” and that did it for me.

    I am greatful for this helpful fantastic community. Hopefully when I get better at PHP, I’ll be able to give back to this forum!

    Thanks again flashbytes 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘BUG: disable booking functions in BuddyPress (also in user profile)’ is closed to new replies.