if ((isExtensionActive('bonus')) && (empty($WHO))) {
// Check for maximum pages
$result_bonus = SQL_QUERY("SELECT
- `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`, `clicks`
+ `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`, `clicks`,
(`mails_sent` - `clicks`) AS `unconfirmed`
FROM
`{?_MYSQL_PREFIX?}_bonus`
// Put rows to constant for the main template
$content['rows'] = $OUT;
-// Initialize variables
-$content['confirmed'] = '---';
-$content['sent'] = '---';
-$content['receive'] = '---';
-
-// Only user >= v0.1.2: Fetch confirmed mails counter
-if (isExtensionInstalledAndNewer('user', '0.1.2')) {
- $add = '';
- $content['confirmed'] = getUserData('mails_confirmed');
-
- if (isExtensionInstalledAndNewer('user', '0.1.4')) {
- $content['sent'] = getUserData('emails_sent');
- $content['receive'] = getUserData('emails_received');
- } // END - if
-} // END - if
-
-// If TLOCK is 0 add 3 zeros for floating
-if ($content['total_locked'] == '0') $content['total_locked'] = '0.00000';
-
// Remember several values in constants
$content['total_points'] = ($content['total_points'] - getUserData('used_points'));
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">
{--EMAIL_RECEIVERS--}:<br />
- <strong class="admin_misc">$content[sent]</strong> ({--EMAIL_RUIDS--}:
+ <strong class="admin_misc">{%pipe,translateComma=$content[target_send]%}</strong> ({--EMAIL_RUIDS--}:
<strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
</tr>
<tr>
<td class="member_data">{--RECEIVED_MAILS--}:</td>
- <td class="member_data">{%pipe,translateComma=$content[receive]%}</td>
+ <td class="member_data">{%user,emails_received,translateComma%}</td>
<td class="member_data">-</td>
</tr>
<tr>
</tr>
<tr>
<td class="member_data">{--CONFIRMED_MAILS--}:</td>
- <td class="member_data">{%pipe,translateComma=$content[confirmed]%}</td>
+ <td class="member_data">{%user,mails_confirmed,translateComma%}</td>
<td class="member_data">-</td>
</tr>
<tr>
<td class="member_data">{--SENT_MAILS--}:</td>
- <td class="member_data">{%pipe,translateComma=$content[sent]%}</td>
+ <td class="member_data">{%user,emails_sent,translateComma%}</td>
<td class="member_data">-</td>
</tr>
</table>