Server Information
-osTicket Version v1.10.4 (035fd0a) — Up to date
-Web Server Software Apache
-MySQL Version 5.7.24
-PHP Version 5.6.38-2+ubuntu16.04.1+deb.sury.org+1

Hey there, I simply wanted to insert some text below the Staff profile header, where it says "Welcome, User" and then has links to the Admin Panel, Agent Panel etc.

I just wanted to use it as a little place to dump announcements to my coworkers. Easy enough no?

So I found the code here in "header.inc.php" located in /include/staff/ directory.

<body>
<div id="container">
    <?php
    if($ost->getError())
        echo sprintf('<div id="error_bar">%s</div>', $ost->getError());
    elseif($ost->getWarning())
        echo sprintf('<div id="warning_bar">%s</div>', $ost->getWarning());
    elseif($ost->getNotice())
        echo sprintf('<div id="notice_bar">%s</div>', $ost->getNotice());
    ?>
        <div id="header">
        <p id="info" class="pull-right no-pjax"><?php echo sprintf(__('Welcome, %s.'), '<strong>'.$thisstaff->getFirstName().'</strong>'); ?>
           <?php
            if($thisstaff->isAdmin() && !defined('ADMINPAGE')) { ?>
            | <a href="<?php echo ROOT_PATH ?>scp/admin.php" class="no-pjax"><?php echo __('Admin Panel'); ?></a>
            <?php }else{ ?>
            | <a href="<?php echo ROOT_PATH ?>scp/index.php" class="no-pjax"><?php echo __('Agent Panel'); ?></a>
            <?php } ?>
            | <a href="<?php echo ROOT_PATH ?>scp/profile.php"><?php echo __('Profile'); ?></a>
            | <a href="<?php echo ROOT_PATH ?>scp/logout.php?auth=<?php echo $ost->getLinkToken(); ?>" class="no-pjax"><?php echo __('Log Out'); ?></a>
            | <a href="<?php echo ROOT_PATH ?>scp/livechat.php"><?php echo __('Live Chat'); ?></a>
              <br><?php echo __('Announcement: Lab Issue Has Been Resolved By Corporate'); ?></br>
        </p>
        <a href="<?php echo ROOT_PATH ?>scp/index.php" class="no-pjax" id="logo">
            <span class="valign-helper"></span>
            <img src="<?php echo ROOT_PATH ?>scp/logo.php?<?php echo strtotime($cfg->lastModified('staff_logo_id')); ?>" alt="osTicket &mdash; <?php echo __('Custom$
        </a>
    </div>
    <div id="pjax-container" class="<?php if ($_POST) echo 'no-pjax'; ?>">

So you may see the addition I made, where it says "Announcment: etc. etc." So it works well enough it displays on the page no problem just how I want it.

However, whenever you click on any link on the page to take you somewhere else e.g. Admin Panel, My Tickets, Open, etc. The page begins to load, you get the loading line animation uptop and then it just hangs there ad infinitum.

Its a simple html+php addition. I tried doing it in just HTML and it still hangs, then I did in this method, with the PHP echo, yet it still hangs. If I refresh the page, it'll take me to the page I originally clicked on, but otherwise it just hangs there.

What am I doing wrong? Does this have something to do with an ajax command?

Is there a better way recommended by the Devs to do this? Again, I just want a small dedicated space on the staff page, that displays on any of the pages they go to when there in the 'tickets' sections, so 'my tickets', 'open' etc. to just display several lines of text for announcements.

Thanks!

Your code
<?php echo __('Announcement: Lab Issue Has Been Resolved By Corporate'); ?></br>

Try changing it to:
<?php echo 'Announcement: Lab Issue Has Been Resolved By Corporate'; ?></br>

    16 days later

    Very welcome. ? Should I close this thread?

    Write a Reply...