Forum Replies Created
-
AuthorPosts
-
Brook
ParticipantAwesome! We try to keep API changes to a minimum. But sometimes they must be made and that means themes might need updates. Glad to see Advocator was able to update the theme so quickly.
– Brook
Brook
ParticipantThat is excellent news! Thanks for reporting back. That will be of great help to anyone else using the Workality Premium theme. Cheers!
– Brook
August 14, 2014 at 10:52 pm in reply to: Subsequent Recurring Events are 7 hours later than actual time #671397Brook
ParticipantThat is exciting. Kevin you are awesome!
– Brook
Brook
ParticipantWe have been having email issues today. I did not actually get your email yet. Our host is looking into the problem.
I don’t think the email woes will delay us a bit though. I was referring to modifying your current WordPress Template. It looks like you are using a Genesis theme of your own design. Wherever you want those three widgets to show up, instead of creating a single widget area you can create three. If you have create a custom template this will be the easiest option by far. Once you have three widget areas, you can them code in the surrounding HTML right into your template, and thus specify any title and link you please.
If you prefer to create a theme override for/widgets/list-widget.php you could do that too. I think the best strategy for that will be to include a widget header right inside of the template. First you should check if $link_to_archive === true, which would indicate that the current widget is linking to a category. If so, you would want to get the proper name for $term[0] which will be the name of the category. Output that name as a title and wrap it in a link with the href being $link_to_all. This will all make a lot more sense when the file is open. 😀
Hopefully that helped! Let me know if I can be of further assistance. Thanks!
– Brook
Brook
ParticipantSince this topic has gone a while without a response we are archiving it. Please direct any future question to a new topic. Thanks!
– Brook
Brook
ParticipantNot quite. This was an example of how to create a taxonomy filter. The main goal was to demonstrate how easy it is to add a filter. Basically you just create a class which extends TribeEventsFilter, then instantiate it. The one line instantiates at the bottom instantiates and assigns it a name and slug.
If you want to create a filter based on additional fields you will need to modify or otherwise mimic that example snippet. The function setup_query_args() is where you will your put your extra query params for when the filter is actively filtering events. The function get_values() returns the array of values that the user can select for this filter. Finally, the function get_type_field() allows you to craft the HTML elements output by the filter front end. Each element will be populated with the values from get_values(). Combined these functions amount to a custom filter. Of course, it will be up to you to fill each of those functions with your desired logic.
I am very keen on making a full tutorial about this in the future, to make it easier for those who are not versed in PHP. Furthermore we also want to add Additional Fields to the filterbar, as noted on that feature request. Please vote that up if you would like to see it happen. In the mean time though, it will require coding as outlined in the above paragraph.
Does that make sense? Let me know!
– Brook
Brook
ParticipantOh, my mistake. When you said Event Espresso my mind blanked and I thought you were referring to the Espresso Theme with events integration. Thank you, Chris.
In that case, the logical first step would be to contact the plugin developer, not the theme dev. Event Espresso recently added support for The Events Calendar, which we are stoked about. But, it is possible there are still some kinks to be worked out. This will be the most permanent solution.
There is a second optional step: one of our users also had some success with making a modification to our plugin. Here is his explanation of the modification. I do not generally recommend modifying our plugin, as those modifications are lost with each update. However, if it works for you then it will immediately fix the issue while we work with Event Espresso to look into this and see about a long term fix.
On that note I have been talking with my manager and the developers about this today. We would like to reach out to Event Espresso ourselves and see what we can do. Our first step is to recreate the problem. None of our staff has access to Event Espresso, so we will need that. Then assuming we can recreate the problem we can figure out a way to fix it. Again, it is likely that this relates to the date_default_timezone_set(), in which case we are already working towards a fix. But, I would need to confirm that is the problem.
Is that all clear? Those steps work for you? Let me know!
– Brook
Brook
ParticipantHowdy chrisdm,
Ooops! I am sorry, I mean to get back to you on this yesterday. Please pardon my delay.
I understand now. Each calendar is a category. It sounds like you want to do is have a List of the upcoming events for each calendar displayed as a widget on your site, and for that widget to link to the calendar and have a matching title. This part can be done very easily. Simple go to WP Admin > Appearance > Widgets, and add the Events List widget to your theme area. Under filters, select the category you want it to show. Under title, type in the category name. Save. You will notice on the front end it has the proper title, and at the bottom a link to “View more…” which takes you to that specific calendar/category.
If you require that the title itself links to the category, you are in for a harder time. It is going to require some PHP dabbling since WP Widget titles are not mean to be links. If you want to turn one into a link, you will have to create a custom theme for it. The easiest way is probably to have a widget area dedicated to each widget, and a hardcoded title/link above each. Thn when you add the widget, just leave the title blank input box so it does not output that on the frontend in addition to your hardcoded one.
Does that make sense? Will that work for you? Please let me know. Cheers!
– Brook
Brook
ParticipantHowdy Colin,
That is funky. My first suspicion would be the same as indrakubicek, a theme override.
The fact that past events is working fine, as is map and photo views tells us that there is nothing likely wrong with the queries. Your sites seems to be free of JS errors. Rather, it seems like once TEC loads your upcoming view it outputs nothing.
If you have already checked for theme overrides, the next step would be your plugins. First of all, are they all up to date and the Tribe ones running matching versions like 3.7?
If that does not help it is possible that something has corrupted our plugins. To test this, could you remove them and try redownload fresh copies? Before you do anything I strongly recommend that you make a backup of WordPress, particularly your database. Once you are satisfied with your backup situation, could you please manually delete the Events Calendar plugin folders from /wp-content/plugins/? Once deleted, this guide will walk you through redownloading our plugins. Unzip the content of each plugin into your plugins folder. Does that fix things for you?
– Brook
August 13, 2014 at 12:48 am in reply to: Subsequent Recurring Events are 7 hours later than actual time #656718Brook
ParticipantThank you for posting Kevin! That is a big help.
We are indeed discussing a change to our plugin that would render this issue moot. In truth, it does not seem like a good idea for any WP plugin or theme to change those systemwide PHP settings from their defaults. Plugins which do those sorts of global changes tend to cause conflicts. But, on a very rare occasion it can be necessary so perhaps the theme dev was forced into it.
We of course want our plugin to be as compatible as possible. Sometimes that involves reinventing a wheel, so that when someone modifies the original wheel we do not get unexpected results. I am not sure yet what the devs and such will decide. But, the possibility of us being able to fix this does exist.
Please let us know if that fix worked cfcpa. Cheers!
– Brook
Brook
ParticipantThank you Michelle for your thorough testing there. Good to know Event Espresso can cause this problem.
We have seen a random smattering of plugins/themes that have this problem lately. So far they all have one thing in common, they set the default timezone to something other than UTC, usually via PHP’s date_default_timezone_set(). It is a bit of a strange thing to do as it changes this system wide for all PHP code, including other WP Plugins like ours.
On our end we are looking into ways to maybe just ignore this setting in a future version. So that even if a third party plugin is not necessarily playing nice, you will not experience glitches.
You might inquire of the theme author and ask them if they are changing PHP’s timezone. If so, would it be possible to not do that, and instead implement a more local scoped timezone option (one that does not modify global settings)? That is probably a good idea anyways. Because if another plugin on the same system also modifies timezone, then the Theme will be the one that ends up experiencing glitches. That is no good either. Not modifying these settings is usually possible, and is a great way to make your code broadly compatible with other themes and plugins.
Does that all make sense? Unless you are skilled with PHP, it probably makes sense for you to leave and modifications to the theme developer. Even if you are a PHP savant, it might make more sense to have the original dev take a look. Let me know if I can be of further help. Cheers!
– Brook
Brook
ParticipantHowdy workforcesoftware,
Sorry it took me a bit to respond. I was discussing this topic with the team and then I forgot to get back to you.
We decided we really want to come up with a tutorial for accomplishing this that shows the best and easiest way now that the API has matured. But, in fairness that could take a while. We have a number of tutorials we are working up right now.
The code that Barry shared adds a filter to the “Available Filters” in WP Admin > Events > Settings > Filterbar. However,now you have to add lots of logic to get that filter to do more than just show up. There is an easier way. The TribeEventsFilter class’s __construct() function will take care of that for you. Simply extend it, then pass it the name of your filter and the unique slug ($_GET key) you want it to use. Here is an example. Notice the last line.
Hopefully this makes a lot more sense with the example. That filter is tested and working. I included a few comments in there to help explain it some. Let me know if i can be of further help. We do want to make this much easier in the future by having a full tutorial. Cheers!
– Brook
Brook
ParticipantHowdy dgrcommunications,
I am so sorry! I missed this topic on my pass yesterday. Normally we respond to topics from Friday by Monday afternoon at the very latest. 🙁
What you want is very doable. Have you ever created a WP Page Template before? It is quite easy to do. Copy your current Page Template to a new file. You might name it something like “custom-events-template.php”. Then grab the following code (more details in the above link if you need) and paste it on the second line of that file, right under <?php
/* Template Name: My Custom Page */Now find the line which outputs the title. It probably looks something like this <?php echo the_title(); ?>. Change that to “Events” and you are good to go.
Now go to WP Admin > Events > Settings > Display, and click the drop down for selecting a Template. If you left your new template name as “My Custom Page” it will appear here with that name, or whatever else you decide to call it. Select it, click Save, and there you go.
Will that option work? Does that all make sense and answer your question? Let me know. I am happy to be of any help I can. Cheers!
– Brook
Brook
ParticipantHowdy Andrew,
Thanks for updating the topic. I am glad you feel free to bring out pain points like this, it is very helpful to us when crafting the UI.
To offer some insight on why that option is not there, and I believe has been missing since 3.4: We are trying to strike a balance between putting frequently options in conspicuous locations, and cluttering the UI. In this case Trash Series does not seem to be used as often, and it was thus decided it did not merit a place in the rollover quick actions. You can relatively quickly trash an event series by click “Edit Series”, the clicking “Move to Trash”. Or the first event, by clicking Edit Single > Move to Trash.
Now that you know there is a way to trash the first event, or the entire series, in two clicks, what do you think? It is not as discoverable as I would like. If you feel it can be improved, mind sharing how?
Let me know if you have any more questions. Thanks!
– Brook
Brook
ParticipantHowdy marcotungerichunddu,
That is a fair question. This is one of our tougher items to style. Here is the code I’d use:
body #tribe_events_filters_wrapper ul, body #tribe_events_filters_wrapper ul li { background: #000; color:#fff; } #tribe_events_filters_wrapper .tribe-events-filter-group label{ border:none; } /* If you want to remove the white border, keep this line */ body .tribe-events-filters-horizontal .tribe-events-filter-group { border: none; }Ordinarily we do not provide the code for modifications like that, because it is outside our our scope of support. But, I did not want to leave you high and dry here. I hope that the above code helped. You have an awesome looking site. Let me know if you have any more questions. If not, would you mind marking the topic resolved? Cheers!
– Brook
-
AuthorPosts
