Welcome, Guest
Username: Password: Remember me
JO Facebook Events Pro

TOPIC: Getting rid of yesterdays event ?

Getting rid of yesterdays event ? 6 years 4 months ago #6342

Ah, sorry, I made a typo. Please try again.
The administrator has disabled public write access.

Getting rid of yesterdays event ? 6 years 4 months ago #6343

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
We have checked and not see any problem www.kulttempel.com/ please help me check it again
Best regards
Bach Pham
The administrator has disabled public write access.

Getting rid of yesterdays event ? 6 years 4 months ago #6345

Problem is that it is a club and events go from 10 in the night until 5 in the morning. So the event from the day before (going til 5 the same day) ist still on the top of the list although it is over. You can't see any error becaus the event from 12/26 ended before midnight.

I need code to check if an event is not only finished filtering the date but the TIME also.
The administrator has disabled public write access.

Getting rid of yesterdays event ? 6 years 4 months ago #6346

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
We have fixed this problem and i think now it work fine. Please help me check again it
Best regards
Bach Pham
The administrator has disabled public write access.

Getting rid of yesterdays event ? 6 years 4 months ago #6347

Can You please tell me what You did ? I have to do that change on another event-calendar also and I want to be able to do that myself. Screenshot of today (12/29) in attachmnent.
Attachments:
Last Edit: 6 years 4 months ago by Carl-Gerhard Wieners. Reason: Adde Example
The administrator has disabled public write access.

Getting rid of yesterdays event ? 6 years 4 months ago #6348

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi
Please help me find and open file: modules/mod_jo_facebook_events_pro/tmpl/default.php and go to line 63->68 and change
if(@$fbevent["end_time"] !=""){
$fb_ev_endtime = intval(date('Ymd', strtotime($fbevent["end_time"])));
}else{
$fb_ev_endtime = intval(date('Ymd', strtotime($fbevent["start_time"])));
}
$datenow = intval(date('Ymd'));
To
if(@$fbevent["end_time"] !=""){
$fb_ev_endtime = intval(date('YmdH', strtotime($fbevent["end_time"])));
}else{
$fb_ev_endtime = intval(date('YmdH', strtotime($fbevent["start_time"])));
}
$datenow = intval(date('YmdH'));

Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.142 seconds