+ // Prepare data for template
+ $content['email_link'] = generateEmailLink($content['email'], 'user_data');
+ $content['last_online'] = generateDateTime($content['last_online'], 0);
+ $content['joined'] = generateDateTime($content['joined'], 0);
+ $content['last_update'] = generateDateTime($content['last_update'], 0);
+ $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], 0);
+ $content['total_points'] = countSumTotalData($userid, 'user_points', 'points');
+ $content['locked'] = countSumTotalData($userid, 'user_points', 'locked_points');
+ $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
+ $content['nickname'] = '{--EXT_NICKNAME_404--}';
+
+ // Link to email_details if some are sent
+ if ($content['emails_sent'] > 0) {
+ $content['emails_sent'] = $base . '&what=email_details&userid=' . $userid . '%}">}{%pipe,translateComma=' . $content['emails_sent'] . '%}</a>]';
+ } // END - if
+
+ // Nickname inclusion?
+ // @TODO Rewrite these to filters
+ if (isExtensionInstalled('nickname')) {
+ $content['nickname'] = getNickname($content['userid']);
+ } // END - if
+
+ // Clickrate
+ $content['click_rate'] = '0';
+ if ($content['emails_received'] > 0) {
+ $content['click_rate'] = ($content['mails_confirmed'] / $content['emails_received'] * 100);
+ } // END - if
+
+ // Is the extension 'country' installed?
+ if (isExtensionActive('country')) {
+ // Then overwrite country information
+ $content['country'] = generateCountryInfo($content['country_code']);
+ } elseif ($content['country'] == '0') {
+ // Zero id???
+ $content['country'] = '???';
+ }
+
+ // Add userid
+ $content['userid'] = $userid;
+
+ // Load user-details template
+ loadTemplate('admin_user_details', false, $content);
+ } else {
+ // Account does not exist!
+ displayMessage(getMaskedMessage('ADMIN_MEMBER_404', $userid));