TinyPortal

Development => Support => Topic started by: gijs on November 09, 2005, 07:16:41 PM

Title: upcoming birthdays
Post by: gijs on November 09, 2005, 07:16:41 PM
is there any code around for upcoming birthdays (events, etc) in a block?
Title: Re: upcoming birthdays
Post by: winrules on November 09, 2005, 09:28:44 PM
They these in a php-block:

for just birthdays:
ssi_todaysBirthdays();

for holidays:
ssi_todaysHolidays();

for events:
ssi_todaysEvents();

and for the whole calendar:
ssi_todaysCalendar();
Title: Re: upcoming birthdays
Post by: gijs on November 09, 2005, 09:35:58 PM
That will only give today's stuff, I'm looking for upcoming birthdays (incl today's by the way)
Title: Re: upcoming birthdays
Post by: winrules on November 10, 2005, 12:00:27 AM
No, the function names are confussion but it actually gives all birthdays in i think 7 days.
Title: Re: upcoming birthdays
Post by: bloc on November 10, 2005, 01:35:46 PM
An even longer if you set the timespan higher. "Admin / calendar" or "admin / features and options / calendar".
Title: Re: upcoming birthdays
Post by: gijs on November 10, 2005, 02:49:39 PM
Great!

Is there a way to also display the dates of the birthdays?

Now it sais for example:
gijs (32)

when clicking on a name/age, it only shows the members/users profile, but the birthday is lacking, so no clue when the birthday is...

what I like is:
gijs (32, nov 23)

or something similar.

Title: Re: upcoming birthdays
Post by: winrules on November 10, 2005, 08:43:07 PM
Quote from: gijs on November 10, 2005, 02:49:39 PM
Great!

Is there a way to also display the dates of the birthdays?

Now it sais for example:
gijs (32)

when clicking on a name/age, it only shows the members/users profile, but the birthday is lacking, so no clue when the birthday is...

what I like is:
gijs (32, nov 23)

or something similar.


No, not unless you make your own database call or edit ssi.php