USA_Webmaster Posted January 1, 2016 Share Posted January 1, 2016 (edited) I thought maybe something like: {$clientsdetails.cpanel} or but I didn't have any luck....also, maybe I can tap into the smarty.server tag power. When I open up my clientarea.php file in the template folder, I do not see anything related to a smarty php tag. May you please point me into the right direction. I wish to generate the unique "Log into Cpanel" link. p.s. - i'm checking out the clientareadomains.tpl and clientareaproductdetails.tplfile for some hints and looking around but still haven't found anything just yet. Edited January 1, 2016 by USA_Webmaster 0 Quote Link to comment Share on other sites More sharing options...
USA_Webmaster Posted January 1, 2016 Author Share Posted January 1, 2016 (edited) man o man!! no idea, i'm scouring the sidebar.tpl and menu.tpl file but am coming up with a blank...just cruising over the KB too and not finding it helpful. http://docs.whmcs.com/CPanel/WHM#Login_to_cPanel_Link Edited January 1, 2016 by USA_Webmaster forgot kb link 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 2, 2016 Share Posted January 2, 2016 if you're talking about the sidebar link to log into cPanel, that won't be Smarty - that'll need an action hook to change it. http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details&p=435091#post435091 I don't think there is a specific Smarty variable to log into cPanel, but two things for you to know... 1. there is another template you can edit... http://docs.whmcs.com/CPanel_Single_Sign-On What your end users see is controlled by the template file /modules/servers/cpanel/templates/overview.tpl and can be customised to remove any features or functionality you don't wish your users to have access to. 2. if you wanted to make a link in a Smarty template to log into cPanel, you could use the following as a starting point... <a href="{$systemNonSSLURL}clientarea.php?action=productdetails&id={$id}&dosinglesignon=1">link to cpanel</a> that will certainly work in the overview.tpl - but might not necessarily work in other pages if the above two Smarty variables are not available to them - the first probably will always be (or you can use SSL variable if you prefer), but the second ($id) is likely only available on the product details pages. if you want to use it on other pages, you might need a hook or other method to obtain the id value of the product. 0 Quote Link to comment Share on other sites More sharing options...
USA_Webmaster Posted January 2, 2016 Author Share Posted January 2, 2016 Hmmm...so there isn't a cut-dry copy / paste snippet that will link the user to their cPanel? Where is the code located for the current side bar cPanel Login Link that is used on the client area page? I'm gonna check out the links you recommended above right now. THANKS! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 2, 2016 Share Posted January 2, 2016 Where is the code located for the current side bar cPanel Login Link that is used on the client area page? I'm gonna check out the links you recommended above right now. in an encrypted php file - so don't bother looking. if you want to edit the sidebar links, you'll need to use an action hook - such as the one in my first post above. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 2, 2016 Share Posted January 2, 2016 so there isn't a cut-dry copy / paste snippet that will link the user to their cPanel? you could make one with an action hook - but not out of the box, no. 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.