Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2022-02-11 22:34:07

trueJP
New member
Registered: 2022-02-11
Posts: 6

Adding my own onclick-events to buttons in the chat window

Hey there,
I just started developing and modding live helper chat for my own website, its an awesome piece of software. However I'm struggling a bit with integrating my own scripts from my website. For example, I have a nice Popup-Script whoch receives a parameter and loads some contents depending on the parameters from a different server. In plain HTML this works perfectly, however in Live helper chat onclick events get interpretet(..?) by a different script. From what I've understood so far there is an event handler for all custom events, but this seems not suitable for my needs. Any clue on where/how I can add my own functions to the chat?

Note: I am sending the button using BBCode for plain HTML

Offline

#2 2022-02-11 22:41:36

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Adding my own onclick-events to buttons in the chat window

Thanks for the question.
Please try to wait a reply from the developer  smile


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2022-02-11 22:47:02

trueJP
New member
Registered: 2022-02-11
Posts: 6

Re: Adding my own onclick-events to buttons in the chat window

Thanks for the quick reply, let's wait and see what's possible  wink

Offline

#4 2022-02-12 08:51:04

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Adding my own onclick-events to buttons in the chat window

You can give a look at the documentation in the main time: https://doc.livehelperchat.com/
You can maybe find the answer.
In my forum signature you can find some links to also join the discord chat where you can try to ask your question if here doesn't get an answer.

When you find the solution please, try to share here so other users may be helped as well.

Wish to you a magical week end.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#5 2022-02-12 11:17:09

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Adding my own onclick-events to buttons in the chat window

Take a look at this extensions.
It renders button in the widget and listen for their own JS event with which afterward you can do whatever you want.
https://github.com/LiveHelperChat/cloud … de.tpl.php

Also you can always just have quick reply buttons and on click execute another trigger which has ExecuteJS response type.

Offline

Board footer