// TOP logins
$result = SQL_QUERY("SELECT
- `userid`, `total_logins`, `last_online`
+ `userid`, `last_online`
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
$content = array(
'cnt' => $count,
'userid' => $content['userid'],
- 'nickname' => $content['nickname'],
- 'total_logins' => $content['total_logins'],
- 'points' => getTotalPoints($content['userid']),
- 'last_online' => generateDateTime($content['last_online'], 3),
+ 'last_online' => generateDateTime($content['last_online'], '3'),
);
// Load row template
$OUT = ''; $count = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for template
- $content = array(
- 'cnt' => $count,
- 'userid' => $content['userid'],
- 'nickname' => $content['nickname'],
- 'points' => $content['points'],
- 'last_online' => generateDateTime($content['last_online'], 3)
- );
+ $content['last_online'] = generateDateTime($content['last_online'], '3');
// Load row template
$OUT .= loadTemplate('guest_top10_row_earner', true, $content);
'cnt' => $count,
'userid' => $content['userid'],
'refs' => $content['refs'],
- 'nickname' => $content['nickname'],
- 'last_online' => generateDateTime($content['last_online'], 3)
+ 'last_online' => generateDateTime($content['last_online'], '3')
);
// Load row template
<tr>
<td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
<td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
- <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[total_logins]%}</td>
- <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+ <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%user,total_logins,translateComma=$content[userid]%}</td>
+ <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
<td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
</tr>