[MODDB] Upcoming Birthday list 1.0.0a

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
User avatar
Origin30
Registered User
Posts: 122
Joined: Wed Sep 19, 2007 1:41 pm

Re: [RC] Upcoming Birthday list 1.0.0

Post by Origin30 »

just installed, works a treat, thanks, great mod.
fimo
Registered User
Posts: 147
Joined: Tue Jan 15, 2008 12:01 am
Location: Sweden

Re: [RC] Upcoming Birthday list 1.0.0

Post by fimo »

I have just installed this mod, and it works great....

But i have a 2 questions !

1)
is it ppossible to have members age displayed in the profile box which is next to the post/topics
they make eg. today it says..."posts.xx - joined "date of the date" - "PM"
but how can i have the age in there aswell ?

2)
Can i make the birthday age field a MUST fill out for new members and is yes, how do i do that ?

thanks for an answer :roll:
User avatar
justhink
Registered User
Posts: 55
Joined: Fri Jun 29, 2007 10:26 pm
Name: Saugata Datta

Re: [RC] Upcoming Birthday list 1.0.0

Post by justhink »

fimo wrote:I have just installed this mod, and it works great....

But i have a 2 questions !

1)
is it ppossible to have members age displayed in the profile box which is next to the post/topics
they make eg. today it says..."posts.xx - joined "date of the date" - "PM"
but how can i have the age in there aswell ?

2)
Can i make the birthday age field a MUST fill out for new members and is yes, how do i do that ?

thanks for an answer :roll:
you hav to use following mod with this 1 to solve ur problem..

Code: Select all

http://www.phpbb.com/community/viewtopic.php?f=70&t=566803&hilit=birthday#p3114969
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [RC] Upcoming Birthday list 1.0.0

Post by lefty74 »

fimo wrote:I have just installed this mod, and it works great....

But i have a 2 questions !

1)
is it ppossible to have members age displayed in the profile box which is next to the post/topics
they make eg. today it says..."posts.xx - joined "date of the date" - "PM"
but how can i have the age in there aswell ?

2)
Can i make the birthday age field a MUST fill out for new members and is yes, how do i do that ?

thanks for an answer :roll:
sorry, i somehow missed your reply to this thread before.

both questions do not have anything to do with this mod so you might want to follow justthink's suggestion.
justhink wrote:
fimo wrote:I have just installed this mod, and it works great....

But i have a 2 questions !

1)
is it ppossible to have members age displayed in the profile box which is next to the post/topics
they make eg. today it says..."posts.xx - joined "date of the date" - "PM"
but how can i have the age in there aswell ?

2)
Can i make the birthday age field a MUST fill out for new members and is yes, how do i do that ?

thanks for an answer :roll:
you hav to use following mod with this 1 to solve ur problem..

Code: Select all

http://www.phpbb.com/community/viewtopic.php?f=70&t=566803&hilit=birthday#p3114969
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
fimo
Registered User
Posts: 147
Joined: Tue Jan 15, 2008 12:01 am
Location: Sweden

Re: [RC] Upcoming Birthday list 1.0.0

Post by fimo »

Okay thanks for the answers u 2.....

And thanks for this nice birthday mod :D
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by lefty74 »

Code: Select all

## 2008-03-12 - Version 1.0.0a
##      - made little code changes after MOD denial
also added an author note how to cache the query if you find it taking a long time to execute. i personally didnt find this to be the case (took longer to load the cached query then run it 'fresh' ) which is why i have provided the option.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by alez »

have a problem installing this nice mod, i hope u can help me:

when i putt something else than 0 (or blanck) in Number of Days to display upcoming birthdays:

i get:

Code: Select all

[phpBB Debug] PHP Notice: in file /index.php on line 106: include_once(./includes/functions_upcbirthdays.php) [function.include-once]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /index.php on line 106: include_once() [function.include]: Failed opening './includes/functions_upcbirthdays.php' for inclusion (include_path='.;C:/php5/pear')

Fatal error: Call to undefined function get_upcbirthdays() in C:\Documents and Settings\Alezion\Escritorio\Pruebas phpbb\wamp\www\index.php on line 108
if i leave it blank, i have no problems...

sql (is it ok?)
Image

ps: im testing it locally

thanxs!!
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by lefty74 »

did you do the following?

Code: Select all

#
#-----[ COPY ]------------------------------------------
#
copy root/includes/functions_upcbirthdays.php to includes/functions_upcbirthdays.php
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by alez »

:oops: :oops: :oops: :oops: :oops: :lol:
ive spend to much time on pc today!!

thanxs!!!!!, everything works nice! great mod!
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by nickvergessen »

hi lefty74

why don't you use the phpbb3 function for the user-links.
its much better to combine with seo etc.
and the code is shorter ;)

includes/functions_upcbirthdays.php

find:

Code: Select all

			if ($ucbirthdayrow[$i]['user_colour'])
			{
				$user_colour = ' style="color:#' . $ucbirthdayrow[$i]['user_colour'] . '"';
				$ucbirthdayrow[$i]['username'] = '<strong>' . $ucbirthdayrow[$i]['username'] . '</strong>';
			}
			else
			{
				$user_colour = '';
			}
replace-with:

Code: Select all

$user_link = get_username_string('full', $ucbirthdayrow[$i]['user_id'], $ucbirthdayrow[$i]['username'], $ucbirthdayrow[$i]['user_colour']);
find:

Code: Select all

			$birthday_ahead_list .= (($birthday_ahead_list != '') ? ', ' : '') . '<a' . $user_colour . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . $ucbirthdayrow[$i]['user_id']) . '" title="' . $user->format_dateucb(($ucbirthdayrow[$i]['user_birthday_tstamp']), 'D, j. M') . '">' . $ucbirthdayrow[$i]['username'] . '</a>';
replace-with:

Code: Select all

			$birthday_ahead_list .= (($birthday_ahead_list != '') ? ', ' : '') . '<span title="' . $user->format_dateucb(($ucbirthdayrow[$i]['user_birthday_tstamp']), 'D, j. M') . '">' . $user_link . '</span>';
No Support via PM
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by lefty74 »

hi,
why don't you use the phpbb3 function for the user-links.
probably because i never thought of it :P

thanks for the suggestion :)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by jalaln »

If we set 1 in "Number of days to display upcoming birthdays", wouldn't it be cool if it displays: "Users with a birthday tomorrow" instead of "Users with a birthday within the next 1 days." :?: :)
No more spambots for phpBB2 and phpBB3.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by lefty74 »

i will be doing within the next day instead of next x days if it is one day and then you can change it yourself. ;) i am just afraid that if i put tomorrow in the mod, then people will be asking for the day after tomorrow, next week, next month etc and i really think next x days is sufficient. :P
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Sascha Mueller
Registered User
Posts: 95
Joined: Tue Mar 28, 2006 8:11 pm
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by Sascha Mueller »

Is this mod ready for phpBB 3.0.1 ?
Please excuse my bad English, I'm German!
ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA
Contact:

Re: [RC2] Upcoming Birthday list 1.0.0a

Post by ham1299 »

Sascha Mueller wrote:Is this mod ready for phpBB 3.0.1 ?
Works fine for me.
Heather
Locked

Return to “[3.0.x] MODs in Development”