// Language definitions
addMessages(array(
+ // Admin - config
'ADMIN_CONFIG_TOP10_TITLE' => "Einstellungen an TOP-Listen",
'ADMIN_CONFIG_TOP10_MAX_TOP10' => "Maximale Plätze pro Liste",
+
+ // Guest - title
+ 'GUEST_TOP10_LOGINS_TITLE' => "TOP{?top10_max?} - Logins",
+ 'GUEST_TOP10_EARNER_TITLE' => "TOP{?top10_max?} - {?POINTS?}-Verdiener",
+ 'GUEST_TOP10_REFERRAL_TITLE' => "TOP{?top10_max?} - Werber",
+
+ // Guest - notice
+ 'GUEST_TOP10_LOGINS_NOTICE' => "Diese Liste zeigt Ihnen, wer am häufigsten eingeloggt hat.",
+ 'GUEST_TOP10_EARNER_NOTICE1' => "Diese Liste zeigt Ihnen, wer die meisten {?POINTS?} selber verdient hat.",
+ 'GUEST_TOP10_EARNER_NOTICE2' => "Seit dem Update vom 24.10.2012 wird nicht mehr der Abzug verrechnet aber dafür der gesperrte Eigenverdienst mit verrechnet.",
+ 'GUEST_TOP10_REFERRAL_NOTICE' => "Diese Liste zeigt Ihnen, wer die meisten Mitglieder geworben hat.",
));
// [EOF]
// TOP earners
$result = SQL_QUERY("SELECT
- d.userid,
- (SUM(p.points) - d.used_points) AS `points`,
- d.last_online
+ d.`userid`,
+ SUM(p.`points` + p.`locked_points`) AS `points`,
+ d.`last_online`
FROM
- `{?_MYSQL_PREFIX?}_user_data` AS d
+ `{?_MYSQL_PREFIX?}_user_data` AS `d`
LEFT JOIN
- {?_MYSQL_PREFIX?}_user_points AS p
+ {?_MYSQL_PREFIX?}_user_points AS `p`
ON
- p.userid=d.userid
+ p.`userid`=d.`userid`
WHERE
- p.points > 0 AND
+ p.`points` > 0 AND
d.`status`='CONFIRMED'
" . runFilterChain('user_exclusion_sql', ' ') . "
GROUP BY
- p.userid
+ p.`userid`
ORDER BY
- points DESC,
- d.last_online DESC
+ `points` DESC,
+ d.`last_online` DESC
LIMIT {?top10_max?}", __FILE__, __LINE__);
$OUT = ''; $count = 1;
// TOP referral "hunter"
$result = SQL_QUERY("SELECT
- d.userid,
- SUM(r.counter) AS refs,
- d.last_online
+ d.`userid`,
+ SUM(r.`counter`) AS `refs`,
+ d.`last_online`
FROM
- `{?_MYSQL_PREFIX?}_user_data` AS d
+ `{?_MYSQL_PREFIX?}_user_data` AS `d`
LEFT JOIN
- {?_MYSQL_PREFIX?}_refsystem AS r
+ {?_MYSQL_PREFIX?}_refsystem AS `r`
ON
- r.userid=d.userid
+ r.`userid`=d.`userid`
WHERE
- r.counter > 0 AND
+ r.`counter` > 0 AND
d.`status`='CONFIRMED'
" . runFilterChain('user_exclusion_sql', ' ') . "
GROUP BY
- r.userid
+ r.`userid`
ORDER BY
- refs DESC,
- d.last_online DESC
+ `refs` DESC,
+ d.`last_online` DESC
LIMIT {?top10_max?}", __FILE__, __LINE__);
$OUT = ''; $count = 1;
class="table dashed">
<tr>
<td colspan="5" class="table_header bottom">
- <strong>TOP{?top10_max?} - Logins</strong>
+ <strong>{--GUEST_TOP10_LOGINS_TITLE--}</strong>
</td>
</tr>
<tr>
$content[logins_out]
<tr>
<td colspan="5" align="center" class="table_footer">
- <div class="notice tiny">Diese Liste zeigt Ihnen, wer am häufigsten eingeloggt hat.</div>
+ <div class="notice tiny">{--GUEST_TOP10_LOGINS_NOTICE--}</div>
</td>
</tr>
</table>
class="table dashed">
<tr>
<td colspan="4" class="table_header bottom">
- <strong>TOP{?top10_max?} - {?POINTS?}-Verdiener</strong>
+ <strong>{--GUEST_TOP10_EARNER_TITLE--}</strong>
</td>
</tr>
<tr>
$content[points_out]
<tr>
<td colspan="5" align="center" class="table_footer">
- <div class="notice tiny">Diese Liste zeigt Ihnen, wer die meisten {?POINTS?} verdient hat.</div>
+ <div class="notice tiny">{--GUEST_TOP10_EARNER_NOTICE--}</div>
</td>
</tr>
</table>
</div>
+<div class="notice">
+ {--GUEST_TOP10_EARNER_NOTICE2--}
+</div>
+
<br />
<div align="center">
class="table dashed">
<tr>
<td colspan="5" class="table_header bottom">
- <strong>TOP{?top10_max?} - Werber</strong>
+ <strong>{--GUEST_TOP10_REFERRAL_TITLE--}</strong>
</td>
</tr>
<tr>
$content[referrals_out]
<tr>
<td colspan="5" align="center" class="table_footer">
- <div class="notice tiny">Diese Liste zeigt Ihnen, wer die meisten Mitglieder geworben hat.</div>
+ <div class="notice tiny">{--GUEST_TOP10_REFERRAL_NOTICE--}</div>
</td>
</tr>
</table>