By symbal on Wednesday, 27 August 2014
Replies 6
Likes 0
Views 5.5K
Votes 0
Greetings,

I have found that on the calendar view, when hovering over a multiday event (using overlib) that has the start date (first day) later than that of the end date (last day) the time displayed is quite odd. I.E. It is shown as starting later than the finish time.

I have created a patch which (when installed) alters the following file:
components/com_jevents/views/default/month/tmpl/calendar_cell.php

I've made the patch an attachment also, maybe you would like to take it upstream. There are more elegant ways of doing this for sure but, I haven't oriented myself with this code at all other than the bare minimum
--- calendar_cell.php.original	2014-08-27 11:54:45.519448770 +0800
+++ calendar_cell.php 2014-08-27 11:55:12.516081212 +0800
@@ -94,11 +94,19 @@
else if($this->start_time != $this->stop_time && !$this->event->alldayevent()){
$tmp_time_info = '<br /><b>' . JText::_('JEV_TIME') . ': </b>' . $this->start_time . ' - ' . $this->stop_time_midnightFix;
}
- $publish_inform_overlay = '<table style="border:0px;width:100%;height:100%">'
- . '<tr><td><b>' . JText::_('JEV_FROM') . ': </b>' . $this->start_date . ' '
- . '<br /><b>' . JText::_('JEV_TO') . ': </b>' . $this->stop_date
- . $tmp_time_info
- ;
+
+ if($this->event->multiday) {
+ $publish_inform_overlay = '<table class="w100 b0 h100">'
+ . '<tr><td>'
+ ;
+ } else {
+ $publish_inform_overlay = '<table class="w100 b0 h100">'
+ . '<tr><td><b>' . JText::_('JEV_FROM') . ': </b>' . $this->start_date . ' '
+ . '<br /><b>' . JText::_('JEV_TO') . ': </b>' . $this->stop_date
+ . $tmp_time_info
+ ;
+ }
+
}
}
Hello,

Thankyou but why are you not using the Joomla! Tooltip? We are planning on removing the overlib in the near future.

Thanks
Tony
·
Wednesday, 27 August 2014 07:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to me so promptly. I have chosen to use overlib because (by defualt it seems to fit in with the general theme of the site much better than the Joomla! tooltip) and doesn't have any "oddities". See screenies when using Joomla tooltip:
[attachment=0:1luhdu9e]<!-- ia0 -->joomla.tooltip.png<!-- ia0 -->[/attachment:1luhdu9e]
When viewing it on the clients laptop (through Internet Explorer) it was further garbled just showing a small tooltip and a set of HTML code (not rendered). I know part of this is to do with the theme but, want to try and avoid having to "tinker" too much so just choose overlib
·
Wednesday, 27 August 2014 09:43
·
0 Likes
·
0 Votes
·
0 Comments
·
text colour and size issues are CSS related from your template and the visible HTML code is probably due to your template or a module loading a javascript library called jQuery and not putting it in no-conflict mode.

If using Joomla 3 - enable the JQuery fix option in the JEvents config (first tab).

support for overlib will be removed from JEvents fairly soon so its best not to rely on it
·
Wednesday, 27 August 2014 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, thanks for the heads up about removal.
·
Friday, 29 August 2014 05:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow! Awesome! Many thanks!
·
Thursday, 07 May 2015 04:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow Great Very Very Thank u
·
Saturday, 12 September 2015 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post