Jump to content

Showing client name if logged in outside of WHMCS?


Terry

Recommended Posts

Hello!

 

I am trying to create something so that when the client is logged in it will show their name on all my pages, I am using the code:

 

{if $loggedin}Hello! {$clientsdetails.firstname} {$clientsdetails.lastname}

{else}

Hello Guest!{/if}

 

However when I look at the page its outputting the code and not actually doing anything.

 

Any ideas why this is happening? ( I am not the best at PHP )

Link to comment
Share on other sites

I don't mean to hi-jack this thread but I have a similar issue. I have created a page with some of the tags like the following. It seems the server doesn't know about the tags and I get a error. I have the file placed in the whmcs folder and have also tried with std header used on the php part of a template. Any thoughts on this

 

{if $loggedin}Hello! {$clientsdetails.firstname} {$clientsdetails.lastname}

{else}

Hello Guest!{/if}

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