WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Cannot Disable Location Drop-Down (9 posts)

  1. nicholmikey
    Member
    Posted 3 years ago #

    Buddypress 1.2.8
    multisite

    I cannot disable the location drop down. I would like users to manually type their address with each event but no matter when I change the "Use dropdown for locations?" setting to the dropdown remains.

    Additional details :
    -Plugin is on network wide
    -Users seem to only be able to make events if they are a subscriber of the root blog

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

  2. nicholmikey
    Member
    Posted 3 years ago #

    Looks like em-event.php checks for that setting, but event-editor.php does not. So whenever I am editing or creating I am forced to use the drop down.

  3. nicholmikey
    Member
    Posted 3 years ago #

    I fixed this by coping the form from em-event.php into event-editor.php, event-editor.php became:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    After this I had a problem where when I make a new location in the new event form it was not saving as my location, rather it was under "All Locations". I fixed this by making a change in the em-location.php file in the classes folder, adding this to line 32 right before I save a new location.

    if($this->id == ''){
      $this->owner = get_current_user_id();
    }
  4. nicholmikey
    Member
    Posted 3 years ago #

    Now, this hard codes the non-drop down mode, but you could easily drop in a $use_select_for_locations = get_option('dbem_use_select_for_locations');

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    your code was moderated so i can't see

    note that you can modify the form using template files (see the docs) and also i believe that i updated this in the bp version as i did with the new guest event submission form.

  6. nicholmikey
    Member
    Posted 3 years ago #

    What version is the BP version? I thought Events Manager had buddypress integration build in as the version I have has a buddypress folder and appropriate templates. Right now I am using Events Manager version 4.0.82

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    i meant by bp version the template in EM forms/event-editor.php, which is what buddypress currently uses in its event pages. there's a new version, called forms/event-form.php

    i'd first try updating EM

  8. nicholmikey
    Member
    Posted 3 years ago #

    Tried updating EM but it did not resolve the problem

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    currently this isn't implemented in BP. There's a new form for guests that uses the form for locations, which you could use if you know php. otherwise it'll get implemented within a couple of weeks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic