R-n-R Posted September 17, 2018 Share Posted September 17, 2018 Has anyone been able to develop a customer header for WHMCS client area so when a client logins they see a slightly different header? Ideas, thoughts? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 18, 2018 Share Posted September 18, 2018 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 ? 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted September 18, 2018 Author Share Posted September 18, 2018 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 18, 2018 Share Posted September 18, 2018 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} 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!). 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted September 18, 2018 Author Share Posted September 18, 2018 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.