Forum Replies Created
-
AuthorPosts
-
August 15, 2015 at 12:42 pm in reply to: Map View shows one venue by St Louis (wrong) it's correct on actual event page #996330
George
ParticipantHey @th,
Thank you for your persistence with this issue, and for sharing what you found to be the problem here – that behavior is very odd!
I’m sorry to bear the bad news that this is unfortunately an issue that we can’t really do much about at the moment. The Google Maps API itself has changed a bit and we’ve identified numerous types of odd, inconsistent behavior with our Map View. Some of it is because of the API itself, but some of it is because of our implementation of the API.
Fixing these Map View inconsistencies is one of the major things we are focusing on for our forthcoming 4.0 update, but I don’t know when that will arrive for general use 🙁
Until then, I’m sorry to admit, there’s not much that be done here.
I will pass this specific problem along to the developers and, who knows, maybe some sort of hotfix solution can be put together just for this odd issue – however, this is very unlikely and I cannot promise anything. I just want to you to know that we’re at least trying to fix this as fast as possible.
I’m sorry for the bad news here, @th. Please let me know if you have further thoughts on this or if there’s anything else I can help with.
Sincerely,
GeorgeGeorge
ParticipantHey @vancouverfamily,
Sorry to hear about these issues! I checked out the link you provided and found the following JavaScript there, specifically:
TypeError: s5.substring is not a functionThis is indeed coming from code related to the HTML5Maker banners, it’s coming from code you seem to have pasted into a text widget specifically.
Unfortunately, the only things I can think of that would cause banners to work on some pages, but not on ones generated by The Events Calendar, are theme-related things. That seems to be the case in fact – for example, in both locations the banner is wrapped in a div tag with the class “top-banner-advertisement”. However, on the markup for the banner on your site’s homepage, this div is wrapped in a section tag with the id “banner-top-block”, but this section is not found around that div on the Calendar pages…
That may seem like an irrelevant inconsistency, but I don’t know how HTML5Maker works and how it’s using the layout of your site.
So with all this being said, one thing you can try doing is going to Events > Settings > Display in your wp-admin, and trying all the different various options for the “Events Template” setting. Change it from what it is now, save the settings, and then drag a text widget with your code back in place in that banner area – then check out the front-end of the site and see if anything is improved.
If not, then unfortunately the next best step I can recommend is to contact support for HTML5Maker directly and inquire about this. The Events Calendar itself does not have any code that will prevent any of the core components for these banners from working: it won’t limit the functionality of widgets, iFrames, or HTML tags in any way. So there may be a problem with the HTML5Maker code itself, and/or with the handling of widgets or loading of JavaScript from your theme or something.
There’s a lot of information here but I hope it helps – let us know if that’s the case! And if you try out various options for the “Events Template” setting, let us know if any of the page templates work better than others.
Thanks!
GeorgeGeorge
ParticipantI don’t know of any such plugin, unfortuanately 🙁
August 14, 2015 at 4:03 pm in reply to: Mark a "featured event" at the top of the List view? #996204George
ParticipantThanks for posting your solution Peter! Very cool of you to do so.
Best of luck with your site! 🙂
August 14, 2015 at 1:41 pm in reply to: Creating mutiple templates for events and list organisers & venues #996165George
ParticipantHey Chris!
There are a few questions here, obviously, so I’ll address them in order to try and maintain some organization:
Defining Exhibitions
If so, then my only question thus far is what your recommendation for defining what an Exhibition is?
This is indeed an interesting use of the Events and you’re right about there being some unique challenges to ensuring that Events and Exhibitions are kept separate.
I think you’re also right, though, about simply using an event category to label which “Events” are really “Exhibitions”. A custom checkbox would work as well, and all that, but an event category would work just as well and is already built.
The tricky part is not labeling what things are exhibitions instead of normal events – it’s keeping these exhibitions out of Events displays, and ensuring the “Exhibitions” category doesn’t show up alongside other categories used for “Events”.
In my opinion this should fortunately be easier to pull off than you might expect – each Event Category has an ID, and so anywhere where Event Categories are displaying on your site you can simply filter out the ID of the “Exhibition” category so it never displays. Similar, any place on your site where “Events” are displayed and you do not want “Exhibitions” to be included with them, you can simply run queries or filter existing ones with the pre_get_posts() WordPress filter to exclude items in the exhibition Event Category.
To learn more about filtering out items in queries by taxonomy, check out the WP_Query codex page and read through the parts about the tax_query parameters available to you → https://codex.wordpress.org/Class_Reference/WP_Query
Customizing Organizers
Will adding an image and hiding the labels for artists (organizers) be possible without affecting core?
You’re right about this set of customizations being more straightforward – you should indeed be able to customize the Organizers post type extensively without modifying core code. You can use add_post_type_support() to add thumbnail support to Organizers, which you can read about here: https://codex.wordpress.org/Function_Reference/add_post_type_support
And you can change the labels for “Organizer/s” to “Arist/s” like this:
add_filter('tribe_organizer_label_singular', 'change_single_organizer_label' );function change_single_organizer_label() {
return 'Artist';
}add_filter('tribe_organizer_label_plural', 'change_plural_organizer_label' );
function change_plural_organizer_label() {
return 'Artists';
}
Custom Templates for Listing Specific Things
This last section addresses a few of the comments in your post about custom templates – custom templates for Venues, like in your last question, custom listing for “Exhibitions”, etc.
The general ideas are the same for all such “custom listing templates”, and you can learn most such ideas in our Themer’s Guide here → https://theeventscalendar.com/knowledgebase/themers-guide/
You can get more involved, if need be, by writing custom queries for venues or Artists or something, or can modify queries with the aforementioned pre_get_posts() filter in WordPress, which you can learn about here: https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
If you want several different templates for various types of things on your site, then this is a bit complex for the support forums but you can get fancy with WordPress’ template_redirect hook and manually route different queries to different custom templates – read more about the gist of this hook here: https://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect
There’s a lot of information here but hopefully this helps – let me know what your thoughts are here and if we can help with anything else.
Cheers!
GeorgeAugust 14, 2015 at 1:20 pm in reply to: Map View & Search Near only returning selected results (venues ommited) #996157George
ParticipantHey @toottootdesign,
First of all, thank you for the amount of detail and information here!
Second of all, apologies for the delayed response – I had to unexpectedly travel a bit on Wednesday and Thursday and am catching up on everything here now on Friday. Real sorry about that!
And thirdly, at last, on to your actual issues here:
There is some unfortunate news I have to bear here, but there is a possibility of some good news too.
The bad news is that Google’s Maps API has recently been behaving less consistently than it used to. Not for bad reasons – the API is simple changing and evolving and our code isn’t 100% up-to-date with those changes yet. We’ve recently been able to reproduce some inconsistent behavior with our Map View filtering, and I learned that one of our biggest planned items for the forthcoming 4.0 release of The Events Calendar is an overhaul of our handling of the Maps API from Google.
So that news is a bit of a bummer, and if the behavior on your site does end up being the result of some insurmountable oddness from the Google API itself, then there’s unfortunately not a whole lot that we can do…
…However, there are some venues on your site that don’t seem to have their Latitude and Longitude coordinates accurately generated at the moment, so while there are some general inconsistencies with the Google Maps API, the issue for now on your site may not be resulting from that – it could just be the lack of proper coordinates.
An example of one of these venues without the coordinates is this one: http://www.australianceramics.com/venue/claypool/
I reached out to a developer on our team and he suggested the following steps to try and regenerate accurate coordinates for the venue:
• Go to edit the venue in your wp-admin.
• Slightly modify the street address to something incorrect/gibberish, and save the the venue.
• Then, change the address back to the proper, real address and save again.If Google is not rejecting API requests from your server for some reason, then this just update the coordinates with correct ones.
After doing these steps, take a break for a bit, a few minutes at least, to let the changes propagate and hopefully if you then try the Map View later that Venue will appear.
I hope this information is helpful and that these steps work for you – feel free to repeat them for any venue that you notice doesn’t show up where it would make sense for them to.
Let us know what you find!
George
George
ParticipantThank you for this information @Radek! I wasn’t able to learn as much as I hoped from this, however, so I’m curious – can you run through the troubleshooting steps here? → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
Those steps may seem tedious but they’re usually much faster to work through than it seems – and you can start with your theme first instead of deactivating all the plugins one-by-one, as the theme is the most likely source of the odd behavior here in my opinion.
Let us know what you find!
Thank you,
GeorgeGeorge
ParticipantGlad to hear this John, thanks for the update – and apologies for my outage there for a bit, had to travel on somewhat short notice.
Brian’s reply here has seemed to help you resolve your issues with the keys validating and such – can you confirm that? If so, I’ll close out this thread 🙂
Cheers,
GeorgeGeorge
ParticipantHey @pragmaticweb,
Thank you for sharing that link!
One of the things Geoff recommended in that thread was to run through our troubleshooting steps here → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
Did you ever get to do that, by any chance? If not, can you give those steps a shot? Basically, once your site is in the state where a default theme is active and only the Tribe plugins are active, all other plugins de-activated, make a new test event (with valid data and everything, of course, for testing purposes) and give it some time to propagate on Google – then try searching for that event and see if the rich data issues here are any different.
Thank you!
GeorgeGeorge
ParticipantHey @Laughmasters,
Thanks for the update here – unfortunately, the only solution here is the second example I gave in my reply above: creating one event that starts on the first Monday at 6:30pm and goes to 9pm 8 Mondays later. This will be one eight-week event, that spans that entire two-month period.
Let me know if this is sufficient for your needs. I am sorry about the lack of options here but if the class is 8 consecutive Mondays, then our Weekly recurrence schedule for an event that happens every Monday normally makes sense for users. Every Monday there is a class – and with our recurrence pattern, every Monday there is an event to represent that class.
But these are indeed all separate events – all part of on recurrence series, yes, but still separate. So if this is not what you want, the aforementioned solution of one event spanning 8 weeks is the only other alternative.
Cheers,
GeorgeAugust 11, 2015 at 12:05 pm in reply to: Slow Loading Speed on all Pages Using Event Calendar Pro #995208George
ParticipantHey Jesse,
Thanks for the feedback, detail, and screenshots there. In trying to think about this I unfortunately can’t think of anything that would help as much as doing exactly what you described in your post above, at least until we get better performance improvements into the plugin over the next several releases:
I can try cutting down the events to 2 or even 1 month recurring if need be.
Let me know if you’re able to do this successfully and if it does, indeed, make as much of a helpful impact as we hope it will!
Thank you,
GeorgeAugust 11, 2015 at 12:00 pm in reply to: Recurring events not showing unless end year is more than a year past start date #995207George
ParticipantThis is bizarre Adam, but your diligence with testing here and your sharing of your system info are both greatly appreciated. I have just made a bug report for our developers to investigate this more closely and will keep you posted here.
Thank you!
GeorgeAugust 11, 2015 at 11:58 am in reply to: Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 #995206George
ParticipantWe’re hoping to publish our next release by early September, though I unfortunately don’t have more detail than that 🙁 I’m not withholding information! I just genuinely cannot guarantee a specific date when the release will arrive.
I’m really sorry about this bug, and agree with you that it’s a pretty important one. I hope we can get a fix in for the next release, if not then hopefully the next one which should be no more than a few weeks after that.
— George
George
ParticipantHey Heather,
Awesome, in that case then yes retrieving the data is as simple as using a function called tribe_get_custom_fields().
If your custom field’s name is just “Syllabus”, for example, then code like this would work to echo the value of that field for a given event:
$custom_fields = tribe_get_custom_fields();echo $custom_fields['syllabus'];
So, the original code example you posted was this:
add_filter('tribe_get_event_website_link_label', 'tribe_get_event_website_link_label_default');function tribe_get_event_website_link_label_default ($label) {
if( $label == tribe_get_event_website_url() ) {
$label = "Visit Website »";
}return '' . $label . ' ';
}
And example of reworking that to use the new field is this:
add_filter('tribe_get_event_website_link_label', 'tribe_get_event_website_link_label_default');function tribe_get_event_website_link_label_default ($label) {
$custom_fields = tribe_get_custom_fields();
if( isset( $custom_fields['syllabus'] ) && $label == $custom_fields['syllabus'] ) {
$label = "Visit Website »";
}return '' . $label . ' ';
}
That should help – we unfortunately can’t provide much more code-level support than snippets like this, but play around with things a bit and let us know if it helps.
Best of luck with your customizing,
GeorgeGeorge
ParticipantThank you for checking! It’s still a good step that we can at least rule that out now as a possibility.
Unfortunately, this means the next step is that set of theme/plugin troubleshooting steps. Can you proceed with those now as originally planned?
Thank you!
George -
AuthorPosts
