- define('_BIRTHDAY', MAKE_DATETIME(mktime(0, 0, 0, $DATA[9], $DATA[8], $DATA[10]), "3"));
- define('_REFS' , $REFS);
- define('_CATS' , $CATS);
- define('_LINKS', $LINKS);
- define('_ADMIN_LINKS', MEMBER_ACTION_LINKS($uid, $DATA[14]));
- $DATA[0] = TRANSLATE_GENDER($DATA[0]);
- $DATA[28] = CREATE_EMAIL_LINK($DATA[7], "user_data");
- $DATA[14] = TRANSLATE_STATUS($DATA[14]);
- $DATA[16] = MAKE_DATETIME($DATA[16], "0");
- $DATA[20] = TRANSLATE_COMMA($DATA[20]);
- if ($DATA[21] > 0) $DATA[21] = $BASE."&what=email_details&u_id=".$uid."\">".$DATA[21]."</A>";
- $DATA[22] = MAKE_DATETIME($DATA[22], "0");
- $DATA[23] = MAKE_DATETIME($DATA[23], "0");
- $DATA[24] = MAKE_DATETIME($DATA[24], "0");
- if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---";
- $DATA['total'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points"));
- $DATA['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
-
- if (EXT_IS_ACTIVE("nickname")) {
- if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---";
- } else {
- $DATA[27] = EXT_NICKNAME_404;
+ $content['email_link'] = generateEmailLink($content['email'], 'user_data');
+ $content['last_online'] = generateDateTime($content['last_online'], 0);
+ if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&what=email_details&userid=' . $userid . '%}">}{%pipe,translateComma=' . $content['emails_sent'] . '%}</a>]';
+ $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'] = 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--}';
+
+ // Nickname inclusion?
+ // @TODO Rewrite these to filters
+ if (isExtensionInstalled('nickname')) $content['nickname'] = getNickname($content['userid']);
+
+ // 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'] = '???';