Jump to content

Button "Open Control Panel" only for some Client groups


ZoXx

Recommended Posts

Hello,

weve got Plesk on our server and some different client groups.

Is it possible to change the button "open control panel" so that client group 1 can use it (maybe self hosting) and client group 2 (managed hosting) cant used it?

 

Thanks!

Link to comment
Share on other sites

  • 1 month later...

if you could do it in a template, then you could use the value of $clientsdetails.groupid for this - if the client is not in a client group, it's value will be 0; if he is, then the value will be the ID of the client group they're assigned to.

 

if you could find the button code in the templates, then you could wrap it if an if statement... e.g if you wanted the button to only show to clients in group 1...

 

{if $clientsdetails.group eq '1'}
*button code*
{/if}

unfortunately, I don't use Plesk and so I don't know if this is something you can do in clientareaproductdetails.tpl directly; if it's in a separate Plesk template or an encoded file... inspecting the code in the browser might give you a clue where the button code actually is.

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