Results 1 to 3 of 3

Thread: Add last 5 emails in the emails clientareahome.tpl

  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Default Add last 5 emails in the emails clientareahome.tpl

    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?&displayme ssage=true&id={$email.id}','','width=650,height=40 0,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 ...

  2. #2
    Join Date
    Apr 2009
    Posts
    2

    Default

    Any solution to my question?

  3. #3
    Join Date
    Oct 2006
    Posts
    3,099

    Default

    Quote Originally Posted by sharles_ View Post
    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.

Similar Threads

  1. How to add product list to clientareahome.tpl?
    By ZHosting in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 07-06-12, 04:16 PM
  2. add product list to clientareahome.tpl
    By agilityweb in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 07-06-12, 04:04 PM
  3. HTML output in clientareahome.tpl
    By Pionier in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 12-14-11, 07:13 PM