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

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
ztank
Posts: 36
Joined: Thu Dec 19, 2024 3:59 pm

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

Post 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.
ztank
Posts: 36
Joined: Thu Dec 19, 2024 3:59 pm

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

Post 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.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

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

Post by Klemen »

Correct, the custom-text.php is a "per language" file. Glad to hear you were able to get it to work!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ztank
Posts: 36
Joined: Thu Dec 19, 2024 3:59 pm

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

Post 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.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ztank
Posts: 36
Joined: Thu Dec 19, 2024 3:59 pm

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

Post 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.
Post Reply