Frequently Asked Question

Coding Editing OSTicket to get rid of ticket submission and viewing buttons
Last Updated 7 days ago

For editing OSTicket to get rid of ticket submission and viewing buttons:

  • Add a filter to reject all form submissions / ticket submissions.
  • Update the backend-code .php files
    1. index.php

COMMENT THIS SECTION OUT TO GET RID OT THE TICKET INPUT AND CHECKING BUTTONS

  1. class.nav.php

Unblank out this section to display all of the information

// Show the "Open New Ticket" link unless BOTH client

// registration is disabled and client login is required for new

// tickets. In such a case, creating a ticket would not be

// possible for web clients.

//if ($cfg->getClientRegistrationMode() != 'disabled'

// || !$cfg->isClientLoginRequired())

// $navs['new']=array('desc'=>__('Open a New Ticket'),'href'=>'open.php','title'=>'');

if($user && $user->isValid()) {

if(!$user->isGuest()) {

$navs['tickets']=array('desc'=>sprintf(__('Tickets (%d)'),$user->getNumTickets($user->canSeeOrgTickets())),

'href'=>'tickets.php',

'title'=>__('Show all tickets'));

} else {

$navs['tickets']=array('desc'=>__('View Ticket Thread'),

'href'=>sprintf('tickets.php?id=%d',$user->getTicketId()),

'title'=>__('View ticket status'));

}

} else {

//$navs['status']=array('desc'=>__('Check Ticket Status'),'href'=>'view.php','title'=>'');

Please Wait!

Please wait... it will take a second!