1 (edited by lucas 2020-05-27 20:20:26)

Topic: integration of birthday overview script with LuxCal?

Hi Roel,

The Brüder-Grimm-Schule Rellingen Calendar is running flawlessly for almost a year now.
For the display, check www.bruedergrimmschule.de in the right column.
For the calendar itself, check www.bruedergrimmschule.de/terminkalender/

Recently I have been asked to integrate a birthday overview list on a private section of their website.

A realtime example of a similar birthday overview script can be viewed at www.aeternus.org in the right column.

Main script features are:
-- standalone database-record for keeping names and related birthdays.
-- easily adding/editing/deleting new names and related birthdays
-- the fields used for database/record entries are: first name, last name, and birthday
-- one PHP-file "that does all the work" (including a bit of CSS and HTML as well)
-- this PHP-file also contains 2 keen MYSQL queries (one for birthdays ahead, one for recent birthdays)
-- possibility to look 7/14/30/60/90/120/180/365 days ahead wink.

Would a kind of integration in LuxCal software make sense to you?
-- where a public birthday overview would be available in an extra display?
-- where a private birthday overview (when logged-in) would be avaialable in an extra display?

Just let me know your thoughts on this one.
I am gladly prepared to share the PHP-file with you.

Regards, Lucas.

Re: integration of birthday overview script with LuxCal?

I personally would love to have the script.

Re: integration of birthday overview script with LuxCal?

@fbonani

With the new generation of displays you should be able to do that.

You can have a category that is for public.
And a category that is for only logged on.

Then events with birthdays - recurring 1 year,

Then a display that shows the 2 categories.

The public category will be shown when not logged in.

Both the public and "private" will be shown when logged in.

The login is to the display.

This will function automatically for the next 100 years

Only thing is, that it cannot automatically show the number of years. This has to be edited manually:-)

I have not tried this myself - but it should be possible.

Re: integration of birthday overview script with LuxCal?

Thanks for getting back to me Schwartz. Unfortunately my coding skills are not what you think they are as I have tried doing this prior to this post. Unless there is a file already available that will provide this information.

Re: integration of birthday overview script with LuxCal?

What I describe requires NO coding at all.

The calendar and the displays are already made for that.
On calendarforum.dk you can make a post. We will then contact you and give a link where you can see an example, with log in.
If what we find out is what you want, then you can make an additional post here, where you explain what you have done in your own calendar to achieve it.

Re: integration of birthday overview script with LuxCal?

Guys,

I think that if Roel would be able to extend the "add user template" and the database  with 3 additional fields, we can easily get there.
-- new user field 1: first name
-- new user field 2: last name
-- new user field 3: birthdate.

When these extensions are available, I can easily adapt my PHP-file to use the above mentioned new user fields
as input for the birthday overview script.

Regards, Lucas

Re: integration of birthday overview script with LuxCal?

Hello Lucas,

I've been very busy lately with other IT matters the last couple of days. I have read your post and will reread it again tomorrow and come back to you with more details or questions wink

Grüße,
Roel

Re: integration of birthday overview script with LuxCal?

Hello Lucas,

First a little note: I suggest to upgrade to the latest LuxCal version 4.7.8. In the calendar sidebar of your current verion, when you click an event, then you get a message "PHP session expired". This problem has been solved in the latest version.
Your question about integrating a birthday calendar with the LuxCal calendar: Yes, I think this makes sense! As already mentioned by Schwartz, actually LuxCal has a number of so-called displays (see LuxCal website - LuxCal Displays). Displays are almost the same as the sidebar you are currently using, but they are very easy to use and highly configurable (user interface styles and content). With the displays of the last LuxCal version, you have the option to force the users to log in. So you could have a calendar category "public birthdays" and another category "private birthdays" and then have a display with the public birthdays, where users don't need to log in and another display with a log in button, where users will have to log in to see the birthdays.
Alternatively, if you prefer, you can also have one single birthday display where public users will see the public birthdays and when logged in they will in addition see the private birthdays.

When you decide to go into this direction, then I or Schwartz (he knows exactly how it works), can help you.

Kind regards,
Roel

9 (edited by lucas 2020-05-31 11:27:39)

Re: integration of birthday overview script with LuxCal?

Hi Roel,

In the meantime I have followed your advice to upgrade the calendar to the 4.7.8 version.
And I have done some tweaking to the display as well. Indeed the issue with "PHP session expired" message, is solved now.
All seems to be in perfect shape and is running smoothly.

I am diving into your script to see what modifications need to be made exactly to get a birthday overview list in place.

Registered users
If we are talking about registered users, we need to capture their first name, their last name as well, as at present users are registered with only a self-choosen username. Also we need to capture their birthdate as well, as we also would like to show in the birthday overview not only a name, but also how young-old a person has gotten. I guess that for registered users this could be done with a small extension of the user registration form.

Capture names and birthdates of other persons as well
This looks a bit more difficult. In my example the registered users are teachers that also would like to make a list with birthdays of their pupils.
However, these pupils are (and wil stay) non-registered users of the calender script. They just visit a homepage where they can see what birthdays are ahead. So here we have to find a solution (that probably does not use the user registration form to save first names / last names and birthdates ...)

To be continued wink.

Re: integration of birthday overview script with LuxCal?

With the help of Schwartz, I was able to integrate a birthday list in my calendar. In order to do that, if completed the following steps:

1. Changed the settings in the Views section to show a sidepanel with Info area checked
2. Logged onto the server and under the configs folder, copied one of the displays from the ”configs” subfolder “samples”  to the “configs” folder.
3. Made necessary changes to the display form to indicate my preferences. Read the displays.html in the configs folder for details
4. In the sidepanel folder on the server, copy one of the text files in the samples folder and place it in the sidepanel folder
5. The code you will need there is <iframe height="600" width="275" class="display" src="display3.php?cnf=display3a"></iframe>  The display3.php     file is the display I want to display and the ?cnf=display3a is the file I copied from the configs sample folder to the configs folder.

The calendar can be viewed here.

My LuxCal Web Calendar

Hopefully the directions were clear enough.

Re: integration of birthday overview script with LuxCal?

Great example, looks very nice !!!

The addition I am still looking for in the sidepanel,
is to also show how young/old someone has become.

Perhaps an extra birthdate-line in the event-window could do the trick here.
Afterwards, the related field can be grabbed from the database to "calculate" and display how young/old someone will be.

Regards, Lucas

Re: integration of birthday overview script with LuxCal?

lucas wrote:

Great example, looks very nice !!!

The addition I am still looking for in the sidepanel,
is to also show how young/old someone has become.

Perhaps an extra birthdate-line in the event-window could do the trick here.
Afterwards, the related field can be grabbed from the database to "calculate" and display how young/old someone will be.

Regards, Lucas

Thank you. Your modification sounds great...looking forward to looking at it.

Re: integration of birthday overview script with LuxCal?

OK.

Will start working on it wink.
Hope to present a possible solution within one week or so.

Regards, Lucas

Re: integration of birthday overview script with LuxCal?

Hi Guys,

What I could do for you is the following:
For the event category "birthday", where the Repeat is set to "every year" I can add a check box "show age". When this check box is selected, the software will look in the event description field and if it finds a "year" (1987, 2013, etc.) it will automatically add the age to the event title. So the title could look as follows:
Harry Potter's birthday (2003)
Or something similar.

Would that help?

Roel

15 (edited by lucas 2020-06-02 11:57:52)

Re: integration of birthday overview script with LuxCal?

Roel wrote:

Hi Guys,

What I could do for you is the following:
For the event category "birthday", where the Repeat is set to "every year" I can add a check box "show age". When this check box is selected, the software will look in the event description field and if it finds a "year" (1987, 2013, etc.) it will automatically add the age to the event title. So the title could look as follows:
Harry Potter's birthday (2003)
Or something similar.

Would that help?

Roel

Hi Roel,

For sure that would make things already a lot easier!
Ideally, if in the event description the birth year is mentioned (for example 2003),
the 2020 event title showing up in the display should be "Harry Potter (17)"
and the 2021 event title showing up in the display should be "Harry Potter (18)".

Regards, Lucas.

P.S.: Am I correct you intend to make a kind of combination of the "day" and "month" of the initial (first) birthday event in combination with the birthdate year that is mentioned separately in the event description?

Re: integration of birthday overview script with LuxCal?

Hi Lucas,

Example:,
You create an event with title "Harry Potter" for the 16th of May and a description field you put "2003" and for this event category (birthdays) you check the "show age" checkbox (the checkbox I propose to add).
Now each time the event is displayed, the software will make the calculation 2020 - 2003 = 17 and add "(17)" to the event title. So in 2021 the event title will be "Harry Potter (18)" and in 2026 the event title will be "Harry Potter (23), and so on.

Roel

Re: integration of birthday overview script with LuxCal?

Hi Roel,

Great, that is exactly how it should be!

the moment your modification is available,
I will focus on further optimizing the already available display for this (thank you: fbonani and schwartz)
and make a new display with some additional options for displaying some variations of the birthdaylist as well.

Best regards, Lucas.

Re: integration of birthday overview script with LuxCal?

Hi Lucas,

The modification is available.

Roel

Re: integration of birthday overview script with LuxCal?

Hi Roel,

Great! Let's go for display 1.

Greetz, Lucas

Re: integration of birthday overview script with LuxCal?

Hi guys,

I've sent Lucas the changed files and instructions to create a birthday calendar. If someone else is interested, drop me a mail (Contact US page).

Roel

21

Re: integration of birthday overview script with LuxCal?

Pressure cleaning is an effective method for prevent wear to building exteriors. By decreasing the wear and wear resulting from mold, mildew, and grime accumulation, building exteriors remain in excellent condition. Frequent cleaning removes impurities that can result in building deterioration and degrade structural components. This routine care keeps the integrity and appearance of the property, reducing the requirement for expensive fixes and replacements. Moreover, a tidy exterior improves the overall image of the company, making it to be more appealing to clients and clients. By investing in power washing, building managers may safeguard their assets and ensure they stay in optimal state.  If you are interested, please visit my domestic and corporate high-pressure washing webpage to learn more.

Solar Panel Steam Cleaning near Elk Grove for trucking companies

Creating a Cleaner Atmosphere for Industrial Settings fe74090