Hello!
I have found a Solution:
Would you show Guests and Users different Text
open Index.php
find
Code: Select all
case ($date < 1):
// if the hour is 6pm-11pm (18-23)
$s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
break;
case ($date < 4):
// if the hour is 1-3 am
$s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
break;
case ($date < 8):
// if the hour is 4-7 am
$s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
break;
case ($date < 12):
// if the hour is 8-11 am
$s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
break;
case ($date < 18):
// if the hour is 12-5pm (12-17)
$s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
break;
case ($date < 24):
// if the hour is 6pm-11pm (18-23_
$s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
break;
}
Replace with
Code: Select all
case ($date < 1):
// if the hour is 6pm-11pm (18-23)
if ($user->data['is_registered']
$s_welcome = sprintf($user->lang['GOOD_NIGHT_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
break;
case ($date < 4):
// if the hour is 1-3 am
if ($user->data['is_registered'])
$s_welcome = sprintf($user->lang['UP_LATE_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
break;
case ($date < 8):
// if the hour is 4-7 am
if ($user->data['is_registered'])
$s_welcome = sprintf($user->lang['UP_EARLY_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
break;
case ($date < 12):
// if the hour is 8-11 am
if ($user->data['is_registered'])
$s_welcome = sprintf($user->lang['GOOD_MORNING_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
break;
case ($date < 18):
// if the hour is 12-5pm (12-17)
if ($user->data['is_registered'])
$s_welcome = sprintf($user->lang['GOOD_AFTERNOON_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
break;
case ($date < 24):
// if the hour is 6pm-11pm (18-23_
if ($user->data['is_registered'])
$s_welcome = sprintf($user->lang['GOOD_EVENING_R'], $u_user_name);
else
$s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
break;
}
Open language/de/common.php
find
Code: Select all
// BEGIN Welcome Mod
$lang = array_merge($lang, array(
'UP_LATE' => 'Du bist spät unterwegs %1$s, solltest du nicht längst schlafen?',
'UP_EARLY' => 'Guten Morgen %1$s, du bist aber schon früh unterwegs.',
'GOOD_MORNING' => 'Guten Morgen %1$s, was für ein schöner Morgen.',
'GOOD_AFTERNOON' => 'Guten Tag %1$s, schön daß du da bist.',
'GOOD_EVENING' => 'Guten Abend %1$s, schön dich hier zu sehen.',
'GOOD_NIGHT' => 'Gute Nacht %1$s, es wird Zeit, schlafen zu gehen.',
'MEMBER_FOR' => 'Mitglied seit:',
'WELCOME_GUEST' => 'Gast',
'WELCOME_HOUR' => 'Stunde',
'WELCOME_HOURS' => 'Stunden',
'WELCOME_DAY' => 'Tag',
'WELCOME_DAYS' => 'Tage',
'WELCOME_MONTH' => 'Monat',
'WELCOME_MONTHS' => 'Monate',
'WELCOME_YEAR' => 'Jahr',
'WELCOME_YEARS' => 'Jahre',
));
// END Welcome Mod
Replace with
Code: Select all
// BEGIN Welcome Mod
$lang = array_merge($lang, array(
'UP_LATE' => '%1$s, Your text for Guests',
'UP_LATE_R' => '%1$s, Your Text for Users'',
'UP_EARLY' => '%1$s, Your text for Guests',
'UP_EARLY_R' => '%1$s, Your Text for Users'',
'GOOD_MORNING' => '%1$s, Your text for Guests',
'GOOD_MORNING_R' => '%1$s, Your Text for Users'',
'GOOD_AFTERNOON' => '%1$s, Your text for Guests',
'GOOD_AFTERNOON_R' => '%1$s, Your Text for Users'',
'GOOD_EVENING' => '%1$s, Your text for Guests',
'GOOD_EVENING_R' => '%1$s, Your Text for Users'',
'GOOD_NIGHT' => '%1$s, Your text for Guests',
'GOOD_NIGHT_R' => '%1$s, Your Text for Users'',
'MEMBER_FOR' => 'Mitglied seit:',
'WELCOME_GUEST' => 'Gast',
'WELCOME_HOUR' => 'Stunde',
'WELCOME_HOURS' => 'Stunden',
'WELCOME_DAY' => 'Tag',
'WELCOME_DAYS' => 'Tagen',
'WELCOME_MONTH' => 'Monat',
'WELCOME_MONTHS' => 'Monaten',
'WELCOME_YEAR' => 'Jahr',
'WELCOME_YEARS' => 'Jahren',
));
// END Welcome Mod
Greets
Marcus