kelsangchodor
Forum Replies Created
-
Hi, Yes, I’m using the latest version. Can you check this is not a bug in the most recent version?
I have used [events_list scope=”future” limit=”1″]
But if the time is 1pm TODAY and you had an event 11am TODAY it will return the next event as the 11 am event (even though 11am has PAST)- of course this is incorrect as this is in the past. But this seems how scope=”future” works. It’s not hour/minute accurate.
Can you think of any work around? It seems problem with the events manager scope=future. Have you tested this on your server before? Does it give the same result?
Marcus suggested me installing the development version because it supports timezones and is hours/minutes accurate – I did this but we found there was still a few things to fix with that (which I reported to him)
Can you think of any other ways?
- This reply was modified 7 years, 2 months ago by kelsangchodor.
- This reply was modified 7 years, 2 months ago by kelsangchodor.
Hi,
Thanks for your reply. It’s not a caching problem.
Can I ask a question? If you wanted to find out which event is next in a certain category what code would you use?
I have used [events_list scope=”future” limit=”1″]
But if the time is 1pm TODAY and you had an event 11am TODAY it will return the next event as the 11 am event (even though 11am has PAST)- of course this is incorrect as this is in the past. But this seems how scope=”future” works. It’s not hour/minute accurate.
Can you think of any work around? It seems problem with the events manager scope=future. Have you tested this on your server before? Does it give the same result?
Marcus suggested me installing the development version because it supports timezones and is hours/minutes accurate – I did this but we found there was still a few things to fix with that (which I reported to him)
Can you think of any other ways?
Best wishes,
Chris Skelton.
Have you tried deleting cache on your browser? or have a WP cache plugin – delete the cache?
- This reply was modified 7 years, 2 months ago by kelsangchodor.
Further to my post above (please can you check I understand scope=future correctly that it’s not hour/minute accurate).
If I did have to create custom code – I’ve read your documentation on how to do this. Would this short piece of code work below to make a new future scope (future-new) so that it is hour and minute accurate.
You guys are geniuses and could see if this was correct in a moment!
function my_em_scope_conditions($conditions, $args) { if( !empty($args['scope']) && $args['scope']=='future-new' ){ date_default_timezone_set('US/Eastern'); $start_date = date('Y-m-d',current_time('timestamp')); $start_time = date('H:i:s',current_time('timestamp')); $conditions['scope'] = " (event_start_date > CAST('$start_date' AS DATE)) OR ((event_start_date = CAST('$start_date' AS DATE)) AND (event_start_time >= CAST('$start_time' AS TIME)) )"; } return $conditions; }
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Thanks for any help,
[signature removed]
- This reply was modified 7 years, 2 months ago by bdbrown.
Thank you Marcus,
I’ve tried all that and still have a problem so have sent you an email.
Thanks for your help.
Best Wishes,
Christopher Skelton.
Could you just clarify that I am understanding the future scope correctly before I start looking into custom code?
It seems that at present events_list scope=future – shows all events that were either greater or equal to today (>=) but it doesn’t take hours or minutes into consideration so you get past events displayed from today when using the future scope. It’s not hour/minute accurate and therefore past events can be displayed that have passed on the present day?
Best wishes,
Christopher Skelton.
Do you have any other ways I could work around this?
Thanks for your help.
Hi,
There is a reason. And it goes back to why I started this post many weeks ago and what all the replies have been relating to.
When you use the scope=future parameter in events_list it returns all events including the events of today. So if I had an event at 11am today and it is now 2pm it still appears in the result even though it’s not in the future. It only stops appearing once today has passed. So the future scope actually displays events on the current day that have already passed.
So, I’ve been trying to work this out because our website looks out of date when we are using scope future because the returned events are events that have already passed on the current day.
In one of your replies you said we should wait for the timezone function to be introduced because it uses both hours and minutes to decide what future posts to show. I was hoping this would fix my problem of past events being displayed when scope-future is used.
I’ve been pointed to some code to try and help by one of your colleagues but that didn’t help either.
So. I’m a bit lost to how to fix this problem. That’s how I ended up here looking into tomezones.
Thank you.
It just seems that if I was using timezones I would put the timezone I was in (UTC-5) into both the general wordpress settings and also use that that same parameter for all of my events – because they too are held in the UTC-5 timezone (Florida)?
But when I put this UTC-5 setting in the events it automatically takes off 5 hours of the start and end time straight after I publish the event…
Maybe (and probably) it’s my confusion about how this time zone will work
Hi,
Ok, I managed to install and keep settings. Thank you.
So, I’m based in Florida (UTC-5 hours) – with the new installation, all my events start times are now 5 hours less than before so aren’t correct. Would you suggest I put the timezone to UTC-0 to fix this in general wordpress settings? But then there are other plugins I use that use this UTC-5 parameter in wordpress general settings to offset the server time which is I believe is based in LA (UTC-8).
Thank you.
Ok Thanks,
One final thing – if I delete the existing installation do I lose all settings? and lose all events I’ve added?
Then, I can’t use it with my live website and only, as the name implies, for testing and development purposes?
Best wishes,
Chris Skelton.
I’m looking for this version:
There is a new version of Events Manager available. View version 5.8.1.21
Would this be under previous versions at the bottom? Under “development”
I tried installing this but it says events manager installation already exists…it seems more complicated than a normal update ??
Unpacking the package…
Installing the plugin…
Destination folder already exists. /home/bright/developmentkmcf.meditateinbrighton.com/wp-content/plugins/events-manager/
Plugin install failed.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Feature RequestHello Mr Dude (Rob?) – who gave me the code to the editable calendar.
Can I take a look at your website that you run your calendar on?
Also, do you know if the small calendar (events_calendar) has different timezone settings to the fullcalendar? I just clocked over the new year and one still says 2017 (events_calendar) and the other one is now in 2018 (fullcalendar)
Best wishes,
Chris Skelton.
I couldn’t get it to work – says update failed when i try to update plugin.
Can it be downloaded from somewhere?
Best wishes,
Chris
Tried updating to development but get this message:
Update Failed: Plugin update failed.
Maybe I’ll try doing in manually…