Problem with totop and head.txt update to 3.4.0

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
lhesk
Posts: 12
Joined: Thu Sep 29, 2022 6:23 am

Problem with totop and head.txt update to 3.4.0

Post by lhesk »

Yesterday I updated hesk to version 3.4.0 but after updated I found two problems.

1. Button "to top" disappeared.
2. I had code in head.txt but now code doesn't load in section <head>
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with totop and head.txt update to 3.4.0

Post by Klemen »

Both work fine for me?

Double-check that your head.txt still contains your code (that you didn't overwrite it).

The "Back to top" button only appears when the ticket page is at least 800 pixels high. Maybe some of the missing code from your head is causing Javascript errors?
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
lhesk
Posts: 12
Joined: Thu Sep 29, 2022 6:23 am

Re: Problem with totop and head.txt update to 3.4.0

Post by lhesk »

You have right, button "to top" appear only in tickets but how to change code that this button appear in another pages ?

I installed clean hesk by softaculous and I added to head.txt below code but this code doesn't appear in <head> section.
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with totop and head.txt update to 3.4.0

Post by Klemen »

Where are you trying to add that code? Note that whatever you add to head.txt only appears in the customer side. If you want to add something to the admin side, you will need to edit /inc/header.inc.php

To add "back to top" to other pages in admin, you will need to edit each page you want it to add. I can't provide much support for such customizations, but the general guideline is you will need this at the top:

Code: Select all

define('BACK2TOP',1);
And this somewhere at the bottom of the page:

Code: Select all

<a href="#" class="back-to-top"><?php echo $hesklang['btt']; ?></a>
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
lhesk
Posts: 12
Joined: Thu Sep 29, 2022 6:23 am

Re: Problem with totop and head.txt update to 3.4.0

Post by lhesk »

Thanks for your help. I thought that code head.tx work both admin and client.
Post Reply