- define('_REFS' , $REFS);
- define('_CATS' , $CATS);
- define('_LINKS', $LINKS);
- define('_ADMIN_LINKS', generateMemberAdminActionLinks($uid, $DATA['status']));
- $DATA['gender'] = translateGender($DATA['gender']);
- $DATA['email_link'] = generateMemberEmailLink($DATA['email'], "user_data");
- $DATA['status'] = translateUserStatus($DATA['status']);
- $DATA['last_online'] = generateDateTime($DATA['last_online'], '0');
- $DATA['used_points'] = translateComma($DATA['used_points']);
- if ($DATA['emails_sent'] > 0) $DATA['emails_sent'] = $base."&what=email_details&uid=".$uid."\">".translateComma($DATA['emails_sent'])."</a>]";
- $DATA['joined'] = generateDateTime($DATA['joined'], '0');
- $DATA['last_update'] = generateDateTime($DATA['last_update'], '0');
- $DATA['last_profile_sent'] = generateDateTime($DATA['last_profile_sent'], '0');
- $DATA['total'] = translateComma(GET_TOTAL_DATA($uid, "user_points", "points"));
- $DATA['locked'] = translateComma(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
- $DATA['lock_timestamp'] = generateDateTime($DATA['lock_timestamp'], "2");
-
- // Is the lock reason not set?
- if (!isset($DATA['lock_reason'])) $DATA['lock_reason'] = '---';
+ $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'] = getTotalPoints($content['userid']);
+ $content['locked_points'] = countSumTotalData($userid, 'user_points', 'locked_points') + countSumTotalData($userid, 'user_points', 'locked_order_points');
+ $content['own_points'] = countSumTotalData($userid, 'user_points', 'points') + countSumTotalData($userid, 'user_points', 'order_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