Welcome back

No Names for Birthdays - Welcome back

No Names for Birthdays

by nudels64 » Tue Oct 23, 2018 7:42 am

With the birthdays with me only the number 1 is indicated, no matter how many birthdays there are.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by alex75 » Tue Oct 23, 2018 8:18 pm

this can depend on your settings.
Check in acp / general / configuration / features / Enable the Birthdays Panel.
and on: acp / general / configuration / features / processes / Enable the Birthdays Panel.
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: No Names for Birthdays

by nudels64 » Tue Oct 23, 2018 8:56 pm

Thanks, everything is active and the birthdays are also displayed in the index, only in the extensions "Welcome back" not.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by alex75 » Wed Oct 24, 2018 6:41 pm

which style do you use? can you give me a link to the forum?
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 6:50 pm

phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by alex75 » Wed Oct 24, 2018 7:09 pm

Did you add the file for your language? how did you create it?
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 7:15 pm

I did. It's all in german and is displayed correctly except the birthday children. The translation comes from here: https://www.phpbb.com/customise/db/exte ... pic/154426
But that's not where the error lies. It seems to be a problem with the template.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by alex75 » Wed Oct 24, 2018 7:21 pm

in that page the translation for your language is not available for version 1.0.15
This could be the problem.
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 7:26 pm

Code: Select all

if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
$lang = array_merge($lang, array(
'WELCOMEBACK_ON'			=> 'Welcome back on %s',
'WELCOMEBACK_HI'			=> 'Hi',
'WELCOMEBACK_SEE'			=> 'Nice to see you here',
'WBMY_TOPICS'				=> 'Your Topics',
'YOUR_SUBSCRIBED'			=> 'Your subscribed',
'YOUR_BOOKMARKS'			=> 'Your bookmarks',
'YOUR_DRAFTS'		    	=> 'Your drafts',
'YOUR_ATTACHMENTS'		   	=> 'Your attachments',
'IN_THIS_FORUM'		    	=> 'In this forum',
'IN_THIS_TOPIC'		    	=> 'In this topic',
'YOU_ARE_HERE'		    	=> 'You are here',
));
The translation doesn't say anything about birthdays.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 7:45 pm

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
	&bull; <strong>{L_BIRTHDAYS}</strong>
	<p><!-- IF .birthdays -->{L_CONGRATULATIONS}{L_COLON} <strong><!-- BEGIN birthdays -->{birthdays.USERNAME}<!-- IF birthdays.AGE !== '' --> ({birthdays.AGE})<!-- ENDIF --><!-- IF not birthdays.S_LAST_ROW -->, <!-- ENDIF --><!-- END birthdays --></strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->
I copied the code from the standard template and copied it into your template file. Now the birthday child is displayed.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 7:54 pm

Now it's perfect.
Last edited by nudels64 on Wed Oct 24, 2018 7:54 pm
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: No Names for Birthdays

by alex75 » Wed Oct 24, 2018 7:54 pm

maybe you have previously made changes to your template? in my local forum with style basic, I view birthdays.
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: No Names for Birthdays

by nudels64 » Wed Oct 24, 2018 8:53 pm

No, no change made. Simply installed.
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact: