Home › Forums › Calendar Products › Events Calendar PRO › Problem Tooltip weekly view
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by
dsb cloud services GmbH & Co. KG.
-
AuthorPosts
-
September 26, 2017 at 12:59 am #1354769
dsb cloud services GmbH & Co. KG
ParticipantHi Support :-),
since a few updates ago I have a problem with my tooptip informations. Like I describe in my post, I added this code snips
$author_ID = get_post_field( 'post_author', get_the_ID()); echo the_author_meta( 'display_name', $author_ID );to my tooltip information to get the author of the event.
Now I have the problem, that this information is only loaded once. Meaning I load the weekly view and get the information for event “A” from author “A”. So far so good. Now I go to event “B” from author “B”, my tooltip still displays author “A” instead of “B”.Greetings
PatrickSeptember 27, 2017 at 3:25 am #1355425Victor
MemberHi Patrick!
Nice to see you again! 🙂 Let me try to help you with this topic.
Could you please let me know where exactly you are placing that code? You can share with us the content of the file or a screenshot of it.
You might want to try using $event_id instead of get_the_ID()
Let me know about it.
Thanks,
VictorSeptember 27, 2017 at 4:26 am #1355448dsb cloud services GmbH & Co. KG
ParticipantHi Victor,
in my theme folder there ist a file called tooltip.php under/wp-content/themes/Divi-child/tribe-events/pro/week/
with the following content:<script type="text/html" id="tribe_tmpl_tooltip"> <div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip"> <h4 class="entry-title summary">[[=title]]</h4> <div class="tribe-events-event-body"> <div class="duration"> <abbr class="tribe-events-abbr updated published dtstart">[[=dateDisplay]] </abbr> </div> [[ if(imageTooltipSrc.length) { ]] <div class="tribe-events-event-thumb"> <img src="[[=imageTooltipSrc]]" alt="[[=title]]" /> </div> [[ } ]] [[ if(excerpt.length) { ]] <p class="entry-summary description">[[=raw excerpt]]</p> [[ } ]] [[ if(venue) { ]] <p class="entry-venue"><u>Raum: </u><a href="[[=venue_link]]">[[=venue_title]]</a></p> [[ } ]] <p><u>Verantwortlicher: </u><font color="green"><a> <?php $author_ID = get_post_field( 'post_author', $event_id); echo the_author_meta( 'display_name', $author_ID ); ;?></a></font></p> <span class="tribe-events-arrow"></span> </font> </b> </div> </div> </script>I made the requested changes, but they didn’t help.
Greetings
PatrickSeptember 28, 2017 at 8:42 am #1356143Victor
MemberHi Patrick!
Thanks for sharing the code. I missed to notice this was inside the tooltip, which can be a little tricky as it involves the Javascript Templating System.
Please bear in mind that we are limited in how much support we can give for custom development questions like this. But we always like helping out and at least point you in the right direction.
We will have a closer look and see if I can come up with a working snippet for this and will get back to you. We are a bit busy at the moment so it may take us a day or more to get back to you so we’d appreciate your patience.
I’ll keep you posted.
Thanks,
VictorOctober 20, 2017 at 9:36 am #1366589Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Problem Tooltip weekly view’ is closed to new replies.
