Laura

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Gridview Tooltips after AJAX month change #12538
    Laura
    Member

    Hi Rob. The site is actually not live yet. But it’s easy to replicate as it happens out of the box. Install WP, use twenty 11 theme for example, and install Event Calendar 2.0.2 (this happens on the basic plugin as well)

    Add two events for simplicity. One for the current month that ends on a sat or sunday (so it shows up in the right most column of grid). Publish the event, and then go to grid-view and hover over the link. You’ll notice the tooltip correctly appears at the top LEFT of the link.

    Now create another event, one for the following month, ending on a sat/sunday. Publish. Go back to grid-view, now change months to the next month, hover over the event. The tooltip is to the top RIGHT.

    It makes perfect sense why it happens, it has to do with your AJAX calls for changing months. Basically the tooltip function is called somewhere on page load I assume that checks the position of the links, and adjusts the positions of the tooltips accordingly. Everything works fine if you’re on the initial page load. But once you change months and the AJAX runs, the tooltip script never gets updated for the new links/positions, therefore everything just appears at the top right.

    in reply to: Display a featured event in a front page feature box #12347
    Laura
    Member

    Hi Carlos, I just recently had to do this myself. It took me quite awhile to figure it out but I finally got it.. Just use this to start your loop:

    $featured_query = new WP_Query(‘post_type=tribe_events&tribe_events_cat=featured&showposts=1&eventDisplay=upcoming’);
    if ($featured_query->have_posts()) while ($featured_query->have_posts()) : $featured_query->the_post();?>

    in reply to: Display only start time and end time? #12129
    Laura
    Member

    Perfect! Didn’t think to pass in the null value there. Thanks again.

    Laura
    Member

    Just to followup, I ended up figuring out a way to do it by writing my own custom query: if (!empty$wp_query->query_vars[‘eventDisplay’]) && $wp_query->query_vars[‘eventDisplay’] == ‘upcoming’)

Viewing 4 posts - 1 through 4 (of 4 total)