Forum Replies Created
-
AuthorPosts
-
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
June 9, 2015 at 5:47 am in reply to: Adding "add to cart" functionality outside of event page #968079Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
June 8, 2015 at 6:16 am in reply to: Does the Pro version of The Events Calendar come with a Payment Gateway? #967767Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
June 8, 2015 at 6:15 am in reply to: EventBrite Tickets Single Event Improt not visable after installation and verifi #967764Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberThanks for the extra details 🙂
The problem here is your code doesn’t guarantee that the price or venue vars will be defined – but your modified tooltip template expects them always to be set.
How about changing things so that if there is no venue or price you instead define an empty variable and then – a bit like you can see elsewhere in the default tooltip template – test for a positive length value?
Barry
MemberHey there Jeremy,
It sounds like you have added these extra lines of code directly within the month/single-event.php template.
This actually is not the recommended way of getting extra information into the tooltip (in fact, it’s likely to produce the wrong results in a lot of cases) and I would again recommend that you read through the extensive documentation found inline within the original month/single-event.php template.
In short, you ought to pass an array of additional data as described in the inline docs:
Lets say we want to add our own dynamic data from custom post meta to the javascript template for mobile. For now lets say that the key name we want to use is “hello” in our js template. The following example shows how we would go about adding the custom post meta and appending it to our event json string that is output in the markup.
$additional_data = array();
$string = get_post_meta( get_the_ID(), ‘hello_meta’ ); // this string can be anything
$additional_data[‘hello’] = $string;
echo tribe_events_template_data( $post, $additional_data ); ?>Explanation: we create an empty array to cram our data into. We can add as much as we want, there are no limits on data attribute length in the html5 spec. We want to call this data with the word “hello” in the js template, so that is the key name we give it in the php array.
In this case you’re likely to use meaningful names such as venueCountry rather than ‘hello’ and you can then make use of the JS templating system to inject those pieces of information into month/tooltip.php, something like this:
<p class="tc"> [[=venueCountry]] </p>So long as you add these paragraphs within the tribe-events-event-body div (in the tooltip template), the positioning should be just fine.
Barry
MemberHi there – sorry for the confusion!
It looks like that custom tooltip.php template is actually based on our as yet-unreleased 3.10 code and therefore is triggering a breakage.
Within that custom tooltip.php code, locate the .duration div which currently looks like this:
<div class="duration"> <abbr class="tribe-events-abbr updated published dtstart">[[=dateDisplay]] </abbr> </div>Revise it to:
<div class="duration"> <abbr class="tribe-events-abbr updated published dtstart">[[=startTime]] </abbr> [[ if(endTime.length) { ]] -<abbr class="tribe-events-abbr dtend"> [[=endTime]]</abbr> [[ } ]] </div>That should prevent the tooltips from breaking altogether 🙂
June 5, 2015 at 7:07 am in reply to: CONFLICT between WPML Multilingual CMS and Community Events #967402Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
June 5, 2015 at 7:06 am in reply to: Adding Event Category Menu items do not display in menu #967401Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
-
AuthorPosts
