- Edited
Greetings,I want to change (rewrite) the sentenses in the navbar such as (Open a new ticket - Check ticket status)I searched for it in the index.php and in the admin panel as well but I couldn't find it.I am using v1.9.12 by the way.Cheers
Greetings,I want to change (rewrite) the sentenses in the navbar such as (Open a new ticket - Check ticket status)I searched for it in the index.php and in the admin panel as well but I couldn't find it.I am using v1.9.12 by the way.Cheers
Maybeinclude/staff/templates/navigation.tmpl.phpinclude/staff/templates/sub-navigation.tmpl.phpinclude/class.nav.php
We just installed v1.9.12 osTicket, and did some minor customizations a couple of days ago. I had added a new item to that same area of the (client-view) navbar. I knew from using osTicket in the past, that I want to encourage client's to use their log-in when creating tickets. However, I do not want to force a customer to sign in, just in case what they are having a problem with is eMail and/or Support Center Sign-In problem.I edited some of the php include files to have comments, which allowed me to figure how/where the various php sections are used.Example:the header.inc.php file has this line added at top:<!-- START support/ include/ client/ header .inc .php begins below -->and this line added at bottom:<!-- FINISH support/ include/ client/ header .inc .php -->If you make that change and then upload header.inc.php to your server, you will see the PHP CODE which populates the navar by "view page source" in your browser(possibly need to add plug-in).I was able to insert this line:<li><a class=" users" href="/login.php">Sign In for Fastest Help</a></li> before the </ul>and it showed the new link just fine, although i have not figured out which icon I want there yet.(I did this to many files, being very careful to add the comment ONLY in the HTML areas of the PHP include files)(Making a mistake in PHP file edits of include files will either throw a php error message, or cause the page to NOT LOAD, so you really have to be careful)Although tedious, it is very useful to do if you really want to have a good idea of how the various files interact.I am glad for hint on where to look for the function(s) which populate the navbar.Also, I just found info on the Bootstrap Ticket Theme available for v1.9.12 osTicket, so I am going to create a new install using that theme, before I do too much more with this.
This is the navbar with "Sign In for Fastest Help" link added:Using the same technique outlined above, I found area where I was able to replace the upper-right links with two buttons.I wish I had realized about the free Bootstrap themes that forum members have so graciously created before I started the mods.Even so, replacing the standard Guest/SignIn Area in upper-right corner is something which I will probably still want to do there as well.This is still very preliminary, but here is screen capture for osTicket Support links on client portals:
One of the things to keep in mind when editing the "include files" is that they are often used in many different places, so I make sure that I either make a "new" variant of that include, or do a lot of double-checking. (example, the buttons in upper-right of these two pages would not necessarily be appropriate somewhere else which uses the "guest/signin" text link.Ah, duh, i be red-faced. I have tried to delete the 3 attached files below, but I get an error. I was not intending for them to be there, as I have the two I actually wanted in-line above. If a mod could delete, it would be great!.