is not needed in member-only templates
authorRoland Häder <roland@mxchange.org>
Sun, 20 Jun 2010 23:44:10 +0000 (23:44 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 20 Jun 2010 23:44:10 +0000 (23:44 +0000)
inc/modules/member/what-points.php
templates/de/html/member/member_mydata_edit.tpl
templates/de/html/member/member_mydata_overview.tpl
templates/de/html/member/member_points_bonus_rows.tpl

index a55da24..38065ed 100644 (file)
@@ -152,7 +152,7 @@ if (isExtensionInstalledAndNewer('user', '0.1.2')) {
 if ($totalLocked == '0') $totalLocked = '0.00000';
 
 // Remember several values in constants
-$content['sum']   = ($totalPoints - getUserData('used_points'), false);
+$content['sum']   = ($totalPoints - getUserData('used_points'));
 $content['tref']  = $totalReferals;
 $content['tlock'] = $totalLocked;
 
index c0d5213..849ad87 100644 (file)
        <tr>
                <td align="right">{--SURNAME--}, {--FAMILY--}:</td>
                <td>
-                       <input type="text" name="surname" class="member_normal" size="15" maxlength="255" value="{%user,surname=$userid%}" />
-                       <input type="text" name="family" class="member_normal" size="15" maxlength="255" value="{%user,family=$userid%}" />
+                       <input type="text" name="surname" class="member_normal" size="15" maxlength="255" value="{%user,surname%}" />
+                       <input type="text" name="family" class="member_normal" size="15" maxlength="255" value="{%user,family%}" />
                </td>
        </tr>
        <tr>
                <td align="right">{--STREET_NR--}:</td>
                <td>
-                       <input type="text" name="street_nr" class="member_normal" size="25" maxlength="255" value="{%user,street_nr=$userid%}" />
+                       <input type="text" name="street_nr" class="member_normal" size="25" maxlength="255" value="{%user,street_nr%}" />
                </td>
        </tr>
        <tr>
                <td align="right">{--COUNTRY--}, {--ZIP--}, {--CITY--}:</td>
                <td>
-                       {%user,country,determineCountry=$userid%}
-                       <input type="text" name="zip" class="member_normal" size="5" maxlength="10" value="{%user,zip,bigintval=$userid%}" />
-                       <input type="text" name="city" class="member_normal" size="20" maxlength="255" value="{%city,city=$userid%}" />
+                       {%user,country,determineCountry%}
+                       <input type="text" name="zip" class="member_normal" size="5" maxlength="10" value="{%user,zip,bigintval%}" />
+                       <input type="text" name="city" class="member_normal" size="20" maxlength="255" value="{%city,city%}" />
                </td>
        </tr>
        <tr>
index 746ab69..abb8ea0 100644 (file)
        </tr>
        <tr>
                <td align="right">{--GENDER--}:</td>
-               <td><strong>{%user,gender,translateGender=$userid%}</strong></td>
+               <td><strong>{%user,gender,translateGender%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--SURNAME--}:</td>
-               <td><strong>{%user,surname=$userid%}</strong></td>
+               <td><strong>{%user,surname%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--FAMILY--}:</td>
-               <td><strong>{%user,family=$userid%}</strong></td>
+               <td><strong>{%user,family%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--STREET_NR--}:</td>
-               <td><strong>{%user,street_nr=$userid%}</strong></td>
+               <td><strong>{%user,street_nr%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--COUNTRY--}:</td>
-               <td><strong>{%user,country,determineCountry=$userid%}</strong></td>
+               <td><strong>{%user,country,determineCountry%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--ZIP--}:</td>
-               <td><strong>{%user,zip,bigintval=$userid%}</strong></td>
+               <td><strong>{%user,zip,bigintval%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--CITY--}:</td>
-               <td><strong>{%city,city=$userid%}</strong></td>
+               <td><strong>{%city,city%}</strong></td>
        </tr>
        <tr>
                <td align="right">{--EMAIL--}:</td>
index c6ba4a0..7f13874 100644 (file)
 </tr>
 <tr>
        <td class="member_data">{--BONUS_LOGIN_TOTAL--}</td>
-       <td class="member_data">{%user,login_bonus,translateComma=$userid%} {?POINTS?}</td>
+       <td class="member_data">{%user,login_bonus,translateComma%} {?POINTS?}</td>
        <td class="member_data"></td>
 </tr>
 <tr>
        <td class="member_data">{--BONUS_TURBO_TOTAL--}</td>
-       <td class="member_data">{%user,turbo_bonus,translateComma=$userid%} {?POINTS?}</td>
+       <td class="member_data">{%user,turbo_bonus,translateComma%} {?POINTS?}</td>
        <td class="member_data">-</td>
 </tr>
 <tr>
        <td class="member_data">{--BONUS_REF_TOTAL--}</td>
-       <td class="member_data">{%user,bonus_ref,translateComma=$userid%} {?POINTS?}</td>
+       <td class="member_data">{%user,bonus_ref,translateComma%} {?POINTS?}</td>
        <td class="member_data">-</td>
 </tr>
 <tr>
        <td class="member_data">{--BONUS_ORDER_TOTAL--}</td>
-       <td class="member_data">{%user,bonus_order,translateComma=$userid%} {?POINTS?}</td>
+       <td class="member_data">{%user,bonus_order,translateComma%} {?POINTS?}</td>
        <td class="member_data">-</td>
 </tr>
 <tr>
        <td class="member_data bottom">{--BONUS_STATS_TOTAL--}</td>
-       <td class="member_data bottom">{%user,bonus_stats,translateComma=$userid%} {?POINTS?}</td>
+       <td class="member_data bottom">{%user,bonus_stats,translateComma%} {?POINTS?}</td>
        <td class="member_data bottom">-</td>
 </tr>
 <tr>