Jump to content

Only show login details to cPanel customers?


Si

Recommended Posts

Hi,

In the clientareaproductdetails.tpl I only want to show the login details (username and password) and the change password form details to customers who have a particular account type, ie, in the cpanel group.

 

The reason is I have a reseller service as well which does not use cpanel and showing the login details (which are not correct) is confusing my customers.

 

I'm guessing it would be an 'if' statement.

 

Can anyone help?

 

thanks in advance.

 

Si

Link to comment
Share on other sites

Hi,

I managed to figure this out.

 

For anyone else interested, this is what you do:

 

Open your clientareaproductdetails.tpl file.

 

Before:

 

{if username}

 

(around line 50)

 

add this above it:

 

{if $groupname eq "whatever you call your cpanel packages"}

 

Note: if you are unsure what you call your cpanel package, login as a client with one of the cpanel packages and view the details to see the clientareadetails.tpl page....then look at the Product/Service name as displayed underneath the Registration date and the first part of it, is the group name and is exactly what you need to input in the 'whatever you call your cpanel packages' code.

 

then, don't forget to close out the if statement by adding this

 

{/if} 

 

below

 

{/form} 

 

around line 90.

 

Si

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