Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Need to change name of "Organizations" to "Support"

Hi guys,

My company are looking to change the "Organizations" tab to "Support" because in there we will have silver support, gold support etc.

As the discussion title suggests, does anyone know a way to change this? I believe from what I have read through the forums that OSTicket currently do not support this?

Is there anyway that someone could point me in the direction to be able to edit this in the PHP files?

I have attached a photo of what I am trying to get changed.

Any help would be greatly appreciated


Comments

  • edited May 4
    Hello @dannetctrl, sure here you go:
    To change tab name, edit osticketmaindir/include/class.nav.php and look for:

                    case 'dashboard':
                        $subnav[]=array('desc'=>__('Dashboard'),'href'=>'dashboard.php','iconclass'=>'logs');
                        $subnav[]=array('desc'=>__('Agent Directory'),'href'=>'directory.php','iconclass'=>'teams');
                        $subnav[]=array('desc'=>__('My Profile'),'href'=>'profile.php','iconclass'=>'users');
                        break;
                    case 'users':
                        $subnav[] = array('desc' => __('User Directory'), 'href' => 'users.php', 'iconclass' => 'teams');
                        $subnav[] = array('desc' => __('Organizations'), 'href' => 'orgs.php', 'iconclass' => 'departments');
                        break;
                    case 'kbase':
                        $subnav[]=array('desc'=>__('FAQs'),'href'=>'kb.php', 'urls'=>array('faq.php'), 'iconclass'=>'kb');
                        if($staff) {
                            if ($staff->hasPerm(FAQ::PERM_MANAGE))
                                $subnav[]=array('desc'=>__('Categories'),'href'=>'categories.php','iconclass'=>'faq-categories');
                            if ($cfg->isCannedResponseEnabled() && $staff->hasPerm(Canned::PERM_MANAGE, false))
                                $subnav[]=array('desc'=>__('Canned Responses'),'href'=>'canned.php','iconclass'=>'canned');
                        }
                       break;

    Change the bold part to Support.

    To edit "Organizations" when you click on the tab, because it would make sense to change it too, edit this file:
    osticketmaindir/include/staff/orgs.inc.php

    And look for:
                <div class="pull-left flush-left">
                    <h2><?php echo __('Organizations'); ?></h2>
                </div>

    Change it to whatever you want.
  • Sperrow, thank you very much. I really appreciate that.

    I will now try that.

    Again, thank you :)
  • Hello Sperrow,

    I hope you don't mind me asking, may I ask, how do I change this bit (see attached)

    thank you
    support.JPG
    966 x 250 - 38K
  •  
    support.JPG
    966 x 250 - 38K
  • I can't see the attachment for some reason? but this is the link

  • Sure @dannetctrl, edit this file:
    osticketmaindir/include/staff/user-view.inc.php

                    <tr>
                        <th><?php echo __('Organization'); ?>:</th>
                        <td>
                            <span id="user-<?php echo $user->getId(); ?>-org">
                            <?php
                                if ($org)
                                    echo sprintf('<a href="#users/%d/org" class="user-action">%s</a>',
                                            $user->getId(), $org->getName());
                                elseif ($thisstaff->hasPerm(User::PERM_EDIT)) {
                                    echo sprintf(
                                        '<a href="#users/%d/org" class="user-action">%s</a>',
                                        $user->getId(),
                                        __('Add Organization'));
                                }
                            ?>
                            </span>
                        </td>
                    </tr>

  • You have been an amazing help Sperrow. Thank you.

    I was going to try build a drop down menu in there, so if a user changes support (from Silver to Gold or vice versa) we could change it, but I don't think this is doable?

    No pressure to answer that though, You have been an amazing help.

    Thank you again.
Sign In or Register to comment.