Home › Forums › Calendar Products › Events Calendar PRO › I want Different date formats showing (in widget and full)
- This topic has 9 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 20, 2012 at 12:13 pm #15410
Suzan
MemberHi 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?)
February 21, 2012 at 10:12 am #15450Rob
MemberHi 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.
February 23, 2012 at 11:43 am #15585Suzan
MemberHi 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)February 24, 2012 at 11:55 am #15653Rob
MemberAh, 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.
February 25, 2012 at 7:36 pm #15697Jonah
ParticipantHi 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,
JonahFebruary 28, 2012 at 12:14 pm #15871Suzan
MemberHi 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?)
March 1, 2012 at 9:41 am #16069Jonah
ParticipantHi 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?
May 7, 2012 at 10:39 am #18760javier
ParticipantHi 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? 🙂May 8, 2012 at 5:18 pm #18905Jonah
ParticipantHi Javier,
What file did you change and where was the file located?
Cheers,
JonahJuly 7, 2015 at 6:19 am #976761Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘I want Different date formats showing (in widget and full)’ is closed to new replies.
