'ADMIN_CONFIG_BEG_USERID_TIMEOUT' => "Zeitsperre gegen eine Mitglied-Id",
'ADMIN_CONFIG_BEG_REMOTE_IP_TIMEOUT' => "Zeitsperre gegen eine IP-Nummer",
'BEG_LINK_BY' => "Bettel-Link bei <strong>{?MAIN_TITLE?}</strong>",
- 'BEG_LINK_USERID' => "Unser Mitglied <span class=\"data\">%s</span> hat {?POINTS?} gebettelt.",
+ 'BEG_LINK_USERID' => "Unser Mitglied <span class=\"data\">%s</span> hat gerade {?POINTS?} gebettelt.",
'BEG_USERID_STEAL_1' => "Das Mitglied ",
- 'BEG_USERID_STEAL_2' => " hat soeben ",
- 'BEG_USERID_STEAL_3' => " {?POINTS?} bei Ihnen erbettelt.",
- 'BEG_CLICKS' => "Dies war insgesamt der <strong>%s.</strong> Klick auf sein Bettel-Link.",
+ 'BEG_USERID_STEAL_2' => " hat soeben <strong>{%%pipe,translateComma=%s%%} {?POINTS?}</strong> bei Ihnen erbettelt.",
+ 'BEG_CLICKS' => "Dies war insgesamt der <strong>{%%pipe,translateComma=%s%%}.</strong> Klick auf sein Bettel-Link.",
'BEG_THANKS_FOR_CLICK' => "Danke für Ihre Spende.",
'BEG_CONTINUE_REGISTER' => "Und weiter geht es zur Anmeldung bei {?MAIN_TITLE?} ...",
'BEG_SORRY_ANOTHER_WAS_HERE_1' => "Oh, schade! Es war vor kurzem schon einer hier! Das Mitglied ",
- 'BEG_SORRY_ANOTHER_WAS_HERE_2' => " hat von Ihnen auch keine ",
- 'BEG_SORRY_ANOTHER_WAS_HERE_3' => " {?POINTS?} erhalten.",
+ 'BEG_SORRY_ANOTHER_WAS_HERE_2' => " hat von Ihnen auch keine <strong>{%%pipe,translateComma=%s%%} {?POINTS?}</strong> erhalten.",
'BEG_THANKS_FOR_CLICK_AGAIN' => "Danke dennoch für den erneuten Klick.",
'BEG_POINTS_MIN_MAX' => "zwischen <strong>{%config,translateComma=beg_points%}</strong> und <strong>{%config,translateComma=beg_points_max%} {?POINTS?}</strong>",
'BEG_POINTS_FIXED' => "<strong>{%config,translateComma=beg_points%} {?POINTS?}</strong>",
return $code;
}
+// Template call-back function for displaying "username"
+function doTemplateDisplayUsername ($template, $clear = false, $userid = NULL) {
+ // Is a userid set?
+ if (!isValidUserId($userid)) {
+ // Please don't call this without a valid userid
+ debug_report_bug(__FUNCTION__, __LINE__, 'template=' . $template . ',clear=' . intval($clear) . ',userid[' . gettype($userid) . ']=' . intval($userid) . ' - Invalid userid provided.');
+ } // END - if
+
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__][$userid])) {
+ // Generate code
+ $GLOBALS[__FUNCTION__][$userid] = $userid . ' ({%user,nickname,fixEmptyContentToDashes=' . $userid . '%})';
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__][$userid];
+}
+
// [EOF]
?>
if ((isPostRequestElementSet('to_userid')) && (postRequestElement('to_userid') == $userid)) {
$OUT .= ' selected="selected"';
} // END - if
- $OUT .= '>' . $userid . ' ({%user,nickname,fixEmptyContentToDashes=' . $userid . '%})</option>';
+ $OUT .= '>{%template,DisplayUsername=' . $userid . '%}</option>';
} // END - while
$OUT .= '</select>';
$content['to_disabled'] = '';
<div style="height:50px">
- {--BEG_USERID_STEAL_1--}<strong>$content[userid]</strong>{--BEG_USERID_STEAL_2--}<strong>{%pipe,translateComma=$content[points]%}</strong>{--BEG_USERID_STEAL_3--}
+ {--BEG_USERID_STEAL_1--}
+ <strong>$content[userid]</strong>
+ {%message,BEG_USERID_STEAL_2=$content[points]%}
</div>
<div style="height:50px">
<div>
- {--BEG_SORRY_ANOTHER_WAS_HERE_1--}<strong>$content[userid]</strong>{--BEG_SORRY_ANOTHER_WAS_HERE_2--}<strong>{%pipe,translateComma=$content[points]%}</strong>{--BEG_SORRY_ANOTHER_WAS_HERE_3--}
+ {--BEG_SORRY_ANOTHER_WAS_HERE_1--}
+ <strong>$content[userid]</strong>
+ {%message,BEG_SORRY_ANOTHER_WAS_HERE_2=$content[points]%}
</div>
<div>
<tr>
- <td class="{%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
+ <td class="{%template,ColorSwitch%} bottom right">{%template,DisplayUsername=$content[userid]%}</td>
<td class="{%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
<td class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
</tr>
<tr>
<td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
- <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
+ <td class="top10_row2 {%template,ColorSwitch%} bottom right">{%template,DisplayUsername=$content[userid]%}</td>
<td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
<td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
</tr>
<tr>
<td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
- <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
+ <td class="top10_row2 {%template,ColorSwitch%} bottom right">{%template,DisplayUsername=$content[userid]%}</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>
<td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
- <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
+ <td class="top10_row2 {%template,ColorSwitch%} bottom right">{%template,DisplayUsername=$content[userid]%}</td>
<td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[refs]%}</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>
{%pipe,translateComma=$content[rank]%}.
</td>
<td class="rank_$content[rank] bottom {%template,ColorSwitch%}" align="center">
- $content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})
+ {%template,DisplayUsername=$content[userid]%}
</td>
<td class="rank_$content[rank] bottom {%template,ColorSwitch%}" align="center">
{%pipe,translateComma=$content[points]%}
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[refid] ({%user,nickname,fixEmptyContentToDashes=$content[refid]%})
+ {%template,DisplayUsername=$content[refid]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
$content[level_refid]
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[refid] ({%user,nickname,fixEmptyContentToDashes=$content[refid]%})
+ {%template,DisplayUsername=$content[refid]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
{%user,status,translateUserStatus=$content[refid]%}