Calendar view tooltip error

Home Forums Calendar Products Events Calendar PRO Calendar view tooltip error

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #29627
    Steve
    Participant

    I am seeing a display error in calendar view tooltips where the event post contains an item inserted via shortcode, in this case a button.
    Tooltip displayed in Calendar view:
    http://f.cl.ly/items/1C0z0a3U1k3R3f1l041Y/calendar-tooltip-error.jpg
    Event as shown in list view:
    http://f.cl.ly/items/3c1h2I2a2G1L2f04270y/Event-in-list.jpg
    Event as shown in editor:
    http://cl.ly/image/0j1F1M0D0Q44
    What’s revealed in the tooltip is actually the jQuery used in the shortcode to display the button.

    Steve West
    [email protected]

    #29638
    Barry
    Member

    Hi Steve – can you provide a URL so I can inspect the actual markup? I’d hazard a guess that the shortcode is being parsed (otherwise, of course, we’d simply see the shortcode) but whatever techniques it is using are causing a problem.

    Does the shortcode belong to a theme or plugin – if so can you provide a link so we can take a look using our own systems?

    Thanks!

    #29794
    Steve
    Participant

    Barry,
    It’s on a client’s site which is setup to be private. Is there a way I can send you login credentials?

    Steve West
    [email protected]

    #29795
    Barry
    Member

    Yes, if you send an email to [email protected] (and if you could please mark it for my attention and include a link to this thread, that would be greatly appreciated).

    #29805
    Steve
    Participant

    email has been sent to [email protected] attention Barry.

    #29860
    Barry
    Member

    Steve: thanks! I can replicate that locally. Please feel free to kill off the credentials you provided – I’ll try and get back to you shortly with an update.

    #29861
    Steve
    Participant

    ok, thanks Barry

    #29863
    Barry
    Member

    Hi Steve – here’s the problem. The post content (or excerpt, if there is one) is truncated before it is used in the tooltip to ensure it doesn’t occupy an unreasonable amount of space. As part of that process, tags (including script tags) are removed.

    The alternative would be more complicated parsing to ensure that any prematurely terminated elements were closed in the correct order. Otherwise, for instance, a <span> or <em> element might be cut in half and left unclosed, leading to further issues.

    So … really this is a bit of an edge case and all I can really do is throw down the gauntlet and point out where this takes place (the display_day() function inside the table.php template) and leave the rest to you.

    It would be great to hear back if you build a good or natty solution to this, it’s always possible others might be scouring the forums looking for a similar capability in the future.

    Sorry I can’t really offer up much else on this occassion.

    #29894
    Steve
    Participant

    Barry,
    Got it. Thanks for looking into it and pointing me in the right direction. Will report back if I come up with anything.
    Steve

    #29897
    Barry
    Member

    Excellent, I hope you get something sorted.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Calendar view tooltip error’ is closed to new replies.