That sounds wonderfull !!
thank you very much
You are not logged in. Please login or register.
LuxCal Web Calendar → Need Help → Help needed with sidebar upcoming events / custom lcsbar.php? → Post new reply
All fields with bold label must be completed before the form is submitted.
That sounds wonderfull !!
thank you very much
Hi there,
OK, understood
I will send an updated lcsbar.php file to your gmail mailbox shortly.
The additional parameter will also be available in future LuxCal calendar versions.
Roel
hi Roel,
thanks for the response , but that was not exactly what i meant
i already did not have $sbContent = 'todo'; in the sidebar-page so it did show upcoming events.
But the problem i have is that when an event is already done (timewise) it is still displayed and that is not the case in the display-page where i can set the $futEvts = 1; option. , when i set that option the event that ended for example at 12:00 am will not show up after 12:00 am that day
below is what happens now, in sidebar lock07-event is still visible while it is already done, while on the display-page it is not shown due the $futEvts =1; option
(oops wanted to add picture but that did not work)
Displaypage shows:
-----------------------------
Lock Calendar
Fri, February 12
Until 23:00 lock09 locked
Category: locks
------------------------------
Sidebar-page shows:
------------------------------
Locks
Thursday 11 February 2021 - Friday 12 February 2021
3:00 - 12:00
lock07 locked
Wednesday 10 February 2021 - Friday 12 February 2021
12:00 - 23:00
lock09 locked
-------------------------------
would be great if sidebar could also use something like $futEvts =1;
Hi there
The sidebar is showing 30 days in the past when it's used to show a To Do list; however, when it is used to show an Upcoming Events list, it shows events as of 'today".
So I assume you have specified $sbContent = 'todo'; just before the sidebar code. This is fine, no problem. If you would remove $sbContent = 'todo';, or set it to 'upco', you would get all Upcoming Events as of "today".
But maybe you have good reasons to show the To Do list and still want to show events as of today. If this is the case, you should edit the lcsbar.php file and replace line 168 . . .
$sbsDate = $sbContent == 'todo' ? date("Y-m-d",$sbsTime - (30 * 86400)) : date("Y-m-d",$sbsTime); // if ToDo start 30 days back
by . . .
$sbsDate = date("Y-m-d",$sbsTime);
Thereafter the sidebar will always show events as of today.
If you need something else, please let me know.
Roel
Greetings all
Being new to LuxCal i am testing the calendar for use with an arduino project to activate a lock based on an calendar event.
I made a sidebar available on a page which is scanned by the arduino code for a specific name of an event. when found the lock is closed
and when not found the lock is opened
But when i use the sidebar upcoming events the event on the page is displayed even if the time of the event is past already
When i used the display03 i could use the $futEvts = 1; setting to not show passed events on the current day but on the sidebar i noticed $futEvts was not available to use.
But the dislpay-page should be in the calendar root directory and i need it one directory up so thats why i wanted to use a sidebar
(displaypage in iframe won't work as the arduino code does not see the contents inside the iframe)
Is there a way to change the lcsbar.php so it can use the $futEvts setting or so that it doesn't display events that are past already on the moment the page is displayed (scanned in my case)
i would really appreciate your help so i can make my project work with LuxCal
LuxCal Web Calendar → Need Help → Help needed with sidebar upcoming events / custom lcsbar.php? → Post new reply