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

[MOD] View user phone number without clicking on their name

View user phone number without clicking on their name, like previous versions of osticket. Still not sure why this was removed but here is the mod

image


How to install the mod Very simple
Open includes/staff/ticket-view.inc.php

Search for (or go to line 361)
                        if (!strcasecmp($ticket->getSource(), 'Web') && $ticket->getIP())
                            echo '&nbsp;&nbsp; <span class="faded">('.Format::htmlchars($ticket->getIP()).')</span>';
                        ?>
                    </td>
                </tr>


And add the following


                <tr>
                    <th>
                        <?php echo __('Phone'); ?>:
                    </th>
                    <td>
                        <?php
                        echo Format::htmlchars($user->getPhone());
                        ?>
                    </td>
                </tr>



Comments

  • Seeing this reminds me that I meant to post this when 1.10 came out. /facepalm.

    Well thanks for posting!
  • If you add the code under line 312 it will pace the phone directly under the e-mail. 
  • Great work.. It is working fine.
Sign In or Register to comment.