Topic: Event end times

I want to be able to see the event start and end times on the month display without hovering over the event and also print this out for users reference.  Is this possible, please?

Re: Event end times

Hi there,

In the latest calendar version 4.7.4, the Print funtion in the side menu is not working.
Below you will find two minor changes: 1) to show the end times in Month view and 2) to fix the print problem.

The changes are for calendar version 4.7.4!

1) edit the file views/month.php and replace line 17 . . .

$dTime = $evt['mde'] ? $time : ITtoDT($evt['sti']);

by . . .

$dTime = $time;

2) edit the file common/toolbox.js and replace line 379 . . .

var els = $T("*");

by . . .

var els = [].slice.call($T("*")); //convert nodelist to array

Now you will see the end times, if there is one, in Month view and the print function in the side menu will work.

I think this could be interesting for other calendar users too, therefore in the next version of the calendar I will add a setting to enable/disable the display of the event end time in Month view.

Roel

Re: Event end times

Ohh .. Sorry Roel but either end time is ok either printing still doesn't work ... ;-(

Re: Event end times

I'm (almost) convinced that printing does work after the change wink
Did you refresh the calendar page (Ctrl-F5) after implementing the changes?

Roel

Re: Event end times

Many thanks for this Roel, it worked for me, but I had also just upgraded from 4.7.0 to 4.7.4 which might have helped?  Would there also be a way of including the Venue on the display and printout, although I guess that might make it a bit too crowded?

6 (edited by cousinhub 2019-03-06 23:02:11)

Re: Event end times

Roel wrote:

I'm (almost) convinced that printing does work after the change wink
Did you refresh the calendar page (Ctrl-F5) after implementing the changes?

Roel

I did yes .. tried on localhost and on my webhosting ...
Something occurs, the window switches to white background and... nothing.

But, month view is ok with times (so fine !), could we expect the same mod for week views ?...  wink)
I know it seems silly as we have times on the left, but my elder users have a short view ...

Re: Event end times

@RdeW: There is no way to configure the calendar to show the Venue in the day cells of Month view. I can however give you a code change to show the venue. If you want this, please let me know where you would like to see the venue (e.g. after the title, on a new line, etc.), and if you want the word "Venue:" in front of it.

@cousinhub:
1) Concerning the Print function, could you send me the URL of your calendar (via the Contact Us page) so that I can analyze what's going wrong.
2) Concerning the start and end times in week and day view: Edit the file "views/dw_functions.php" and change line 148 . . .

echo "<div class='{$class}'>{$chBox}{$onClick}{$popAttr} title=\"{$title}\">{$stiPrefix}{$evt['tix']}</span></div></div>\n";

to . . .

echo "<div class='{$class}'>{$chBox}{$onClick}{$popAttr} title=\"{$title}\">{$time} {$evt['tix']}</span></div></div>\n";

So in other words: replace {$stiPrefix} by {$time}, followed by a space.
Please note that there are no plans to add this change to the next LuxCal calendar version.

Roel

Re: Event end times

Ok, mail on the way, thx

9 (edited by cousinhub 2019-03-11 10:51:46)

Re: Event end times

Roel is someone like a magician, knowing all is code perfectly.
Many thanks Roel
Key was found with a line missing (include in comments) in toolbox.js after mod.
But Chrome seems to have its own "issue generator", popups activated and no printing window showing .. either Edge shows it ...
Oh magic can be IT world !!

Edit : the page parameters under Chrome didn't really made a difference.
Going into Chrome parameters general page makes the job ... Pffff

Re: Event end times

It's just a question of using the right magic wand wink

Roel