Helix Ultimate Custom JS Chat - Question | JoomShaper

Helix Ultimate Custom JS Chat

RA

Rafael Alvarez

Extension 2 years ago

Hi

We did tried to add Zammad chat at our website by using custom javascript following those steps:

https://admin-docs.zammad.org/en/latest/channels/chat.html

But no luck

We tried to add it at "Template Options"-->"Custom Code"-->"Before Body"

Our joomla is 4.1.0 PHP 7.4 Helix Ultimate (latest version)

0
10 Answers
RA
Rafael Alvarez
Accepted Answer
2 years ago #59224

Hi Paul,

Thanks for your response. No need to use it, it does work Ok using the template custom code.

We did found the problem, we do use a reverse NGINX proxy and found we do need to allow WSS on it to have it working.

So is it solved, we were doing correctly at the template custom code.

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #59203

Hi,

Check if you have RSFirewall component installed, if yes - it may (it does) damage < s-cript code - so you have to check on RSJoomla docs how to solve it.

If you don't have this kind of firewall but still don't work, use alternative solution:

  1. Find, download and install module "HDAnyCode"
  2. Put your chat script code inside
  3. Publish that module in "debug" position
1
RA
Rafael Alvarez
Accepted Answer
2 years ago #59205

Hi Paul,

Thank you very much for your response. I think we are having problem with wss connection to the server.

We will try to check this fist and come back. Looking with your response we are placing the code right, so the problem might be the Zammad server socket.

"2" --> I was not able put the code cause looks the answer is not posted (loading forever) maybe the content does not lile the "script" tag

"1" --> HDAnyCode not found, could you please send me the link ?

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #59210
0
RA
Rafael Alvarez
Accepted Answer
2 years ago #59217

Hi Paul

Thank you very much for the link, but I think anycode is for Joomla 3.5 and does not look they do have it for Joomla 4.xx

As I commented before we do use Joomla 4.10, and the idea is not inserting the code on an article, but show it for all pages.

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #59218

Here is unoffcial version for Joomla 4

mod_hd-anycode_j4.zip

0
RA
Rafael Alvarez
Accepted Answer
2 years ago #59219

Hi Paul,

Thanks for your answer. We will ot use any unnoficial module.

I think it should work with the template custom code. If you confirm we can place a custom jss code at the template.

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #59220

It's offcial, but not published yet ;)

As you wish.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #59225

yes, use your custom code in Template Options - Custom Code - Before < / body >

it's the best place for this kind of code which should be loaded as last one.

foto_7940_2022.jpg

0
RA
Rafael Alvarez
Accepted Answer
1 year ago #102631

Hi, we are behind a nginx reverse proxy

We found how to solve, need to accept WSS traffic.

Thanks for your help.

Please close the ticket

0