• Resolved elduderino

    (@andiemacht)


    Hi there,

    I want to show the events of the ended day till 5 in the mornin.
    It would be easy to do so, by changing the wp-time to another timezone, so for wp the day ends 5 hours past midnite.

    But this produces a conflict with the eme-sync-fb-plugin. The Sync plugin changes the times of the imported events minus the hours of the difference to the selected wp-timezone.

    Is there a way to change that? Or any other way to get the events of the passed day shown 5 hours more?

    Thanks fo your help.

    https://wordpress.org/plugins/events-made-easy/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    Some possibilities:
    – Either make those events last 5 hours longer and set show_ongoing=1
    – or use the filter eme_event_list_filter to alter the returned list of events
    – or use the eme_get_events function yourself

    Thread Starter elduderino

    (@andiemacht)

    Hi Franky and thanks for the quick response.

    But I´m sad cause none of your mentioned possibilities helps me.

    option 1 isnt possible because it ll be to much work to change the time of the imported events.
    option 2: I dont see any possibility to solve my prob by filters

    option 3: I dont know where to use or change what?!?!

    I would be deeply grateful for any further tip.

    Thank you very much.

    Plugin Author Franky

    (@liedekef)

    With the filter you can change the end-time of the events shown on a specific page to be 5 hours longer.
    The function eme_get_events is the basic function that you can use in your own templates if you want to do php programming .

    Thread Starter elduderino

    (@andiemacht)

    Hi Franky,

    I tried to solve the prob the last days without success.
    What I want is to show the entire yesterday till 5 in the morning.

    To use a filter is not an option because some of the imported events have endtimes days or weeks after the starttime. So I need to use showongoing=0.

    I did these before by changing my blog-time to another timezone, which fits my needs. But this causes problems with the FB-Sync-Addon. Because the inserted events get the fb-event-starttime minus the difference to my selected timezone in the blog.
    If an event starts on 20:00 it is inserted with the starttime 15:00.

    I guess to solve it by php programming is the only possible way. I tried to read me into the code (I am a noob in php) and couldn´t find the function eme_get_events.
    Did you mean the eme_get_events_page function?

    However, my idea was to tell the Fb-sync-Addon in the eme-sync-facebook-events.php to add the difference of hours to the imported events.

    I found line 217 $offset = get_option(‘gmt_offset’)*3600-date(‘Z’);
    and the lines 275 to 277

    $offsetStart = strtotime($fb_event[‘start_time’])+$offset;
    $event[‘event_start_date’]=date(“Y-m-d”, $offsetStart);
    $event[‘event_start_time’]=date(“H:i”, $offsetStart);

    I tried several things to put something like ‘+5 hours’ or ‘+ 18000’ in there, but with no success.
    Am I on the completely wrong path?

    Would it be a cleaner option to tell the eme_events List to change the day at 5 in the morning instead of midnight, so I can use the correct timezone in my blog, but the entire ended day is shown till 5 in the morning?

    Thanks for any advice

    Andy

    Plugin Author Franky

    (@liedekef)

    The code you mention is from an older version … first update the sync plugin and try again, some zone offsets are fixed there.

    Thread Starter elduderino

    (@andiemacht)

    You´re right! I updated eme and fbsync and everything runs absolutely perfect without changes of the starttimes! Million Thanks for the Updates!

    EME is an absolutely perfect plugin! And your support is absolutely perfect as well! Will give it a 5 Star Rating in the next days for sure!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘show events of passed day 5 hours longer’ is closed to new replies.