Home › Forums › Calendar Products › Events Calendar PRO › "This event has passed" fix?
- This topic has 8 replies, 5 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
December 18, 2011 at 9:44 pm #12502AdamParticipant
I am using a customized/overridden single.php so maybe that matters, but I noticed a line of code that I understood the purpose of but that seemed to be (in reality) not doing anything:
if (tribe_get_end_date() > time() ) { This event has passed. }
Anyway, I am not really a programmer but just a designer who messes around with PHP until it does what I need. So, I may be off base. But I got the intended result on my site by changing that to:
$end = tribe_get_end_date();
if ( strtotime($end) < time() ) { This event has passed. }(Note: I can’t get the code to paste in right with everything intact so I edited it to at least get across the basic idea. How are you supposed to paste in code? Thanks!)
December 19, 2011 at 6:33 pm #12522RobMemberHmm; not sure what’s up with this, but I can get our developer Jonah to take a look. If you want to paste the code in using pastie.org or something similar (sorry…the forum will eventually take code but doesn’t yet), I can have him check it out from there to see whether this is a bug in the code or if there’s a logical explanation for it.
January 23, 2012 at 9:36 pm #13923MikeParticipantJust found this thread after encountering the same issue. This is still a bug in 2.0.3.
Can you please add it to the list for 2.1.
January 24, 2012 at 11:10 am #13976RobMemberThanks Mike. Are you also using a customized single.php, or is this happening out of the box as well?
January 24, 2012 at 11:21 am #13988MikeParticipantIt’s customised *now*, but the bug is in the out of the box version too.
January 24, 2012 at 11:40 am #14019RobMemberAlright, no prob. Thanks for confirming. Let me see if Jonah has any ideas.
January 24, 2012 at 11:49 am #14027MikeParticipantNo worries – I’ve worked around it by using the solution in the first post, but I would like to see it addressed in 2.1.
January 24, 2012 at 10:34 pm #14056JonahParticipantHi guys,
You’re right, the out of the box code does not work. We will file an issue and get this fixed ASAP. Thanks for the report!
July 3, 2015 at 5:00 pm #975384Support DroidKeymasterThis 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 ‘"This event has passed" fix?’ is closed to new replies.