ricardo777 Posted August 19, 2015 Share Posted August 19, 2015 Hello, With the new version the order of table changed like the page: clientarea.php?action=emails Now the order of the emails are different then when on the v5. So my question is how can I change the order in the code to show the newest email above. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2015 Share Posted August 19, 2015 you can click the arrows to change the sort order. 0 Quote Link to comment Share on other sites More sharing options...
ricardo777 Posted August 19, 2015 Author Share Posted August 19, 2015 Thank you for your reply. I have already tried that but does not safe for the client with relogging/other computer. I want to change that is show for every user that is show the newest email standard as the v5 did. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 20, 2015 Share Posted August 20, 2015 that's weird - my tables already show the newest email first. you could try adding the following line to clientareaemails.tpl at line 2 (after the include on line 1) - that should force the sort to be newest -> oldest. {assign var="sort" value="desc"} 0 Quote Link to comment Share on other sites More sharing options...
ricardo777 Posted August 22, 2015 Author Share Posted August 22, 2015 that's weird - my tables already show the newest email first. you could try adding the following line to clientareaemails.tpl at line 2 (after the include on line 1) - that should force the sort to be newest -> oldest. {assign var="sort" value="desc"} I have tried the code you wrote, but nothing changed. I also cleaned cache and I was forgetting to mention that I use six template. Without any modification on version 6.0.2 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 22, 2015 Share Posted August 22, 2015 I can't reproduce this locally, or on the WHMCS demo, using v6.0.2 - without seeing the site or your setup, the only thing I can suggest is to open a support ticket and let WHMCS take a look at your system. 0 Quote Link to comment Share on other sites More sharing options...
ricardo777 Posted August 22, 2015 Author Share Posted August 22, 2015 I can't reproduce this locally, or on the WHMCS demo, using v6.0.2 - without seeing the site or your setup, the only thing I can suggest is to open a support ticket and let WHMCS take a look at your system. Hello, Thank you for the help. I have checked the demo site and I can see the order is in right form there. Really strange will check some things out en maybe fire in a ticket hope they will not send me to a custom coder. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 22, 2015 Share Posted August 22, 2015 I have checked the demo site and I can see the order is in right form there. Really strange will check some things out en maybe fire in a ticket hope they will not send me to a custom coder. you could try installing v6 again - perhaps there's a missing/corrupt file somewhere that is not defining the sort order. have you tried using another browser (just in case the current sort order is cached in the browser)? also, add {debug} to the end of clientareaemails.tpl, refresh the page and it should generate a popup window of variables and arrays - what is the value for $sort ? 0 Quote Link to comment Share on other sites More sharing options...
ricardo777 Posted September 18, 2015 Author Share Posted September 18, 2015 Hello, Time ago, but I have resolved the issue. Have compared the file of template>clientareaemails there was a different of lines in the files this exactly: <script type="text/javascript"> jQuery(document).ready( function () { var table = $('#tableEmailsList').DataTable(); {if $orderby == 'date'} table.order(0, '{$sort}'); {elseif $orderby == 'subject'} table.order(1, '{$sort}'); {/if} table.draw(); }); </script> This was not before in the template file. So that one fixed the order, maybe this helps someone else sometime. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.