vahidhedayati / grails-wschat-plugin

Grails websocket chat Plugin provides a multi-chat room add-on to an existing grails based site. provides: Private Messaging/WebRTC/Offline PM + room booking/reservations. Websocket TicTactoe. Add Live Chat to your Grails application
http://grails.org/plugin/wschat
Apache License 2.0
22 stars 10 forks source link

chatbox overlapping #19

Closed charleslin1022 closed 8 years ago

charleslin1022 commented 8 years ago

Hi, I'm a coding rookie, thanks for this plugin, my grails version is 2.4.3, plugin version is 1.2.5. I want to use the private message function, a man can receive many private message. But when the man want to reply message, the chatboxes' position are overlapping. I don't know how to fix it. image 2

vahidhedayati commented 8 years ago

Grails 2 version of the code has fallen behind. Will take a lot of work to put it right. As a temporary fix try downloading this file https://raw.githubusercontent.com/vahidhedayati/grails-wschat-plugin/master/grails-app/assets/javascripts/jquery.ui.chatbox.js and putting this inside your assets/javascript or web-app/js folder.

This should override the plugin's version and then work. Let me know if it works or not

vahidhedayati commented 8 years ago

Okay I have now brought grails 2 version of the plugin inline with grails 3. Please try version 1.29.

Also Refer to the testwschat plugin Config.groovy file since I have introduced spring security in this latest release and I disabled it in the configuration of this test site.

charleslin1022 commented 8 years ago

Hi, I try the first method, but the result is the same. I will try version 1.29 and report result for you.

charleslin1022 commented 8 years ago

Hi, I have tried version 1.29. In wschat.js, the function sendPM(receiver,sender,pm) line 774 has error. I corrent it to "verifyPosition(sender);", and it seems ok. Thanks for your help.