Page 1 of 1

Top left corner logo/header customization via custom-test.php file half works...

Posted: Thu Dec 19, 2024 6:20 pm
by ztank
Hello again, I am on hesk version 3.5.1,

I followed this article https://www.hesk.com/knowledgebase/index.php?article=88 to customize the top left "Help Desk" logo/header.
I added this line in a newly created ./language/en/custom-text.php file (as per the above article):

$hesklang['help_desk']='WHATEVER'; // Displayed on staff sidebar menu

The original line in ./language/en/text.php file was

$hesklang['help_desk']='Help Desk'; // Displayed on staff sidebar menu

Weirdly enough if I login as admin I see in the top left corner the custom text WHATEVER, whilst if I login as another user (type=Staff), I see in the top left corner the text Helpdesk (one word with Capital H followed by all lower-cases without a space!). Where is it coming from? Any idea?

Thanks for helping.

Re: Top left corner logo/header customization via custom-test.php file half works...

Posted: Thu Dec 19, 2024 9:06 pm
by ztank
Found out why! my bad...
As I was using the multilingual settings on HESK, I had to create the ./language/it/custom-text.php file too under the "it" subfolder.
Also, on double checking the default ./language/it/text.php file I also finally noticed why I got Helpdesk instead of Help Desk as previosuly complained about. Here's why:
$hesklang['help_desk']='Helpdesk'; // Displayed on staff sidebar menu
Mystery solved.
Ciao.

Re: Top left corner logo/header customization via custom-test.php file half works...

Posted: Fri Dec 20, 2024 8:40 am
by Klemen
Correct, the custom-text.php is a "per language" file. Glad to hear you were able to get it to work!

Re: Top left corner logo/header customization via custom-test.php file half works...

Posted: Sun Dec 29, 2024 11:13 am
by ztank
Hello again,

just another little help is needed here.
I added this line in my ./language/it/custom-text.php file:

$hesklang['on_hold']='In sospeso';

that should replace the default Italian translation for the twin line in the ./language/it/text.php file and which is:

$hesklang['on_hold']='In attesa';

Unfortunately it does not change the displayed status for a ticket. Not even hard-coding it in the source file ./language/it/text.php seems to have any effect.

Does it have to do with the fact that "On Hold" is a ticket status and it is populated in a drop down list menu?

Any clue?

Thanks.

Re: Top left corner logo/header customization via custom-test.php file half works...

Posted: Sun Dec 29, 2024 2:36 pm
by Klemen
This happens because statuses are cached. Try adding and removing a custom status in Admin >Tools > Statuses, thst should clear the status cache.

Re: Top left corner logo/header customization via custom-test.php file half works...

Posted: Sun Dec 29, 2024 3:15 pm
by ztank
Actually it wasn't necessary because when I checked again, after your reply, the custom translation was finally showed.
I assume the cache naturally expired and the system grabbed the new custom on_hold value.
Thanks.