Page 1 of 1
Open players private chat box
Posted: 22 November 2020, 21:48
by disu
Is there a way to open (and close), in my game page, the private chat box of single players? How?
I want to create custom buttons like the "balloon" button in private member page.
Re: Open players private chat box
Posted: 22 November 2020, 23:13
by Tisaac
Yes, there is an undocumented way to do that, but the issue is that the conversation will then appear in the list of conversation of the player after the game, so that's not really a good idea. You will need to do it yourself by storing conversation in the DB.
Re: Open players private chat box
Posted: 23 November 2020, 18:35
by disu
Tisaac wrote: ↑22 November 2020, 23:13
Yes, there is an undocumented way to do that, but the issue is that the conversation will then appear in the list of conversation of the player after the game, so that's not really a good idea. You will need to do it yourself by storing conversation in the DB.
Thank you Tisaac.
But is there some documentation on how to manage a simple chat in BGA? I don' think web socket is available for developers and I think is better to avoid polling...maybe some integration with existing BGA chats?
Re: Open players private chat box
Posted: 23 November 2020, 19:11
by Tisaac
Well just use the notification system and ajax calls, and store the messages in your db. Not really complicated but surely would be nice if we could rely on BGA framework instead
Re: Open players private chat box
Posted: 21 September 2021, 19:43
by disu
Any update on this?