Home › Forums › Calendar Products › Events Calendar PRO › Calendar view tooltip error
- This topic has 9 replies, 2 voices, and was last updated 13 years, 4 months ago by
Barry.
-
AuthorPosts
-
December 17, 2012 at 1:22 pm #29627
Steve
ParticipantI 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]December 17, 2012 at 1:59 pm #29638Barry
MemberHi 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!
December 19, 2012 at 12:55 pm #29794Steve
ParticipantBarry,
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]December 19, 2012 at 12:57 pm #29795Barry
MemberYes, 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).
December 19, 2012 at 1:54 pm #29805Steve
Participantemail has been sent to [email protected] attention Barry.
December 20, 2012 at 11:54 am #29860Barry
MemberSteve: 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.
December 20, 2012 at 12:02 pm #29861Steve
Participantok, thanks Barry
December 20, 2012 at 12:53 pm #29863Barry
MemberHi 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.
December 20, 2012 at 3:59 pm #29894Steve
ParticipantBarry,
Got it. Thanks for looking into it and pointing me in the right direction. Will report back if I come up with anything.
SteveDecember 20, 2012 at 4:23 pm #29897Barry
MemberExcellent, I hope you get something sorted.
-
AuthorPosts
- The topic ‘Calendar view tooltip error’ is closed to new replies.
