Jump to content

"Staff" Title in Support tickets.


JTA

Recommended Posts

Hello JTA,

 

Thank you for your post on the WHMCS Community.

 

At this time there is not a way to change the "Staff" title in the ticketing area this will always show either Staff or Client. We do recommend adding any Job Titles to your Staff Signatures which your staff can access via "My Account" or you can access this under Setup -> Staff Management -> Administrator Users

 

Please do let us know if you have any other questions.

Link to comment
Share on other sites

Jon,

 

At this time there is not a way to change the "Staff" title in the ticketing area this will always show either Staff or Client. We do recommend adding any Job Titles to your Staff Signatures which your staff can access via "My Account" or you can access this under Setup -> Staff Management -> Administrator Users.

technically, Chris' reply isn't correct - the supporttickets page, in the admin area, is one of the few that has it's own template, therefore a number of options become available to you. :idea:

 

the first that springs to mind, which isn't suitable for your situation but i'll mention it anyway, would be to use Language Overrides - now I don't think the documentation specifically mentions it, but you can use them with Admin language strings too - e.g., if you wanted to change the generic title of "Staff" to "Support Technician", you could use an override to change the appropriate language string...

 

$_ADMINLANG['support']['staff'] = "Staff";

but as I say, you don't want every staff member to be generic, you want each to use their own rank/job title etc.... and because you have direct access to the template, you can edit it to display whatever you want by changing...

 

                        {if $reply.admin}
                           <div class="name">{$reply.admin}</div>
                           <div class="title">
                               {if $reply.note}
                                   {$_ADMINLANG.support.privateNote}
                               {else}
                                   {$_ADMINLANG.support.staff}
                               {/if}
                           </div>

to...

 

                        {if $reply.admin}
                           <div class="name">{$reply.admin}</div>
                           <div class="title">
                               {if $reply.note}
                                   {$_ADMINLANG.support.privateNote}
                               {elseif $reply.admin eq "Brian"}
                                   GearHead
                               {elseif $reply.admin eq "Jon Agustsson"}
                                   Manager                                    
                               {else}
                                   {$_ADMINLANG.support.staff}
                               {/if}

if your site is multi-lingual, then you might want to replace those titles with language overrides.. and i'd personally be tempted to use $reply.id instead of $reply.name...

 

c1bb94c1072c408b8d617798bc71a5a6.png

 

optionally, you could assign the ranks/titles to admin users using an action hook, and pass the array back to the template - or maybe if each of the titles used their own admin roles, that role could be pulled from the db and used as the job title?

 

even using a hook, I think they're would still need to be some modification to the template for any solution to work. :idea:

Link to comment
Share on other sites

  • 3 weeks later...
Jon,

 

 

technically, Chris' reply isn't correct - the supporttickets page, in the admin area, is one of the few that has it's own template, therefore a number of options become available to you. :idea:

 

the first that springs to mind, which isn't suitable for your situation but i'll mention it anyway, would be to use Language Overrides - now I don't think the documentation specifically mentions it, but you can use them with Admin language strings too - e.g., if you wanted to change the generic title of "Staff" to "Support Technician", you could use an override to change the appropriate language string...

 

$_ADMINLANG['support']['staff'] = "Staff";

but as I say, you don't want every staff member to be generic, you want each to use their own rank/job title etc.... and because you have direct access to the template, you can edit it to display whatever you want by changing...

 

                        {if $reply.admin}
                           <div class="name">{$reply.admin}</div>
                           <div class="title">
                               {if $reply.note}
                                   {$_ADMINLANG.support.privateNote}
                               {else}
                                   {$_ADMINLANG.support.staff}
                               {/if}
                           </div>

to...

 

                        {if $reply.admin}
                           <div class="name">{$reply.admin}</div>
                           <div class="title">
                               {if $reply.note}
                                   {$_ADMINLANG.support.privateNote}
                               {elseif $reply.admin eq "Brian"}
                                   GearHead
                               {elseif $reply.admin eq "Jon Agustsson"}
                                   Manager                                    
                               {else}
                                   {$_ADMINLANG.support.staff}
                               {/if}

if your site is multi-lingual, then you might want to replace those titles with language overrides.. and i'd personally be tempted to use $reply.id instead of $reply.name...

 

c1bb94c1072c408b8d617798bc71a5a6.png

 

optionally, you could assign the ranks/titles to admin users using an action hook, and pass the array back to the template - or maybe if each of the titles used their own admin roles, that role could be pulled from the db and used as the job title?

 

even using a hook, I think they're would still need to be some modification to the template for any solution to work. :idea:

 

On which Files must it edited?

Link to comment
Share on other sites

  • 4 weeks later...

Is there any way of incorp. this into the viewticket.tpl in the user template ?

 

    {foreach from=$descreplies key=num item=reply}
       <div class="ticket-reply markdown-content{if $reply.admin} staff{/if}">
           <div class="date">
               {$reply.date}
           </div>
           <div class="user">
               <i class="fa fa-user"></i>
               <span class="name">
                   {$reply.name}
               </span>
               <span class="type">
                   {if $reply.admin}
                       {$LANG.supportticketsstaff}
                   {elseif $reply.contactid}
                       {$LANG.supportticketscontact}
                   {elseif $reply.userid}
                       {$LANG.supportticketsclient}
                   {else}
                       {$reply.email}
                   {/if}

Edited by AffordableDomainsCanada
Link to comment
Share on other sites

it would be very similar code - you would change...

 

                <span class="type">
                   {if $reply.admin}
                       {$LANG.supportticketsstaff}
                   {elseif $reply.contactid}
                       {$LANG.supportticketscontact}
                   {elseif $reply.userid}
                       {$LANG.supportticketsclient}
                   {else}
                       {$reply.email}
                   {/if}
               </span>

to...

 

                <span class="type">
                   {if $reply.admin}
                       {if $reply.admin eq "Brian"}GearHead
                       {elseif $reply.admin eq "Jon Agustsson"}Manager                                    
                       {else}{$LANG.supportticketsstaff}{/if}
                   {elseif $reply.contactid}
                       {$LANG.supportticketscontact}
                   {elseif $reply.userid}
                       {$LANG.supportticketsclient}
                   {else}
                       {$reply.email}
                   {/if}
               </span>

Link to comment
Share on other sites

When I change this

 

{if $reply.admin eq "Brian"}GearHead

 

it make the change for ALL admins and shows Gearhead for everyone

 

 

- - - Updated - - -

 

   <span class="type">
                   {if $reply.admin}
                       {if $reply.admin eq "Jason Peachey"}Chief Executive Officer
                               {elseif $reply.admin eq "Site Admin"}Auto-Reply Bot  
                               {elseif $reply.admin eq "Ashley Phillips"}Accounts Receivable Manager
                               {elseif $reply.admin eq "Lucas McGuire"}Sales - Accounts Administrator
                               {elseif $reply.admin eq "Kegan Longo"}Fraud Investigation Specialist
                               {elseif $reply.admin eq "Adrienne Hay"}L1 - Technical Support Lead Administrator
                               {elseif $reply.admin eq "Jorge Novco"}L2 - Technical Support Lead Administrator
                               {elseif $reply.admin eq "Peter Fedrochuk"}Customer Service Manager                                  
                       {else}{$LANG.supportticketsstaff}{/if}
                   {elseif $reply.contactid}
                       {$LANG.supportticketscontact}
                   {elseif $reply.userid}
                       {$LANG.supportticketsclient}
                   {else}
                       {$reply.email}
                   {/if}
               </span>

 

This is the code I am trying to implement.

Link to comment
Share on other sites

DOH - my mistake - use $reply.name in the IF statements and not reply.admin :idea:

 

                        {if $reply.name eq "Jason Peachey"}Chief Executive Officer
                       {elseif $reply.name eq "Site Admin"}Auto-Reply Bot  
                       {elseif $reply.name eq "Ashley Phillips"}Accounts Receivable Manager
                       {elseif $reply.name eq "Lucas McGuire"}Sales - Accounts Administrator
                       {elseif $reply.name eq "Kegan Longo"}Fraud Investigation Specialist
                       {elseif $reply.name eq "Adrienne Hay"}L1 - Technical Support Lead Administrator
                       {elseif $reply.name eq "Jorge Novco"}L2 - Technical Support Lead Administrator
                       {elseif $reply.name eq "Peter Fedrochuk"}Customer Service Manager

Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated