Home › Forums › Calendar Products › Events Calendar PRO › Changing Day calendar system
- This topic has 7 replies, 3 voices, and was last updated 12 years, 8 months ago by
Neill.
-
AuthorPosts
-
July 24, 2013 at 3:36 pm #56974
artworkcreative
ParticipantHi,
I have just purchased the PRO version of the software for the client however wondered if it was possible to restrict the “day of” filter (Day view) to a selected range and also set the default “day of” filter” when the visitor goes into events as my client is running a weekend event and would like the saturday events to appear first.
Thank you in advance
Sam
July 25, 2013 at 4:23 pm #57233Neill
MemberHi artworkcreative
Thanks for dropping us a line. You have a beautifully designed site!
Would it be possible to give us an example of your scenario above? I’m not sure I understand exactly what it is you are looking for.
Neill
July 26, 2013 at 10:28 am #57348artworkcreative
ParticipantHi Neill,
Thank you for your comments.
Currently the day system (http://flavoursofherefordshire.co.uk/events/) directs to todays date and we would like it to direct immediately to the first date of the festival (2nd November) and if possible restrict the datepicker to just that weekend (Day of dropdown option)?
I would like to keep the datepicker available as the website also displays event post the festival however would like to restrict for the festival to avoid any user confusion.
Does that clarify what we are trying to achieve, if not just let me know
Thanks
Sam
July 26, 2013 at 5:59 pm #57413Neill
MemberOk I understand now. The site is promoting just the festival so there’s nothing really between now and then correct, and if there is you want the focus to be on the first day of the event?
If that is the case, I’m going to have to ask a developer to give us a hand. If you can bare with my I should be able to get a reply to you that will point you in the right direction.
Thanks for taking the time to explain the scenario and I’ll get back to you ASAP.
Neill
July 29, 2013 at 3:19 pm #57637Neill
MemberHi Sam,
thanks for your patience with this. I spoke with a developer and they believe this should be possible if you are comfortable with editing some code to do this. You will need some background with PHP to be able to successfully work with this customization. When talking to one of the developers he recommended a few steps.
So when you begin the query, to display the calendar page, you’ll want to check that it is the month view, then secondly check to see if a specific month had been requested (a user could have added a search query to the search bar, so you don’t want to remove that functionality or override it) then if not, thirdly, run a query to find when the next event starts and finally if there is indeed a future event, change the query to fetch the month that future event belongs in.
This can all be done in TribeEventsQuery() – You can check the documentation for this here: http://docs.tri.be/Events-Calendar/class-TribeEventsQuery.html This should give you an overview of where this is located in the file structure and even a sample of the file so you can get an idea what you’ll be editing before you start.
We also agreed that this kind of feature could be a valuable one in future update, so thanks for bringing it to our attention. If you have a couple of minutes it would be great if you took a look at this article for recommending features: https://theeventscalendar.com/support/forums/topic/tell-us-the-event-management-features-youd-like-to-see/ If we had that listed on our UserVoice page it would be available for other user to vote on, and would give us an idea of how many other users might be interested in this functionality.
Hope that points you in the right direction and if you run across any specific obstacles, let us know and we can try dig a little deeper for you. Thanks again
Neill
July 31, 2013 at 4:36 am #57936artworkcreative
ParticipantHi Neill,
Thank you for the information above, I have a more immediate issue to change. The change in question is that the “Day of” drop option is in YYYY-MM-DD format however my client would like this to be DD-MM-YYYY.
If you could get back to me as soon as possible it would be greatly appreciated as we wish to launch the new system tomorrow morning.
Sorry for late notice, but any help would be greatly appreciated
Thanks
Sam
August 2, 2013 at 1:33 pm #58553Rob
MemberHi Sam. It looks like this thread slipped through the cracks, for which I apologize. While this is a bit outside my technical area of expertise, know that it’s on the radar now and I’ve got someone on deck to take a look and reply shortly. I’m sorry for the inconvenience in the interim.
August 2, 2013 at 5:26 pm #58615Neill
MemberHi Sam,
I must apologies too for not getting to this in time. I will have to dig a little deeper on this one. Let me get with a developer and see if they can point us in the right direction.
Thanks Neill
-
AuthorPosts
- The topic ‘Changing Day calendar system’ is closed to new replies.
