Jump to content

Recommended Posts

Posted (edited)

Boa tarde, fiz isso para exibir o nome de quem está logado no painel de admin próximo ao botão de responder ticket no WHMCS

Por quê? Às vezes preciso entrar na conta do meu sócio para responder um ticket do setor que ele é responsável para agilizar o atendimento sobre questões que eu sei

como sou full administrador, às vezes acabava respondendo pela minha conta, e não gosto dos clientes confundindo os setores de atendimento

é bem simples, vá em admin/templates/blend/footer.tpl

bem no final do arquivo, antes de fechar a tag </body> adicione

 <script type="text/javascript"> 
    jQuery(function($){ 
    $(".return-to-ticket-list").append("<b style='display: inline-block; margin-left: 10px; padding: 0 10px; background-color: #f2dede; color: #000;'>{$admin_username}</b>");
     });
 </script>

Ficou assim: https://prnt.sc/QWhVSZCgohpx

Para encaixar melhor o html fui em admin/lang/portugues-br.php e mudei a tradução para

['returnToTicketList'] = "Retornar";

espero que ajude mais alguém.

Edited by juniorph

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?

-