Jump to content

Is it possible to disable the new look for single sign-on product details?


stormy

Recommended Posts

The client area product details page changes when single sign-on is enabled, and it looks like this:

http://docs.whmcs.com/CPanel_Single_Sign-On#Customising_Single_Sign-On_Shortcuts

 

Rather than doing all the customizing work, I'd prefer to keep using the old look and forget about the integration. Is there an option for this, besides hacking the code for clientareaproductdetails.tpl?

Link to comment
Share on other sites

off the top of my head, I can think of three ways to do this (there's probably more!) - i'll let you choose which suits your needs best.

 

1. rename the /modules/cpanel/templates/overview.tpl to something else - the quickest method! :)

2. hack the template code... you should only need to remove the code below and it's closing {/if}...

 

        {if $tplOverviewTabOutput}
           {$tplOverviewTabOutput}
       {else}

3. add a quick hook to /includes/hooks/ that nulls the value of the above variable. :idea:

 

<?php

function client_area_product_details_hook($vars) {

   return array("tplOverviewTabOutput" => null);
}
add_hook("ClientAreaPageProductDetails", 1, "client_area_product_details_hook");
?>

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.

×
×
  • 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