sadeght Posted March 24 Share Posted March 24 hi I want to disable cPanel login bar and its information for products that are paid for free what do I do? Thank you 0 Quote Link to comment Share on other sites More sharing options...
Solution sadeght Posted March 24 Author Solution Share Posted March 24 please help 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted March 28 Share Posted March 28 What exactly are you trying to hide? Can you provide a screenshot perhaps? 0 Quote Link to comment Share on other sites More sharing options...
sadeght Posted March 30 Author Share Posted March 30 On 3/29/2024 at 2:59 AM, leemahoney3 said: What exactly are you trying to hide? Can you provide a screenshot perhaps? I want to disable this section for free accounts 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted March 31 Share Posted March 31 Ah okay, go to modules/servers/cpanel/templates/overview.tpl and wrap lines 199 - 283 in the following if statement: {if $billingcycle !== $LANG.orderfree} ... {/if} Future updates to WHMCS may overwrite this btw. 0 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 1 Author Share Posted April 1 (edited) 16 hours ago, leemahoney3 said: Ah okay, go to modules/servers/cpanel/templates/overview.tpl and wrap lines 199 - 283 in the following if statement: {if $billingcycle !== $LANG.orderfree} ... {/if} Future updates to WHMCS may overwrite this btw. {if $billingcycle !== $LANG.orderfree} <div class="panel card panel-default mb-3" id="cPanelQuickShortcutsPanel"> <div class="panel-heading card-header"> <h3 class="panel-title card-title m-0">{lang key='quickShortcuts'}</h3> </div> <div class="panel-body card-body text-center"> <div class="row cpanel-feature-row"> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelEmailAccounts"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Accounts" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/email_accounts.png" /> {$LANG.cPanel.emailAccounts} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelForwarders"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Forwarders" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/forwarders.png" /> {$LANG.cPanel.forwarders} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelAutoResponders"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_AutoResponders" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/autoresponders.png" /> {$LANG.cPanel.autoresponders} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelFileManager"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=FileManager_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/file_manager.png" /> {$LANG.fileManager} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelBackup"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Backups_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/backup.png" /> {$LANG.cPanel.backup} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelSubdomains"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Domains_SubDomains" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/subdomains.png" /> {$LANG.cPanel.subdomains} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelAddonDomains"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Domains_AddonDomains" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/addon_domains.png" /> {$LANG.cPanel.addonDomains} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelCronJobs"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Cron_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/cron_jobs.png" /> {$LANG.cPanel.cronJobs} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelMySQLDatabases"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Database_MySQL" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/mysql_databases.png" /> {$LANG.mysqlDatabases} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelPhpMyAdmin"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Database_phpMyAdmin" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/php_my_admin.png" /> {$LANG.cPanel.phpMyAdmin} </a> </div> <div class="col-sm-3 col-xs-6" id="cPanelAwstats"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Stats_AWStats" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/awstats.png" /> {$LANG.cPanel.awstats} </a> </div> {if $hasWPTDeluxe} <div class="col-sm-3 col-xs-6" id="cPanelWptk"> <a href="clientarea.php?action=productdetails&id={$serviceid}&addonId={$wptkDeluxeAddonId}&doaddonsignon=1" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/wptk.png" /> {$LANG.cPanel.wptk} </a> </div> {/if} </div> </div> </div> {/if} It didn't work for the free account! billingcycle free Edited April 1 by sadeght 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted April 2 Share Posted April 2 On 4/1/2024 at 9:24 AM, sadeght said: {if $billingcycle !== $LANG.orderfree} <div class="panel card panel-default mb-3" id="cPanelQuickShortcutsPanel"> <div class="panel-heading card-header"> <h3 class="panel-title card-title m-0">{lang key='quickShortcuts'}</h3> </div> <div class="panel-body card-body text-center"> <div class="row cpanel-feature-row"> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelEmailAccounts"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Accounts" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/email_accounts.png" /> {$LANG.cPanel.emailAccounts} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelForwarders"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Forwarders" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/forwarders.png" /> {$LANG.cPanel.forwarders} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelAutoResponders"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_AutoResponders" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/autoresponders.png" /> {$LANG.cPanel.autoresponders} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelFileManager"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=FileManager_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/file_manager.png" /> {$LANG.fileManager} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelBackup"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Backups_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/backup.png" /> {$LANG.cPanel.backup} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelSubdomains"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Domains_SubDomains" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/subdomains.png" /> {$LANG.cPanel.subdomains} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelAddonDomains"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Domains_AddonDomains" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/addon_domains.png" /> {$LANG.cPanel.addonDomains} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelCronJobs"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Cron_Home" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/cron_jobs.png" /> {$LANG.cPanel.cronJobs} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelMySQLDatabases"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Database_MySQL" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/mysql_databases.png" /> {$LANG.mysqlDatabases} </a> </div> <div class="col-md-3 col-sm-4 col-xs-6 col-6" id="cPanelPhpMyAdmin"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Database_phpMyAdmin" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/php_my_admin.png" /> {$LANG.cPanel.phpMyAdmin} </a> </div> <div class="col-sm-3 col-xs-6" id="cPanelAwstats"> <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Stats_AWStats" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/awstats.png" /> {$LANG.cPanel.awstats} </a> </div> {if $hasWPTDeluxe} <div class="col-sm-3 col-xs-6" id="cPanelWptk"> <a href="clientarea.php?action=productdetails&id={$serviceid}&addonId={$wptkDeluxeAddonId}&doaddonsignon=1" target="_blank" class="d-block mb-3"> <img src="modules/servers/cpanel/img/wptk.png" /> {$LANG.cPanel.wptk} </a> </div> {/if} </div> </div> </div> {/if} It didn't work for the free account! billingcycle free When you say free account you mean you set the billing cycle as Free, right? 0 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 2 Author Share Posted April 2 17 minutes ago, leemahoney3 said: When you say free account you mean you set the billing cycle as Free, right? Yes, exactly 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted April 2 Share Posted April 2 Try {if $billingcycle !== 'Free Account'} WHMCS's own code is wrong as they check it against the language variable.. 1 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 3 Author Share Posted April 3 12 hours ago, leemahoney3 said: Try {if $billingcycle !== 'Free Account'} WHMCS's own code is wrong as they check it against the language variable.. it did not work 😔 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted April 3 Share Posted April 3 (edited) 12 hours ago, sadeght said: it did not work 😔 Can you add {debug} to your template (take the site offline if live and not using a testing environment) and search for $billingcycle in the popup window that opens when you reload the page and let me know what is shows for a free account. I'm not sure what version of WHMCS you are using, but in the latest version a free account shows up as "Free Account" in smarty vars. Edited April 3 by leemahoney3 0 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 3 Author Share Posted April 3 6 minutes ago, leemahoney3 said: Can you add {debug} to your template (take the site offline if live and not using a testing environment) and search for $billingcycle in the popup window that opens when you reload the page and let me know what is shows for a free account. I'm not sure what version of WHMCS you are using, but in the latest version a free account shows up as "Free Account" in smarty vars. Version whmcs 8.8 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted April 3 Share Posted April 3 Make sure the billing cycle is set to Free and not Monthly Add {debug} to your modules/servers/cpanel/template/overview.tpl file temporarily (again I must stress to not do this on a live environment, unless you put maintenance mode on) and check what $billingcycle shows when you reload the page. That's what you need to check in the if statement. 1 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 4 Author Share Posted April 4 12 hours ago, leemahoney3 said: Make sure the billing cycle is set to Free and not Monthly Add {debug} to your modules/servers/cpanel/template/overview.tpl file temporarily (again I must stress to not do this on a live environment, unless you put maintenance mode on) and check what $billingcycle shows when you reload the page. That's what you need to check in the if statement. that was perfect Because the whmcs language was different, something else was translated And the code worked with this debugger and it was fixed Thankful 🌹👍👏 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.