1

(3 replies, posted in Need Help)

You're welcome smile Roel

Hi Greig,
Interesting, you wrote "100% reproducible". I can't however reproduce this problem. On my machine with all browsers, including Edge, the Add event window has NO scrollbar and the content fits nicely.
Roel

Hi Greg,
Edit the file "common/retrieve.php" and change line 233 (end of the file) from

$evt['sort'] = $evt['mde'] <= 1 ? $evt['sti'] : ($evt['mde'] == 2 ? '' : $evt['eti']);

to

$evt['sort'] = $evt['tit'][0] == '*' ? '24:00' : ($evt['mde'] <= 1 ? $evt['sti'] : ($evt['mde'] == 2 ? '' : $evt['eti']));

Thereafter when you put an * (asterisk) at the start of the event title, the event will sink to the bottom of the event list in the day cells.

I've added this change to the next LuxCal calendar version.

Roel

4

(3 replies, posted in Need Help)

Hi Smorg,
I tried display1-4, changed MONTH+1 to MONTH+10 and could not find the problem sad
Could you give me more details about this problem please?
Roel

Not from my side.
I'm waiting for this:

Will read about it and reply to your message once I give it a shot

Roel

Hi Mark,
The day cell is rather small and if I split it in three zones, then each zone needs a scroll bar in case there are many events for that day.
Furthermore Greig would still need to enter a bogus time stamp, as he calls it, to get his "special" event in the third zone.
Roel

Hi Greig,
Yes, I see what you are looking for. I had a look at "bottom justifying" an entry in a day cell of the calendar, but this is not easy. I can position something at the bottom, but if the user would earmark two or more events as "bottom-justify', they will be displayed on top of each other. Or if there are many normal events, which reach the bottom of the cell, they will also be on top of the "bottom-justified" item.
As a compromise, I can let an event with a title that starts with a special character (e.g. a ! or a +) float to the end of the list of events (Note: NOT to the bottom of the day cell). In this case you can set the time of the "hotel" event to "No Time". If in addition you create a dedicated category with an eye-catching color for these "hotel" events, it should be easy to find them.
Please let me know if you are interested in this change. If so, drop me an email with your LuxCal calendar version. I will then send you a patch to make this work, which I will also add to the next calendar version.
Roel

8

(2 replies, posted in Problems)

Hi Smorg,
No idea.
Did you make any changes to the Reminders section in the Settings recently?
Are you using PHP mail or SMTP mail?
Did you (or your hosting service) switch to a new PHP version?
Roel

OK, great!

Hi Smorg,
Edit the file common/retrieve.php and change line 28 from

return $b['adt'] <=> $a['adt'] ; //date-time added (last added at top)

to

return $a['tit'] <=> $b['tit'] ; //title

Now the names will be in alphabetic order.
I will change this also for the next LuxCal version.

To get a horizontal ruler when the time changes is a bit more complicated. You should look in the file views/month.php and in the foreach loop (lines 15 - 36) at the start of each next loop test if the time changed and if so add a '<hr>' at the start of the first "echo" (line 27). I.e.

echo "<hr><div{$draggable} class= . . . .

The time can be found here: $evt['sti']
Roel

When using an email address with a sub domain, like John@Dowd.co.uk, the last part (.uk) of the email address was lost.
This can be solved by editing the file "common/toolbox.php" and replacing line 13:

$rxEML = "~(^|\s)([\w!#$%&'*+/=`{|}\^\~\-\.]{1,64})@([a-z0-9-]{2,50})\.(\w{2,6})(?:\s*\[([^<>\[]*?)\])?(\.|\s|<|$)~imu"; //jd@skyweb.com [title]

by

$rxEML = "~(^|\s)([\w!#$%&'*+/=`{|}\^\~\-\.]{1,64})@([a-z0-9-]{2,50})\.([\w.]{2,8})(?:\s*\[([^<>\[]*?)\])?(\.|\s|<|$)~imu"; //jd@skyweb.com [title]

Use cut and paste smile

Hi Cantin,
The fact that the calendar sends an email right away (send [X] now) is good; this means that the send email function is working smile
If the X days before the event date is not working, then probably your cron job is not working.
Questions:
• Did it work correctly before, or is this the first time you are using the "X days before event date"?
• Have you set up a cron job on your server (as described in the admin_guide.html, section 3.10)?
Roel

Hi Smorg,
When you go to the admin's Categories page and add or edit a category, for this category you can select No overlap allowed (7th from the top) and check the "same category" check box. In this case events in this category may not overlap with events in this same category.
If you want, you can do this for several categories.
I hope this is what you are looking for.
Roel

14

(2 replies, posted in Problems)

Most users want to see one past week, to be sure they have not forgotten something smile
Assuming you are still using LuxCal 5.1.0:

Edit the file views/month.php and on line 71 delete "+ 7", so the line becomes:

$st = $tcDate - ($sOffset) * 86400; //start time (1 past week)

FWIW: On the Settings page, under Views, you can also set Weeks to show in Month view to 0 or 1, to always get the full month.
Roel

For Luxcal V5.1.0:
Edit the file views/month.php" and add just below line 24 . . . .

$snm = $evt['snm'] ? " - {$evt['snm']}" : '';

and change line 26 from . . . .

echo "<p {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}</p>\n";

to . . . .

echo "<p {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}{$snm}</p>\n";

In other words add "{$snm}" after "{$event}".
Roel

In this new LuxCal version 5.3.4 you will only a few minor new features. This version is released because there were a number of bug which have been solved. Furthermore some some technical issues have been addressed, which will improve the stability of the calendar software.
This LuxCal version has been tested with PHP 8.4.
>>>> FOR THIS VERSION THE MINIMUM PHP VERSION REQUIRED IS 7 <<<<

And as usual some last minute issues have been found by John from Denmark, the best beta-tester of the universe, who always helps to make the LuxCal Web Calendar a better product. Thank you John!

Hereafter you will find a full summary of all changes since the previous LuxCal version 5.3.3.

New features / improvements
• On the User Profile page and the Edit Users page the eye symbol has been added to the password fields.
• On the Event, Day marker, Search, CleanUp and Event File Export pages, the date input fields, which are initially blank, now contain a placeholder showing the date format to be used.
• On the administrator Settings page the header with the Save Settings button has now been excluded from the scroll area, so that the Save Settings button remains always visible.

Technical issues
• The Message-ID field containing the event ID has been added to the email headers. This can be useful when troubleshooting the sending of emails.
• The dmark scripts still contained code which was related to processing of normal events, which however was not relevant for day markers. The redundant code has been removed from the scripts.
• When the hit/bot counter is read from the file, it's directly converted to an integer. This resolves a PHP deprecate warning.
• In the fields title, venue and text1-3 HTML tags which are not closed are annulled by adding a closing tag directly following the opening tag.
• Before using the event title in an email subject field and the event title and venue in SMS messages, possible HTML tags are removed.
• In the Add/Edit Event window in the help (red ?) text for the description fields, the image description was only shown when on the Settings page "Show images in month view" was checked. Images can always be added, so they should always be mentioned in the help text.

Bug fixes
• The ITtoDT function returned a blank time when the time started with a '9'. See V5.3.3 - Technical issues no. 17. Ok for dates, but not for times. The test should be: when the time starts with '99'.
• Double quote ( " ) missing in the Danish language file at the end of line 253.
• When the page "Changes" is selected and changed events are found, PHP error messages appear in the background of the page. Because on lines 105 - 107 the variable name $evt has accidentally been replaced by $row.
• When at the start of the retrieve function the filter is built and a selection on one or more event categories has to be made, the category sequence number was used, rather than the category ID. If on the administrators Category page the category sequence numbers have been changed and in the option panel one or several event categories were selected this led to the display of wrong events in the calendar views.
• When editing one occurrence of a recurring day marker, and SQL error occurred because of a "notify" field in the SQL statement, while for day markers notifications are not relevant.
• When upgrading from calendar V5.1 or V5.2, the sub-categories were not copied to the 5.3 database. Bug in upgrade function solved.
• When producing PDF files, day markers were not displayed correctly. The text and background colors were not applied correctly and <b> tags were present in the title.

17

(1 replies, posted in Problems)

Hi Riaan,
I could not test this, because we have no PHP 8.4 on our server yet. LuxCal has been tested with PHP 8.3.23.
However, I've thoroughly checked the change log of PHP 8.4 and see no reason why LuxCal should not work with PHP 8.4.
Regards,
Roel

You may be a "hobby programmer" Stefan, but you are a "LuxCal expert" smile

Hello Stefan,
Yes, you are right, this is a (little) bug.
Thank you for reporting this problem, that's very kind. As you wrote, this will maybe seldom happen, but we want the LuxCal calendar to be as perfect as possible wink

Next month I will most probably issue a new calendar version. This new version will be mainly a "bug fix" version.

Still using version 5.2.1! So you are missing all these new marvelous features wink
Greetings form Belgium

Hi Willi,
I doubt if this is a genius idea, but I will give it a try wink
On the Categories page, when you edit a category, you can select no overlap allowed for events in all categories or in the same category.
Can't you use a (or more) category for the events that are not allowed to overlap with events in the same category. And then you can use other categories for "all day" or "no time" events.
But maybe I've not fully understood your problrm.
Roel

Hi Smorg,
To add the subcategory to the event title in month view can be achieved as follows (for LuxCal 5.3.3).:
The subcategory name for an event is held in the variable $evt['snm'].
So edit the file views/month.php" and add just below line 26 . . . .

$snm = $evt['snm'] ? " - {$evt['snm']}" : '';

and change line 28 from . . . .

echo "<div {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}</div>\n";

to . . . .

echo "<div {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}$snm</div>\n";

In other words add "$snm" after "{$event}".

The category /subcategory drop-down menus for the Add / Edit event window are produced in the "pages/eventform1.php" script, functions catMenu (line 24) and scatMenu (line 43) respectively.

Roel

Hi Fred,
Sorry for this late reply.
The LuxCal calendar should also work on an iPhone.
Are you sure cookies and JavaScript are not disabled on your wife's iPhone?
Roel

When selecting the Finnish or the Slovenian language in the calendar and go to the Log In page or one of the administrator pages, the page will not be loaded and a PHP error will appear.
This problem can be solved by editing the file lang?ai-suomi.php (Finnish) or ai-slovenski.php (Slovenian) and deleting the complete line 873:

"xpl_edit_info" =>

Roel

When the Changes page is selected and changed events are found, a list with PHP error messages appears in the background of the page.

This can be solved as follows:
• Edit the file "common/retrievc.php and on lines 105, 106 and 107 replace $row by $evt. Ten times!

So lines 105 - 107 should look like:

      $evt['ald'] = ($evt['sti'] == '00:00' and $evt['eti'] == '23:59');
      $evt['ntm'] = ($evt['sti'] == '00:00' and $evt['eti'] == '00:00');
      if ($evt['ald'] or $evt['ntm']) { $evt['sti'] = $evt['eti'] = ''; } //all day or no time: start/end time = ''

Roel

The Danish language file ui-dansk.php contains a syntax error. This problem can be solved as follows:
Edit the calendar file "lang/ui-dansk.php" and on line 253 add a double quote ( " ) just before the comma at the end of the line.
So line 253 should look like:

"evt_select_recips" => "Vælg modtagere",

Roel