Ignore:
Timestamp:
Sep 27, 2009, 6:17:56 PM (15 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] Fix for bug 1174

The unvalidated user's registration date is now displayed in red if validation have expired or in green if not expired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UserAdvManager_admin.php

    r3896 r3920  
    747747                        }
    748748                }
     749               
    749750
    750751// +-----------------------------------------------------------------------+
     
    848849                (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true'))
    849850                ? l10n('is_high_enabled') : l10n('is_high_disabled');
     851
     852                        $expiration = expiration($local_user['id']);
    850853             
    851                         if (isset($conf_nbc_UserAdvManager_ConfirmMail[1]) and $conf_nbc_UserAdvManager_ConfirmMail[0]=='true' )
    852         {
    853                 $template->append(
    854                 'users',
    855                 array(
    856                         'ID' => $local_user['id'],
    857                 'CHECKED' => $checked,
    858                 'U_PROFILE' => $profile_url.$local_user['id'],
    859                 'U_PERM' => $perm_url.$local_user['id'],
    860                 'USERNAME' => $local_user['username']
    861                                                         .($local_user['id'] == $conf['guest_id']
    862                                                         ? '<BR />['.l10n('is_the_guest').']' : '')
    863                 .($local_user['id'] == $conf['default_user_id']
    864                 ? '<BR />['.l10n('is_the_default').']' : ''),
    865                                                 'STATUS' => l10n('user_status_'.
    866                                                         $local_user['status']).(($local_user['adviser'] == 'true')
    867                 ? '<BR />['.l10n('adviser').']' : ''),
    868                                                 'EMAIL' => get_email_address_as_display_text($local_user['email']),
    869                 'GROUPS' => $groups_string,
    870                 'REGISTRATION' => $local_user['registration_date'],
    871                                         )
    872                                 );
    873                         }
     854                $template->append(
     855                'users',
     856        array(
     857                'ID' => $local_user['id'],
     858                'CHECKED' => $checked,
     859                'U_PROFILE' => $profile_url.$local_user['id'],
     860                'U_PERM' => $perm_url.$local_user['id'],
     861                'USERNAME' => $local_user['username']
     862                                                .($local_user['id'] == $conf['guest_id']
     863                                                ? '<BR />['.l10n('is_the_guest').']' : '')
     864                .($local_user['id'] == $conf['default_user_id']
     865                ? '<BR />['.l10n('is_the_default').']' : ''),
     866                                        'STATUS' => l10n('user_status_'.
     867                                                $local_user['status']).(($local_user['adviser'] == 'true')
     868                ? '<BR />['.l10n('adviser').']' : ''),
     869                                        'EMAIL' => get_email_address_as_display_text($local_user['email']),
     870                'GROUPS' => $groups_string,
     871                'REGISTRATION' => $local_user['registration_date'],
     872                'EXPIRATION' => $expiration,
     873                                )
     874                        );
    874875                }
    875876
Note: See TracChangeset for help on using the changeset viewer.