sadeght Posted March 24, 2024 Share Posted March 24, 2024 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, 2024 Author Solution Share Posted March 24, 2024 please help 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted March 28, 2024 Share Posted March 28, 2024 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, 2024 Author Share Posted March 30, 2024 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, 2024 Share Posted March 31, 2024 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, 2024 Author Share Posted April 1, 2024 (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, 2024 by sadeght 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted April 2, 2024 Share Posted April 2, 2024 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, 2024 Author Share Posted April 2, 2024 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, 2024 Share Posted April 2, 2024 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, 2024 Author Share Posted April 3, 2024 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, 2024 Share Posted April 3, 2024 (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, 2024 by leemahoney3 0 Quote Link to comment Share on other sites More sharing options...
sadeght Posted April 3, 2024 Author Share Posted April 3, 2024 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, 2024 Share Posted April 3, 2024 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, 2024 Author Share Posted April 4, 2024 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.