livehelperchat icon indicating copy to clipboard operation
livehelperchat copied to clipboard

Submit button for messages

Open koosvanderkolk opened this issue 10 years ago • 7 comments
trafficstars

Currently messages are being send by pressing Return.

Some people are not used to this system.

It would be great if there would be an optional 'Submit message' button in the chat dialogs.

koosvanderkolk avatar Nov 21 '15 09:11 koosvanderkolk

Agree with you. As in the livehelper demo website this button are not present.

PeopleInside avatar Nov 21 '15 09:11 PeopleInside

The thing is once we had this, then someone request to remove because natively is pressing enter and now reverse requst. It's just impossible to satisfy everyone without making bunch of settings in back office.

remdex avatar Jan 02 '16 18:01 remdex

I think one additional setting won't hurt too much :). I think a 'no gui' gui is not a good gui. Most help requests are done by less experienced users, who have an increased risk of not knowing that pressing enter sends a message. Furthermore, because they already stressed (because something does not work on the site) they are likely suffering from a mental phenomenon called 'cognitive overload'. It does then not help if gui elements are hidden, I think :)

From: Remigijus Kiminas [email protected] Sent: 2 Jan 2016 19:40 To: LiveHelperChat/livehelperchat Cc: Koos van der Kolk Subject: Re: [livehelperchat] Submit button for messages (#792)

The thing is once we had this, then someone request to remove because natively is pressing enter and now reverse requst. It's just impossible to satisfy everyone without making bunch of settings in back office.

Reply to this email directly or view it on GitHubhttps://github.com/LiveHelperChat/livehelperchat/issues/792#issuecomment-168415359.

koosvanderkolk avatar Jan 02 '16 19:01 koosvanderkolk

Bad idea remove the send button. For me the error was remove this, old topic to remove the button should not be implemented. When I press enter suppose to go on the new row, press send or start is the right way to start a chat.

Maybe the idea is have button and also enter work as start chat. I understand you @remdex maybe you should not remove the send button as is not fully correct no see send or start button.

I prefer to see the send button as told @koosvanderkolk but do what you want. :)

PeopleInside avatar Jan 02 '16 20:01 PeopleInside

If you replace the code in design/defaulttheme/tpl/lhchat/chat.tpl.php to

`status != erLhcoreClassModelChat::STATUS_CLOSED_CHAT) : ?>


`

Or in other words, just adding the line: <input type="button" class="btn-sm btn-send" name="Send" onclick="lhinst.addmsguser(); return false;" value="Send"> after the end script tag. That will add a send button under the text box that uses the same functionality as pressing enter. Then you just need to style it.

SoWelch avatar Mar 08 '16 17:03 SoWelch

https://forum.livehelperchat.com/viewtopic.php?pid=9318

PeopleInside avatar Dec 21 '16 09:12 PeopleInside

I think that that would be a good idea to add a button of sending. In particular for the responsive, certain keyboards have no button to send.

lucasvannoort avatar Dec 21 '16 09:12 lucasvannoort