Problem Tooltip weekly view

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.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1354769

    Hi 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
    Patrick

    #1355425
    Victor
    Member

    Hi 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,
    Victor

    #1355448

    Hi 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
    Patrick

    #1356143
    Victor
    Member

    Hi 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,
    Victor

    #1366589
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Problem Tooltip weekly view’ is closed to new replies.