Fórumok

Liferay 5.2.3 chat portlet - notification alert problem

thumbnail
Richard Cantor, módosítva 14 év-val korábban

Liferay 5.2.3 chat portlet - notification alert problem

New Member Bejegyzések: 17 Csatlakozás dátuma: 2009.03.18. Legújabb bejegyzések
Can someone please help me with the chat portlet in Liferay 5.2.3?

Liferay 5.2.3/Tomcat 6/Linux Box/SQLServer

Got the chat portlet to finally work : )

if you're using apache, the quick fix is to add /chat-portlet/ to your ajp connector, then modify pollar.js the variable url to your portals new context root, which for me is now /tools/pollar.

All this makes the chat portlet work fine, however...

The alerting does not work well at all.

Can someone please tell me:

1) How to change/modify the delay timing of pollar in the portal or javascript.js in the chat-portlet webapp??? I wan't this to fire almost continuously with absolutely no delay.

2) What function to modify so I can do a window.focus() on anyone who decides to write me through IM. What I found was this method:

setAsUnread: function() {
var instance = this;

if (!instance.get('selected')) {
var panel = instance._panel;

panel.addClass('waiting');

if (instance._unreadMessages > 1) {
instance._unreadMessagesContainer.text(instance._unreadMessages);
instance._unreadMessagesContainer.show();
}
else {
Liferay.Chat.Manager.triggerSound();
instance._unreadMessagesContainer.hide();
}

document.title = instance._originalPageTitle + ' - Unread messages (' + instance._unreadMessages + ')';
}
},

What I am trying to do is change this line:

document.title = instance._originalPageTitle + ' - Unread messages (' + instance._unreadMessages + ')';

to

window.focus();

but it did not work.

Can anyone help????

Thanks all,

-Rich
Ryan Monk, módosítva 13 év-val korábban

RE: Liferay 5.2.3 chat portlet - notification alert problem

New Member Bejegyzések: 6 Csatlakozás dátuma: 2010.05.13. Legújabb bejegyzések
I've got the same setup and the notifications don't appear to work for me emoticon

It appears that I have to first click on a friend so it adds their tab to the chat bar before I can see that they had already sent me a message!
Martin Lojek, módosítva 13 év-val korábban

RE: Liferay 5.2.3 chat portlet - notification alert problem

New Member Bejegyzések: 7 Csatlakozás dátuma: 2010.12.01. Legújabb bejegyzések
I have the same problem. Any suggestions guys?
Alberto Aguilar, módosítva 12 év-val korábban

RE: Liferay 5.2.3 chat portlet - notification alert problem

New Member Bejegyzések: 6 Csatlakozás dátuma: 2011.04.13. Legújabb bejegyzések
I have the same problem with version 6.0.0 of liferay...

I hope someone can answer this problem
thumbnail
Hitoshi Ozawa, módosítva 12 év-val korábban

RE: Liferay 5.2.3 chat portlet - notification alert problem

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I'm using 6.0.6 and it seems to be working for me. May be revision up your Liferay installation?
thumbnail
Sisay Nigussie, módosítva 9 év-val korábban

RE: Liferay 5.2.3 chat portlet - notification alert problem

New Member Bejegyzés: 1 Csatlakozás dátuma: 2014.08.21. Legújabb bejegyzések
Hitoshi Ozawa:
I'm using 6.0.6 and it seems to be working for me. May be revision up your Liferay installation?



emoticon