• Resolved Arijuz

    (@arijuz)


    Hi everyone,

    i like to say thank you for this great plugin.

    I’m running community events plugin with a front end for subscribed users in my Childtheme. Themain Goal is, to get a view with “24h selects”, but whatever i tried … i couldn’t manage it.

    First of all, timeformat is setup right. Inside Dashboard the form to add a new Event shows up totally correct (24h format, no am/pm select). In frontend I still got the options looking like “12h format, select am/pm”

    1. Question:
    1. Could it be done by simply cloning the form inside Dashboard to a page? Is this a good choice?

    If yes, let me know how to do this. If not, i would go further by thinking of changing the form selects with jquery:

    1. customize the certain form inside my childtheme
    2. create new select-options with 24 hours mode
    3. make the original “event_start_ampm” and “event_end_ampm” <select style="visiblity:hidden">
    4. pass the 24h selection onchange correctly to the original (now hidden) “event_start_ampm”/”event_end_ampm” option-values via jquery

    A whole lotta text and thoughts, but… Please help me finding a solution.

    Thank you very much!

    https://wordpress.org/plugins/community-events/

Viewing 1 replies (of 1 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    The community events plugin was not designed to allow hours to be displayed in 24-hour format. The code could probably be changed to accomodate this but it would take a fair amount of time to implement all of the necessary changes. I will add this to my list of user requests and will consider implementing it if I get a lot of requests.

    In the mean time, you could indeed write a bit of jQuery code to retrieve the time string, convert it to a 24h string and display it back.

Viewing 1 replies (of 1 total)
  • The topic ‘AM-PM select from "new event form" in 24h view’ is closed to new replies.