Fix for listing all user's stats instead of stats of only a specific sub id
authorRoland Häder <roland@mxchange.org>
Sun, 21 Oct 2012 15:42:32 +0000 (15:42 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Oct 2012 15:42:32 +0000 (15:42 +0000)
templates/de/html/member/member_list_subid_stats.tpl
templates/de/html/member/member_list_subid_stats_row.tpl
templates/xml/member/member_list_subid_stats.xml

index af1c3c8126a0d900b6dff2c56c614e8dbf4b5267..c8925e4a28c7bd75e9216dc34057cb1928c92cde 100644 (file)
@@ -1,12 +1,11 @@
 <div align="center">
 <table border="0" cellspacing="0" cellpadding="0" class="table dashed">
        <tr>
-               <td colspan="6" align="center" class="table_header bottom">
+               <td colspan="5" align="center" class="table_header bottom">
                        <strong>{--MEMBER_SUBID_STATS_TITLE--}</strong>
                </td>
        </tr>
        <tr>
-               <td align="center" class="header_column bottom right" width="20"><strong>{--ID_SELECT--}</strong></td>
                <td align="center" class="header_column bottom right"><strong>{--SUBID_VALUE--}</strong></td>
                <td align="center" class="header_column bottom right"><strong>{--REFERRER_URL--}</strong></td>
                <td align="center" class="header_column bottom right"><strong>{--REMOTE_IP--}</strong></td>
@@ -15,7 +14,7 @@
        </tr>
        $content
        <tr>
-               <td colspan="6" class="table_footer">
+               <td colspan="5" class="table_footer">
                        <a href="{%url=modules.php?module=login&amp;what=subids%}">{--MEMBER_BACK_SUBIDS_OVERVIEW_LINK--}</a>
                </td>
        </tr>
index 48405503d619fe30c42e4cd904ec93b6ec73919a..938f9d89b0ae6cc602947fba2b039ddc618b6bb6 100644 (file)
@@ -1,7 +1,4 @@
 <tr>
-       <td class="{%template,ColorSwitch%} bottom right" align="center">
-               <strong>$content[id]</strong>
-       </td>
        <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[subid]
        </td>
index 4c1882a5409015d05aa75b7ea2f142c0a12f78d7..d1ef38cad3719b48c75f4027b03a5254ef73d029 100644 (file)
@@ -64,7 +64,6 @@ MA  02110-1301  USA
                        always be set), alias (again can be left empty) and SQL function
                        (can also be left empty) which shall be applied on the column.
                        //-->
-                       <select-data-from-list-entry type="string" table="" value="id" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="subid" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="referral_url" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="remote_address" alias="" function="" />
@@ -76,8 +75,9 @@ MA  02110-1301  USA
                //-->
                <where-select-from-list>
                        <!--
-                       Search for current user's sub ids
+                       Search for current user's sub id statistics
                        //-->
+                       <where-select-from-list-entry type="string" table="" value="subid" condition="EQUALS" look-for="{%get,getSubId=id%}" />
                        <where-select-from-list-entry type="string" table="" value="refid" condition="EQUALS" look-for="{%pipe,getMemberId%}" />
                </where-select-from-list>
                <!--
@@ -119,4 +119,8 @@ MA  02110-1301  USA
                        </callback-extra-parameter-list>
                </column-callback-list-entry>
        </column-callback-list>
+       <!--
+       How the named column shall be logical linked to the above.
+       //-->
+       <where-condition type="string" name="refid" condition="AND" />
 </member-list-data>