Jump to content

Kingy

Retired Forum Member
  • Posts

    4
  • Joined

  • Last visited

About Kingy

Kingy's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I have just finished customising all the WHMCS templates for my website. One thing I am wanting to do is if the user is logged in show their details/account stats in a box on the page and then if they aren't logged, show the login form. What i currently have in my header.tpl is: {if $loggedin} {$clientsdetails.firstname} {$clientsdetails.lastname} {if $clientsdetails.companyname}({$clientsdetails.companyname}){/if}<br /> {$clientsdetails.address1}, {$clientsdetails.address2}<br /> {$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br /> {$clientsdetails.country}<br /> {$clientsdetails.email}<br /><br /> </td> <td> {$LANG.accountstats}:<br /><br /> {$LANG.statsnumproducts}: {$stats.productsnumtotal}<br /> {$LANG.statsnumdomains}: {$stats.numdomains}<br /> {$LANG.statsnumtickets}: {$stats.numtickets}<br /> {$LANG.statscreditbalance}: {$stats.creditbalance}<br /> {$LANG.statsdueinvoicesbalance}: {if $stats.numdueinvoices>0}<font color="#cc0000">{/if}{$stats.dueinvoicesbalance}{if $stats.numdueinvoices>0}</font>{/if}<br /> </td> </tr> </table> {else} SHOW LOGIN FORM {/if} This works perfectly fine, but ONLY if they are on the clientarea.php page. Is there anyway i can make it work for all pages?
  2. Ah of course. Thanks to both of you, all seems fine now
  3. I was just testing the knowledge base and when I added a category and article all goes well... but, when I go into the client section and go to the knowledgebase, when i try to read an article I get an error saying "The Requested URL /client/knowledgebase/1/testArticle.html was not found". After a little more testing the same error occurs for Annoucements. Anyone know how to fix this problem?
  4. For my company, i'm selling webhosting. The thing I am trying to do is sell custom hosting packages (eg, customer chooses disk space, bandwidth etc etc) and it will calculated the price based on my settings, and then will add the user into cPanel like it would ususally. Is there anyway I can possible do this?
×
×
  • 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