MikeDVB Posted February 12, 2008 Share Posted February 12, 2008 On the support ticket page of the client area, if the client has not dealt with any support tickets sent/received it will say "No support tickets created" but if they go to the "My Emails" section of the client area (clientareaemails.tpl) and there are no emails it shows the headers "Date Sent" and "Message Subject" but does not display a "No messages sent". I modified my clientareaemails.tpl to add {foreachelse} <tr class="clientareatableactive"><td colspan="2">No messages sent.</td></tr> A bigger block of code to see where I inserted it is: <table class="clientareatable" cellspacing="1"> <tr class="clientareatableheading"><td width="30%">{$LANG.clientareaemailsdate}</td><td width="70%">{$LANG.clientareaemailssubject}</td></tr> {foreach key=num item=email from=$emails} <tr class="clientareatableactive"><td>{$email.date}</td><td><a href="#" onclick="window.open('viewemail.php?id={$email.id}','','width=650,height=400,scrollbars=yes');return false">{$email.subject}</a></td></tr> {foreachelse} <tr class="clientareatableactive"><td colspan="2">No messages sent.</td></tr> {/foreach} </table> 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 12, 2008 Share Posted February 12, 2008 Cool thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 12, 2008 WHMCS CEO Share Posted February 12, 2008 The point is that clients get an email when they first signup - the client signup welcome email - so there's no reason why the list would ever be empty. I suppose on imported clients it may well be empty - until you mass mail them about your excellent new billing system Matt 0 Quote Link to comment Share on other sites More sharing options...
MikeDVB Posted February 12, 2008 Author Share Posted February 12, 2008 Yeah =) It's just something I noticed while importing clients to the system so I thought I'd toss it out there. Mike 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted February 12, 2008 Share Posted February 12, 2008 It would be empty if you also totally clear the emails with System Cleanup too. 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted February 13, 2008 Share Posted February 13, 2008 It'll also be empty if it's a client you added manually, and unchecked the 'send welcome email' box. 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.