Forum Replies Created
-
AuthorPosts
-
Brook
ParticipantAlright I understand. Thanks for clarifying.
This should be very doable. I would use this snippet:
function tribe_subsequent_recurrence_default( $option, $name, $default ) { if ( $name === 'hideSubsequentRecurrencesDefault' && ! is_admin() ) $option = false; return $option; } add_filter( 'tribe_get_option', 'tribe_subsequent_recurrence_default', 10, 3 );Paste it at the top of your theme’s functions.php file, underneath the first line “<?php”. In theory it should stop hiding all of those events on the front end. Did that work?
Cheers!
– Brook
Brook
ParticipantAhh that makes sense. Well you should also checkout this snippet then:
https://gist.github.com/elimn/532aa266f1a74463509b
It could be inserted into your theme’s functions.php, at least that would be the easiest place to put it. As you can see it will add a new URL to your site: http://yoursite.com/events/?ical=1&year-feed If you hand this link to anyone they could download a years worth of events from today. If you would prefer they just download this years events instead (like all of 2016 so it will include past events as well) then I would adjust the start_date to be the start of this year instead of ‘now’.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
Brook
ParticipantI am happy to hear it! We have actually talked a lot about this feature even though it does not have a lot of votes (comparatively). It is something we are interested in adjusting just for the sake of feature completeness. We very well might be building it within the next year in spite of there being many more popular requests. For whatever that’s worth.
Cheers!
– Brook
Brook
ParticipantHowdy Pau Ros,
Do you mean you would like the default page to already have selected one or more categories to be viewed? If so, I would simply change your link to the calendar page from the current /events/ to one that contains the category information in it. This will allow users to still view other categories if they want, but the default page, the one you link to on your site, will be the specific categories.
If you need further support would you mind logging in so I can verify your support access? Or, if you don’t have/want a license (which includes a year of support) you should checkout the volunteer community on WordPress.org: The Events Calendar. It’s not the same level of support, but it’s free! We even check those forums once each week and help to the extent we can.
Cheers!
– Brook
Brook
ParticipantThank you David! I just responded to that one. I appreciate you marking this resolved. Cheers!
– Brook
Brook
ParticipantExcellent!
So what you will first need to do in your template is check if an event is recurring, and if so do the following. Otherwise procede as it normally does. The function to check for this is the aptly named tribe_is_recurring( $eventid ).
If each recurrence of your events starts and ends on the same day, then there is a super easy way to do this: tribe_get_recurrence_start_dates( $eventid ) . That will return an array of dates/times that each recurrence starts at. You can use the first and last one to get the dates of the entire range.
However, if the events end on a different day than they start, then the last date in the above array will not be correct since it’s the start date of that event, not the end. Thus it gets slightly more complicated. First you will need to get the post ID of each recurrence. I would run a query like this
SELECT ID FROM wp_posts WHERE post_parent='.$eventid.' OR ID='.$eventid.'That will give you each ID. On the first ID I would run tribe_get_start_date() . On the last I would run tribe_get_end_date() . And there you have it, the entire range of dates!
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
April 21, 2016 at 8:58 am in reply to: .ics File Does Not Work from Google .ics URL or Local .ics File Upload #1105424Brook
ParticipantHowdy Marnie,
In situations where the host doesn’t allow mass imports of any type of data you will need to bypass the host. The only real way to do is to setup a local host or testing server. If you have one of those already:
- Import the database from your live site. You probably want to set the site URL in your WP-config to match the live site and also setup that domain in your hosts file to point to the temporary server, that way your computer is tricked into thinking this is the real site.
- Import your data, in this case from the WP Import toools.
- Export the database.
- Undo your hosts file so you can see the actual live site again.
- Import the new database to your live site overriding the existing one.
Note: Your host might have the same 30MB restriction on importing databases. Typically they offer workarounds for Databases and you might have to contact them to find out what these are. If yours does not offer workarounds you should really consider switching hosts. To be blunt, if they do not any of this very basic stuff they are a bad host. Although, I suppose it still might be possible if you’re versed in SQL to split up your SQL file into a few parts and import each of them.
I wish the above options were easier to follow. Any time you are trying to import a lot of data into WordPress it becomes extremely difficult if the host doesn’t allow you to alter the max size, even temporarily. Is it possible perhaps that when they tried altering the upload_max_filesize they forgot to also alter post_max_size ? I know I have forgotten that once or twice.
Cheers!
– Brook
Brook
ParticipantHowdy kenneth.
I am happy to answer your questions. I am sorry to say there is no prebuilt/easy way to do that. It will require writing a decent amount of PHP and such to get exactly what you need. If you’re not comfortable doing that perhaps you have a programmer on hand who can? I could definitely assist with a general overview of what to do, but it will require a programmer and likely a few hours of their time to get this all working for your specific needs.
Please let me know.
Cheers!
– Brook
Brook
ParticipantHowdy Davide,
That should be possible. I see on your site the dates show above the title, it’s likely your theme is overriding them. Do you have some experience programming or altering the code of WP themes? If so I could let you know the functions you’d need to call, and from there you will have to dig through your theme’s overrides to add those functions and adapt the example code to your theme. Would that work?
Cheers!
– Brook
Brook
ParticipantHowdy Annie,
Good question. That function should be working, it has been for me. But, it does depend a bit on how many events you are trying to trash. Does it still not work if you only select a couple?
If it’s not working for only 2 even we will need to test if a “conflict” is happening, and if so narrow it down so we can find a fix for it. This guide walks you through how to test for a conflict, and then identify what is conflicting. What’s the result of this test, is there something interfering with our bulk delete that I could look into for you?
Cheers!
– Brook
Brook
ParticipantHowdy Heather,
That is an interesting problem. What view are you currently looking at where the ordering is out of whack? Do you have a link to your site I could look at?
Cheers!
– Brook
Brook
ParticipantHowdy Helena,
Is that setting currently behaving how you want for yourself, you are only worried about users who are not logged in? Or is it not doing what you want at all?
Cheers!
– Brook
April 20, 2016 at 11:45 pm in reply to: Notice: tribe_is_recurring_event was called incorrectl #1105232Brook
ParticipantHowdy Parker!
I would love to help you with this.
Are all your plugins and your theme up to date? Would you mind grabbing your system information and pasting it here? Make sure to use the ‘Set as private reply’ checkbox to protect your private information from the public. You can find the system info by going to WP Admin > Events > Settings, clicking on the “Help” tab, and scrolling down to the ‘System Information’ box. (Or by going to [yoursite]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=help) That will give me a lot of extra information to help diagnose the problem.
Cheers!
– Brook
Brook
ParticipantHowdy Mark,
This is certainly possible, assuming you don’y have so many events your server will struggle to deliver them all at once.
Basically the easiest way to do this is to first set the “Number of events to show per page” to a high number such as 999. (WP-Admin > Events > Settings) Then from the front-end list view use the Events In datepicker to choose a past date, a date before you added any events. And there you have it, all events past and present on one page. Through the use of snippets you can even set the Events In datepicker to default to this past date.
In short, you shouldn’t need Pro you’ll just need to do the above. Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
Brook
ParticipantHowdy John,
I would love to help you with this.
The calendar actualyl created a variety of iCal files, each that can be downloaded. For instance on month view you will see at the bottom the button “Export Months Events” which will download an iCal for that month. Or on the single event page you will see a similar button to download that event.
Are you trying to download the entire calendar’s events as an iCal? If so, are you trying to regularly download this file or just one time?
Cheers!
– Brook
-
AuthorPosts
