In yet another customization effort, I felt compelled to modify the editor font in osTicket from Trebuchet MS to Arial. Why did I do this? Because Trebuchet MS is a terrible font, in my opinion. Notice that you may not have the same opinion, and that’s totally okay! You’re entitled to one!
Continue reading Change the font in osTicket editorCategory: Coding
A few words about Markdown
I’ve decided to try out the WordPress Markdown block to draft this post. I’ve been using the Block Editor for some time now and, while it is really flexible design-wise, it is challenging to learn when stepping away from the Classic Editor. As time has gone on I’ve gotten pretty good with the Block Editor. But there was a block I had never heard of before: the Markdown block. I just had to dive in and find out more about it!
Due dates as dates in osTicket
So, I noticed that osTicket prefers to show dates for due dates and certain other fields as “human readable” dates. It displays something like Due in 2 days
instead of 3/2/21 14:30
which was what I preferred; so they were the same as all the other dates. Sorting on these fields was often unreliable and the various phrases broke table displays and generally drove my OCD bonkers. Unfortunately, there is no way to change how these dates were displayed in the settings. So, I had to dig into the code.
Search custom fields in osTicket
Once upon a time there was no way to add searching capabilities to custom user fields in osTicket. I found a forum post detailing how to do it when searching the user list. But there was nothing on how to get it done when creating a ticket.
That is until I figured out how to get it done…
Continue reading Search custom fields in osTicketEasy Pagination
While writing a model I needed an easy way to set the starting record based only upon the page number that we’re on. This has always vexed me for some reason, but then it just hit me. The page number can be used to mathematically compute the starting record if we know the number of records to be displayed on each page (and we usually do). Continue reading Easy Pagination