Jump to content

Can I make the customer center only visible to clients that are logged in?


Recommended Posts

There is no such settings in WHMCS Admin area but it is possible via customization and it's not easy. I'm also working on it.....

 

i can't explain you everything but you can achieve this by using two things:

 

Number One: Use display:none; property in your style sheet to HIDE the sections you don't want to display.

 

(Remember you will ONLY hide for VISITORS , You have to make two style sheets)

 

Number Two: Use the following code to use different style sheets for visitor and client

 


{if !$loggedin && $filename eq "clientarea" } 


<link rel="stylesheet" type="text/css" href="templates/{$template}/style-visitors.css" />



{elseif !$loggedin && $filename eq "viewticket" }

<link rel="stylesheet" type="text/css" href="templates/{$template}/style-clients.css" />



{else}

<link rel="stylesheet" type="text/css" href="templates/{$template}/style-Clients.css" />

{/if}


 

!$loggedin means NOT logged in

 

$loggedin mans Logged in.

 

viewticket and clientarea and name of php files viewticket.php and clientarea.php respectively.

 

if else statements will determine that the client or visitor is logged in or not and also check the current page name.

 

So you can apply different conditions for clients and visitors.

 

hmmmm I have explained you every thing :)

Edited by b.ahmed
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