Jump to content

Add last 5 emails in the emails clientareahome.tpl


sharles_

Recommended Posts

How to add the last 3 or 5 whmcs emails received by the customer, putting the file clientareahome.tpl to be displayed when the customer comes into your member area, I've been putting well, it did not work:

 

<tr><td>

{foreach key=num from=$lastfivemail item=email}

{$email.date} - <a href="#" onClick="window.open('clientsemails.php?&displaymessage=true&id={$email.id}','','width=650,height=400,scrollbars=yes');return false">{$email.subject}</a><br />

{foreachelse}

<div style='text-align:center;'>No emails sent</div>

{/foreach}

</td></tr>

 

nothing appears thus putting ... How to put

 

Excuse my English, I have posted in the correct location

 

Thanks to those who help me ...

Link to comment
Share on other sites

Any solution to my question?

Please don't bump your threads. If someone knows, they will post.

 

At any rate, you're grabbing code form the admin area and trying to make it work in the client area. I'd imagine that's working off a different query than the ones for clients, so that variable ($lastfivemail) won't be available to display. Try grabbing a similar thing located in the client area files and play with that.

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