1

(9 replies, posted in Suggestions)

SOLVED IT!! (Mostly)

Again thanks to Roel for the essential sorting code, and to Stack Overflow for the Flex magic.
(stackoverflow
com
/a/61969131/13102734)


Here's what the finished result looks like:
greiginsydney
com
/random
/luxCalBottomJustify-works.jpg

I've tested this against Year, Month and Week views on Edge & Firefox. I *doesn't* look like it's working under Safari on iDevices, although it might just be not picking up the new style sheet yet, and that's not something you can force. (Alas, it's not working on Chrome under iOS26 either).

*As well as* my subverted sort code in the post above, you need to edit css.php & toolbox.php:

css.php:

.cell {min-height:100px;display:flex;flex-direction:column;}

toolbox.php, in fn colorStyle:

  $eStyle = ($evt['cco'] ? 'color:'.$evt['cco'].';' : '').($evt['cbg'] ? 'background-color:'.$evt['cbg'].';' : $defBgd);
    if ($evt['cid'] == 18) {
      $eStyle .= 'margin-top:auto;';
    }

}

Roel might be able to make that test for Category 18 a one-liner, but that's above me.

Obviously this is still a TERRIBLE kludge because it's baking a category number into the .php, but did i mention it works??

2

(9 replies, posted in Suggestions)

Thanks Roel, that's great.

I've actually subverted your fix (now you've shown me where this can be done).

I've created a new category I've called 'float bottom', and I've changed the sort to sort on its category ID:

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

Obviously hard-coding references to individual categories into the php could get me banished from this forum forever, but I'm hoping you'll forgive me. wink


- G.

Well, I meant 100% reproducible for ME... smile

The demo version works correctly, although there are a couple of differences. One is that a new event opens in a 'shrunken' mode, with a red pulldown arrow below "no repeat / Change", and the box re-sizes correctly when you click the arrow.

The other more interesting difference is that the edit box for notification recipients has the "select recipients from list" emoji on the far RHS of the line, but in my instance it's on the next line, crucially making the form that much taller and forcing the scroll bar.

I've updated the image I linked to above with a blue arrow pointing it out.

Where's yours? In Firefox, mine is on the RHS, the same as your demo cal.

I tried making the box wider so the emoji returned to its 'correct' location, but when I closed and launched a new event the change in size wasn't retained, so I was back to the earlier problem.

But why's it only happening to me? Where do I (presumably) have a setting that's limiting the width and forcing this problem?

------------

HAHAHA! I've fixed it!

I'm running the calendar tab @ 110% zoom. If I go back to 100% everything's correct - just a little shrunken and my aged eyes disapprove. (If I go to 110% on the demo cal, my problem manifests there too).

Sorry to bother you with this one. An amusing little learning lesson.


- Greig.

Hi Roel,

I've had this one for years(?) and haven't bothered mentioning it until now.

We're on 5.3.4M.

Every time I create a new event - but ONLY in MS Edge on Windows 10/11 - the box opens with the bottom buttons cropped and a vertical scroll bar. 100% reproducible.

Using Chrome and Firefox on the same machine open to the full size of the box.

An example of what I see is here:
https: greiginsydney com / random / luxcalEventCropped.jpg

- G.

5

(9 replies, posted in Suggestions)

I've had a bit of a play with it (with some help from Claude.ai) but I can't even get the text to move.

I was experimenting with the .event and .evtTitle just to see if I could get the text to move to the bottom, but I realise my request would presumably involve a new checkbox in the Categories setup so the .cell is filled as desired.

6

(9 replies, posted in Suggestions)

Hi Roel,


Sorry for the delay. We're on 534M.

I'd still love it if you could float bottom of the cell and not just the bottom of the list. I realise that too many of those will start to get messy, but done right, with only one entry 'categorised' as 'bottom' it will really stand out.

But I'll take what I get. If it's not going to cause you escaping pain, I think a chevron (&gt;) would be ideal for the trigger character.

- Greig.

7

(9 replies, posted in Suggestions)

Ive put a mock-up of my desired output here:

- but you'll need to glue the url together, sorry.

https://greiginsydney
.com
/random
/luxCalBottomJustify.jpg

Hi All,


We LIVE by LuxCal, have for many years, and that includes planning travel as well.

Something I've long wanted to do is "bottom-justify" an entry. When we're travelling this is the town or hotel we'll be sleeping in that night.

My current work-around is to set it for "23:59", which puts it at the last of any day events, but it's still top-justified - and annoyingly then has a bogus time-stamp.

Is there a way to achieve this, or has anyone come up with a workable edit or kludge?

Hi Roel,

Here's a neat trick I was recently able to add to the calendar.

I use my iPhone and iPad to create events, and realised I can make this process easier if I can get the "digits" keypad to pop when i select the start and end time boxes. As luck would have it the "decimal" keypad includes the digits AND a period, and the calendar code treats the period the same as a colon!

All I needed to do was edit /cal/pages/eventform1.php and add inputmode='decimal' into the span dTimeS and dTimeE elements.

Here's one in context:

<span id='dTimeS'{$hidden}><input inputmode='decimal' class='time' type='text' name='sti' id='sti' value='{$sti}'>


- Greig.

10

(0 replies, posted in Problems)

Hi Roel,


I'm experimenting with a third party e-mail-to-SMS service, but my messages aren't getting through to them and I'm struggling where to find SMTP logging in LuxCal.

I'm receiving "changed event" e-mails OK, but no others (like "Send mail: Now" ones), and of course none of my SMS attempts.

My Mail server is set to "PHP mail".

/var/log/mail.log & mail.err don't show me a lot. I *think* this is a successful mail (in mail.log), but that's all I've been able to find:

Nov 16 16:38:19 web2004 sSMTP[3186940]: Creating SSL connection to host
Nov 16 16:38:20 web2004 sSMTP[3186940]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Nov 16 16:38:23 web2004 sSMTP[3186940]: Sent mail for <SENDERS-MAIL-ADDRESS> (221 2.0.0 Service closing transmission channel) uid=33 username=www-data outbytes=2012

That's not telling me much, other than that the sender send a mail about something, to someone.

Is there more logging to be found, or somewhere I can increase the logging detail?


Thanks,



Greig.

11

(5 replies, posted in Problems)

Hi Roel,

I'd like that. smile

Day marking is really just a particular kind of event anyway...


- Greig.

12

(5 replies, posted in Problems)

(I probably should point out that I live in 'month' view)

13

(5 replies, posted in Problems)

You need to get out more! wink

14

(2 replies, posted in Problems)

Don't worry Hubert you're not going mad. I've seen this too, but only once, and I've not been able to reproduce it.

It would have either been on Edge on Windows 10 or Safari on my iPhone, I don't remember which.

- Greig.

15

(5 replies, posted in Problems)

Hi Roel,


I've gotten used to clicking on the title bar of a day to add a new event, and the new Day Marking hijacks that process.

Clicking on the title bar has been the only way to add an event to a day that already has several events, and the day frame/box is full, so there's no remaining "white space" in which to click to add the new event.

Is there another way to add an event to a day, or perhaps a setting I can change? (I tried to see if I can disable Day Marking but I couldn't find it).

Thanks,


Greig.

Would be great if you can, but prioritise it as appropriate...

i have a kludge at the moment: I set a recurring event on the 30th of each month and then manually "edit this occurrence" in months that have 31 days. (And manually add one for Jebruary 28/29).


- G.

We're on LuxCal calendar: 5.2.1M (us), and I was still seeing the RESTART prompt up until I created the new credentials for each device. (I am permanently signed-in on three). Maybe that last step has finally suppressed it. It would be worthy of a Nobel Peace Prize if you've finally managed that. I'll get the nomination drafted now...

Thanks for the compliment, but I don't think it was all that clever to add the spaces: I just kept Previewing the post until I could get the "don't include URLs" warning to go away.


- Greig.

18

(5 replies, posted in Problems)

Thanks Roel.

Just by way of background, this makes credential management using my password manager more difficult. The same website now needs multiple sets of credentials saved for it, and the password manager isn't aware of 'context' like this, so it can't auto-fill the right set of credentials depending on the device I'm logging in from.

- G.

I've long cursed the PHP SESSION EXPIRED popup, and have only recently come up with a tiny panacea for it (which is only useful on a Desktop PC or device with a keyboard).

If you edit /www/cal/pages/alert.php to add "autofocus" to the RESTART button as shown below, pressing RETURN is all you need to do to restart the page.

$rButton = "<button type='button' onclick=\"window.location = window.location.h ref.split('?')[0];\" autofocus>{$xx['restart']}</button>\n"; //restart button

This works on Edge (so presumably also Chrome) but I've not tested it with any other browsers.

Note that the code above has a space added in "h ref" to get around the block for posting URLs, so be careful if you copy this line directly into your own calendar.


- G.

Hi Roel,


Does the calendar have the capacity to support repeating events on the first or last days of the month?

I have things I want to be reminded of each calendar month, and having that as a repetition option would be great.

Here's a dodgy mockup:

htt s://greiginsydney.com/random/luxcal-setRepetition.jpg

Thanks,


- Greig.

21

(5 replies, posted in Problems)

Aha! Thanks Roel, I was having the same problem.

Is this a temporary work-around or a 'permanent' fix?


- Greig.

Right, gotcha! I didn't realise it was the side-effect of a deliberate tightening of security. You can't argue against that!

Thanks for clarifying.


- Greig.

Does anyone have a definitive fix for this issue? My partner and I are both in the habit of leaving a tab permanently open/pinned to the calendar, and probably on a daily(?) basis it presents the Session Expired error.

We've been using - and loving - LuxCal for years, and this is a relatively recent occurrence. Reports here probably put it in the ~4.7.5 time period. (We're currently running 4.7.8M (us)).

Or is it tied to a PHP update and the calendar version is a coincidence?

I note that the demo calendar site here does it too: www.luxsoft.eu/luxcal/. Just open a tab to it, then come back tomorrow and engage with it.

Thanks.

- Greig.

Ahaaaaa. OK, so that explains an intermittent inconsistency I was seeing when rotating the phone. The arrows WERE indeed moving relative to the centre of the screen, but now I get it. Thanks for that. I think this is a great tip to apply to ANY site viewed on a mobile.

I think the "funky arrow placement" issue was resolved by the tweak you gave me to the CSS last weekend, or explained by the above - but I still had the issue with the arrowheads not working, but instead bringing up the Options menu.

On the h3 area, my best guess is this was something like a Z-order issue (or some weird situation with two clickable elements competing) as it vanished as soon as zapped the onClick.

Regardless: I'm all good now. I appreciate you taking the time to look into this one, and your tip above was REALLY helpful.


- G.

I agree Roel - there's nothing more frustrating than trying to debug and fix something that won't happen for you.

I've uploaded another image - this time of your own demo site, which manifests the same issue to me when I try it on my iPhone.

https: // greiginsydney.com / random / luxcal-demo-bug.jpg

Don't worry if you can't get it to happen, as I've worked-around it and I'm happy. (I'll give it a week before I revive my remaining bug-bear, the session expiry thread.)

- Greig.