added an other display-type for accounts: Firstname Lastname [lid]

changed < > into [ ]
This commit is contained in:
Ralf Becker 2003-05-04 15:14:06 +00:00
parent e152c6727d
commit 06489ff747
2 changed files with 6 additions and 2 deletions

View File

@ -429,11 +429,14 @@
switch($display)
{
case 'all':
$name = "&lt;$lid&gt; ";
$name = '['.$lid.'] ';
// fall-through
case 'lastname':
$name .= implode(', ',$a);
break;
case 'firstall':
$name = $firstname . ' ' . $lastname . ' ['.$lid.']';
break;
case 'firstname':
default:
$name = $firstname . ' ' . $lastname;

View File

@ -128,7 +128,8 @@
'firstname' => lang('Firstname'). ' '.lang('Lastname'),
'lastname' => lang('Lastname').', '.lang('Firstname'),
'username' => lang('username'),
'all' => '&lt;'.lang('username').'&gt; '.lang('Lastname').', '.lang('Firstname')
'firstall' => lang('Firstname').' '.lang('Lastname').' ['.lang('username').']',
'all' => '['.lang('username').'] '.lang('Lastname').', '.lang('Firstname')
);
create_select_box('How do you like to display accounts','account_display',$account_display,
'Set this to your convenience. For security reasons, you might not want to show your Loginname in public.');