Forum Replies Created
-
AuthorPosts
-
Henrico CountyParticipant
Yes, that would work, and be a bit easier than a filter.
Henrico CountyParticipantOkay. Thanks. You are right – the testing environment I am working on is a bit dated. Our production version is current. I will work on getting that updated. Thanks for your help.
Henrico CountyParticipantThe function was being called in a shortcode. The page has been loaded and the content area of the page calls this shortcode. So – it seems like the function should be okay to run.
I’ve moved my call to tribe_get_organizers() in this same section – and it works perfectly.
But tribe_organizer_upcoming_events() does not. The tribe_organizer_upcoming_events is not listed as an API function. And tribe_venue_upcoming_events also gives me a fatal error. It seems these two functions are not part of the API…? Is there something I need to do to be able to utilize these functions?
Henrico CountyParticipantThanks, Barry, for your response. Can you tell me if https://theeventscalendar.com/function/tribe_organizer_upcoming_events/ is available? I get a Fatal error: Call to undefined function tribe_organizer_upcoming_events() when I attempt to use it. And – it doesn’t appear to give any return data in the function verbiage.
I have the queries I need into the post and postmeta data – but if the meta key names change – I would have to update my code and the code would break until I realized there was an issue. I was trying to use the API but I need an organizer’s events (not a venue’s events) and I don’t see it.
Thanks for your help.
Henrico CountyParticipantI have resolved #1 using tribe_get_organizers. What I need for #2 (and could be used for #3) is something like tribe_get_organizer_events ( $organizer_id ). Does this exist?
Thanks!
January 8, 2015 at 12:08 pm in reply to: Not seeing advanced list widget as an option in Widgets with ECP #930556Henrico CountyParticipantSince we had not looked in detail at the Event List or Advanced version of it, and couldn’t find a visual reference, we assumed Advanced would have a lot more options (more filtering and customizing of the list). And while we were really excited for this new feature, we actually thought it was more of an option that you would turn on.
January 8, 2015 at 5:57 am in reply to: Not seeing advanced list widget as an option in Widgets with ECP #930397Henrico CountyParticipantOk, I do have a follow up question – will that snippet fix show the new calendar like option (similar to the month widget) that was referenced in #3?
January 8, 2015 at 4:23 am in reply to: Not seeing advanced list widget as an option in Widgets with ECP #930339Henrico CountyParticipantIm sorry, but we aren’t seeing that. This is all we see – http://imgur.com/TTlVeHr . There are none of the new options or the feature we are looking for, nor anything more than just how many to show and the parts to show.
We also couldn’t find any documentation on these differences, whats so ‘advanced’ in the advanced one, or its config. Are these available?
Henrico CountyParticipantI found the issue, and a fix, which is a Roots template issue. As I was researching, after I found out that it cleared out that media query, I found something similar where I had issues with it applying print stylesheets.
If you check out https://github.com/roots/roots/blob/5.2.0/inc/cleanup.php#L607 , it looked something like this. I added an extra check for the style that this puts out, and it now works.
Thank you for your help, and sorry for the confusion. I am guessing that how TEC has so many overrides, this was the only way for you to implement such a feature.
Henrico CountyParticipantThat’s exactly it (I think) – the fact that its not adding that media line. It does this in your plugin at https://github.com/moderntribe/the-events-calendar/blob/056aca6f5887a3b2425a61ba6234e2e25b273683/lib/tribe-template-factory.class.php#L688 .
Why would this not get set? If I use the inspector and add that line, things work as they should.
Henrico CountyParticipantYet another update. I realized if you read from https://github.com/moderntribe/the-events-calendar/blob/056aca6f5887a3b2425a61ba6234e2e25b273683/lib/tribe-template-factory.class.php#L639 till about line 700, its supposed to add some extra stuff when it enqueues, and it doesn’t on our theme – but does on others. For example, at the end of the include, it adds media=’only screen and (max-width: 768px)’, but its not doing that on ours. Could this shed some insight on the issue?
Henrico CountyParticipantI have done more testing. Nothing on the Roots forum at this time reflects anything like we are seeing – we are using a much older version before they moved to this theme nesting stuff.
First of all, by doing an echo in a sample template, the tribe_get_mobile_breakpoint is actually returning the valid value – so it is getting set. Secondly, if I add say @media(max-width:800px) { to the top of the mobile file – it also works responsively as it should.
I got the second idea from https://wordpress.org/support/topic/plugin-the-events-calendar-problem-with-responsive , where a support rep for Modern Tribe notes that if we can narrow it down to Events Calendar, they should be able to help. Something about how you set this value is off, or not picking up at the right time. How can I adjust that? Moving the break up to the top of the functions file doesn’t change anything.
Henrico CountyParticipantThis reply is private.
Henrico CountyParticipantHi,
This isn’t really a solution that works though. Only the ‘kill responsive’ works, no matter what we set a breakpoint to, that code never does anything.
What appears to be happening is that no matter what the breakpoint is, the mobile theme is being included. Since that then doesn’t use its own set of media queries, they are overriding everything. For example, looking at line 651 in tribe-template-factory-class https://github.com/moderntribe/the-events-calendar/blob/056aca6f5887a3b2425a61ba6234e2e25b273683/lib/tribe-template-factory.class.php#L651), as long as that number is not 0, it includes. These includes are happening before our bootsrap includes from our theme.
Example:
<link rel=”stylesheet” href=”/wordpress/plugins/the-events-calendar/resources/tribe-events-full.min.css?ver=3.8.1″>
<link rel=”stylesheet” href=”/wordpress/plugins/the-events-calendar/resources/tribe-events-theme.min.css?ver=3.8.1″>
<link rel=”stylesheet” href=”/wordpress/plugins/the-events-calendar/resources/tribe-events-full-mobile.min.css?ver=3.8.1″>
<link rel=”stylesheet” href=”/wordpress/plugins/the-events-calendar/resources/tribe-events-theme-mobile.min.css?ver=3.8.1″>
<link rel=”stylesheet” href=”/wordpress/css/bootstrap.css”>
<link rel=”stylesheet” href=”/wordpress/css/bootstrap-responsive.css” media=”screen”>
<link rel=”stylesheet” href=”/wordpress/css/app.css”>We need more assistance on the direction to take. We started off using the Root’s theme, which we had read before has conflicts out of the box with this plugin – but no fixes or notes are shown. We haven’t seen anything like this with any of our other projects or custom code.
Henrico CountyParticipantThanks for the info this is great. When I use the Kill responsive function it works. I’m having problem trying to find the proper break point. No matter what number I insert its still seem stuck in the responsive view.
-
AuthorPosts