Jump to content

My Emails addition for no emails


MikeDVB

Recommended Posts

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>

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated