Jump to content

Como exibir o uso de espaço em disco e banda em GB no template do WHMCS


Recommended Posts

Posted

1 - Acesse o arquivo:

/modules/servers/cpanel/templates/overview.tpl

2 - Encontre onde está sendo exibido o valor {$bwusage} M

3 - Substitua pelo seguinte código para converter para GB:

{assign var="bwGB" value=($bwusage/1024)|string_format:"%.2f"}{$bwGB} GB

Isso divide o valor por 1024 (conversão de MB para GB) e formata para mostrar com 2 casas decimais.

Faça o mesmo com o Espaço em Disco, substituindo o {$diskusage} M

{assign var="duGB" value=($diskusage/1024)|string_format:"%.2f"}{$duGB} GB

 

leuwpP.png

 Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?

-