Jump to content

Custom Header for Login Users Only


R-n-R

Recommended Posts

20 hours ago, R-n-R said:

Has anyone been able to develop a customer header for WHMCS client area so when a client logins they see a slightly different header?

that already happens to an extent... e.g the notifications for that client are shown, the logout link is shown etc... the navbar menu changes too.

basically, it's in header.tpl and you can use {if $loggedin} to do something when the client is logged in, and do something else when they're not.

what are you wanting to change for logged in clients ?

Link to comment
Share on other sites

Hi brian!

 

Thanks for the reply. Nothing really difficult, simple like adding some text in the header (to the right of the logo) when logged in. We played around with it some but couldn't get it to work. I am so removed now from this stuff I am a little rusty.


Roy

Link to comment
Share on other sites

HI Roy,

4 minutes ago, R-n-R said:

Thanks for the reply. Nothing really difficult, simple like adding some text in the header (to the right of the logo) when logged in. We played around with it some but couldn't get it to work. I am so removed now from this stuff I am a little rusty. 

you could change the code in header.tpl from...

        {if $assetLogoPath}
            <a href="{$WEB_ROOT}/index.php" class="logo"><img src="{$assetLogoPath}" alt="{$companyname}"></a>
        {else}
            <a href="{$WEB_ROOT}/index.php" class="logo logo-text">{$companyname}</a>
        {/if}

the above displays the logo, and then after it, just add an {if} statement...

        {if $assetLogoPath}
            <a href="{$WEB_ROOT}/index.php" class="logo"><img src="{$assetLogoPath}" alt="{$companyname}"></a>
        {else}
            <a href="{$WEB_ROOT}/index.php" class="logo logo-text">{$companyname}</a>
        {/if}
        {if $loggedin}Hello, i'm here!{/if}

wIPVguJ.png

you may need to wrap it in a div for alignment etc, but the idea should work (unless you plan on pasting War & Peace in there!).

Link to comment
Share on other sites

Thank you sir! I will give this a try later this evening and see what I can do with it.

29 minutes ago, brian! said:

you may need to wrap it in a div for alignment etc, but the idea should work (unless you plan on pasting War & Peace in there!).

 

Now that cracked me up! LOL! Thanks again.

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