I want Different date formats showing (in widget and full)

Home Forums Calendar Products Events Calendar PRO I want Different date formats showing (in widget and full)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15410
    Suzan
    Member

    Hi there, I want it the widget shwoing the date as D j M,Y but in the list view and the singel event view the start date as l j F,Y (eg Wednesday 23 February, 2012) After several hours trying still not found how & where to set it. It now only takes the one setting ( I cahnged somewhere but where?)

    #15450
    Rob
    Member

    Hi Suzan. Thanks for the note; not sure I entirely understand your issue, have you changed the time/date settings under Settings -> General ? WordPress has some documentation along these lines that may help you out: http://codex.wordpress.org/Formatting_Date_and_Time. Let me know if I’ve misunderstood the request here and I can adjust my response as needed.

    #15585
    Suzan
    Member

    Hi Rob.
    Yep the WordPress date settings are oke, but for events i want different date views.
    It is that i want Eventmanager to show the date in the widget as D j M,Y (Fri 23 feb-2012) and in the biglist/eventpage view as l j F,Y (Friday 23 Februari -2012)
    So i need to change this somewhere in the phpfiles of the eventmanager, but don;t know i which php document and where …. (I have the pro)

    #15653
    Rob
    Member

    Ah, gotcha. Thanks for confirming. I’m not sure how possible this is or what it’d entail, but let me see if our dev Jonah has any ideas when he hits the forum next. If he does he’ll respond accordingly.

    #15697
    Jonah
    Participant

    Hi Susan, you should be able to do this by simply overriding the widget template located in /wp-content/plugins/the-events-calendar-pro/views/events-advanced-list-load-widget-display.php – place a duplicate copy of that in an ‘events’ folder in your theme.

    Then on line 46 you can find the tribe_get_start_date() function where you can pass the argument for your date format. And if you want to change the end date look at line 53 for the tribe_get_end_date() function.

    I hope that helps but let me know if you have any other questions.

    Regards,
    Jonah

    #15871
    Suzan
    Member

    Hi Jonah, wow great it works! But it doesn’t work 😉
    What works is the widget wants to read the copied file in the new events folder but i did something wrong in the php so it gives me a fatal error on line 49 …
    I tried some trials and errors where to put the way i want to show the date like
    e.g. Friday 23 Februari -2012 but … nope…

    I am not that smart with php can you maybe provide me the exact place and code i need to change (copy past)

    Or even easier 😉 maybe i can change it in another file to show it the long way (Friday 23 Februari -2012) in the eventlist? (& if so, : where & what exactly?)

    #16069
    Jonah
    Participant

    Hi Suzan,

    Here is what you would want to change it to:

    echo tribe_get_start_date( $post->ID, $start, 'l j F,Y' );

    Does that work?

    #18760
    javier
    Participant

    Hi Suzan and Jonah!
    I tryed that solution, just with this: ‘d/M/Y’:
    echo tribe_get_start_date( $post->ID, $start, ‘d/M/Y’ );
    But nothing change in the widget… Any observation or change to make it work? 🙂

    #18905
    Jonah
    Participant

    Hi Javier,

    What file did you change and where was the file located?

    Cheers,
    Jonah

    #976761
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘I want Different date formats showing (in widget and full)’ is closed to new replies.