Pradip Posted November 26, 2018 Share Posted November 26, 2018 Dear, I have added my custom page in whmcs directory and its mention as a vps.php and I used bellow code for assign vps.tpl but in home its showing width 100% but in custom page its not showing 100% you can compare with namastehost.com and namastehost.com/vps.php code provided bellow. <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->setPageTitle('Cheap VPS plan'); $ca->initPage(); $ca->setTemplate('vps'); $ca->output(); 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 26, 2018 Share Posted November 26, 2018 5 hours ago, Pradip said: I have added my custom page in whmcs directory and its mention as a vps.php and I used bellow code for assign vps.tpl as this is a custom template (e.g obtained from a developer - AKD), then you should really direct customisation questions to them as they will know their templates better than anyone else. 5 hours ago, Pradip said: but in home its showing width 100% but in custom page its not showing 100% you can compare with namastehost.com and namastehost.com/vps.php then my first thought would that there is something defined in header.tpl that applies to index.php or homepage.tpl that is not getting utilised in custom pages. at a guess, it will be the line below and you'll need to add $filename eq 'vps' to the IF statement as another condition. {if $filename eq 'index' || $filename eq 'web-hosting' || $filename eq 'privacy-policy' || $filename eq 'tos' || $filename eq 'reseller-hosting' || $filename eq 'shared-hosting' || $filename eq 'vps-hosting' || $filename eq 'dedicated-hosting'|| $filename eq 'contact' || $filename eq 'domainchecker' || ( $filename eq 'clientarea' && !$loggedin) || $filename eq 'logout' || $filename eq 'pwreset' || $filename eq 'logintwofa' || $filename eq 'cart'} but if that's not right, AKD should know what the solution is. 0 Quote Link to comment Share on other sites More sharing options...
Pradip Posted November 26, 2018 Author Share Posted November 26, 2018 4 minutes ago, brian! said: as this is a custom template (e.g obtained from a developer - AKD), then you should really direct customisation questions to them as they will know their templates better than anyone else. then my first thought would that there is something defined in header.tpl that applies to index.php or homepage.tpl that is not getting utilised in custom pages. at a guess, it will be the line below and you'll need to add $filename eq 'vps' to the IF statement as another condition. {if $filename eq 'index' || $filename eq 'web-hosting' || $filename eq 'privacy-policy' || $filename eq 'tos' || $filename eq 'reseller-hosting' || $filename eq 'shared-hosting' || $filename eq 'vps-hosting' || $filename eq 'dedicated-hosting'|| $filename eq 'contact' || $filename eq 'domainchecker' || ( $filename eq 'clientarea' && !$loggedin) || $filename eq 'logout' || $filename eq 'pwreset' || $filename eq 'logintwofa' || $filename eq 'cart'} but if that's not right, AKD should know what the solution is. in vps.php or on vps.tpl? 0 Quote Link to comment Share on other sites More sharing options...
Pradip Posted November 26, 2018 Author Share Posted November 26, 2018 Thanks bro issue has been solved. 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.