# Babble Chat

**URL:** https://meta.discourse.org/t/babble-chat/87297
**Category:** Plugin
**Tags:** broken
**Created:** [May 11, 2018, 10:08pm UTC](https://meta.discourse.org/t/babble-chat/87297 "2018-05-11T22:08:04Z")
**Posts on this page:** 20
**Page:** 9

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 25, 2018, 3:39am UTC](https://meta.discourse.org/t/babble-chat/87297/168 "2018-09-25T03:39:22Z")

</div>

Hm, yes, looks like a recent change to Discourse of some kind. I’ll take care of it tomorrow.

EDIT: @JanJoost This is now fixed in latest.

---

<div class="post-metadata">

### Author: ![JanJoost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janjoost/32/97173_2.png) [@JanJoost](https://meta.discourse.org/u/JanJoost)
#### Post date: [September 25, 2018, 3:48pm UTC](https://meta.discourse.org/t/babble-chat/87297/169 "2018-09-25T15:48:38Z")

</div>

You’re a superstar! I’ll go and test, will report back! Thanks!

Update: Works like a charm! Thanks very much!

---

<div class="post-metadata">

### Author: ![Speck\_of\_the\_Cosmos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/speck_of_the_cosmos/32/119544_2.png) [@Speck\_of\_the\_Cosmos](https://meta.discourse.org/u/Speck_of_the_Cosmos)
#### Post date: [October 2, 2018, 4:22am UTC](https://meta.discourse.org/t/babble-chat/87297/170 "2018-10-02T04:22:59Z")

</div>

Bug: Babble icon shows up even for users not authorized to use it or even those who’ve disabled it on mobile.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 2, 2018, 8:11am UTC](https://meta.discourse.org/t/babble-chat/87297/171 "2018-10-02T08:11:37Z")

</div>

Thanks for the report.

I’ve just pushed a fix which ensure the chat doesn’t show up until we confirm that there are chat channels you can participate in.

I wasn’t able to repro any issues with the babble\_disabled user setting, are you able to be a bit more specific with the problem you’re seeing there?

---

<div class="post-metadata">

### Author: ![bokos](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bokos](https://meta.discourse.org/u/bokos)
#### Post date: [October 5, 2018, 7:53pm UTC](https://meta.discourse.org/t/babble-chat/87297/172 "2018-10-05T19:53:42Z")

</div>

Idea: close the chat box when you tap the back button on your smartphone.  
Some users had trouble finding the close button, so they hit the back button and got redirected to the previous page instead of closing the chat box.

---

<div class="post-metadata">

### Author: ![einsiedlerkrebs](https://avatars.discourse-cdn.com/v4/letter/e/ee7513/32.png) [@einsiedlerkrebs](https://meta.discourse.org/u/einsiedlerkrebs)
#### Post date: [October 8, 2018, 8:35am UTC](https://meta.discourse.org/t/babble-chat/87297/173 "2018-10-08T08:35:44Z")

</div>

Hi there,

@gdpelican thanks for developing so active on this!

We are evaluating if we want to include a chat into our community platform. While there are many good reasons for offering a realtime-chat functionality there is a chance, to loosing content, which would have found its place into the more persistent forum.

> [@gdpelican](#):
>
> Removed chat posts from search results and rss feeds (this change will also prevent people from receiving badges based on their chat activity)

This and earlier comments and features makes me think, that the chat lays in categories which I chose, when creating a channel. But I can not find the “Thread view” of the chat. Is there none, or can someone hint me to it?

EDIT: I have found a link to the chat (some lucky webhook, got me there) but still I am very curious what the default navigation would be.

Thanks.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 9, 2018, 1:07am UTC](https://meta.discourse.org/t/babble-chat/87297/174 "2018-10-09T01:07:35Z")

</div>

Hi @einsiedlerkrebs,

The chat is stored as a topic in the database, so it’s as persistent as other content on the forum. The thread view is not really supported, as chats and topics are quite different in the way they are interacted with and displayed. You are able to scroll back in the chat indefinitely, although it’s not searchable at the moment.

I wonder if you’d be able to state a bit more clearly what kind of feature you’re looking for?

---

<div class="post-metadata">

### Author: ![bokos](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bokos](https://meta.discourse.org/u/bokos)
#### Post date: [October 9, 2018, 11:41am UTC](https://meta.discourse.org/t/babble-chat/87297/175 "2018-10-09T11:41:07Z")

</div>

The chat box covers the content (thread, posts, avatars) at a width of 1590px and similar.  
At smaller widths (for example 100px less, 1490px) the content gets pushed aside. I think the content should get pushed at 1590px too. Tested on the demo page.

---

<div class="post-metadata">

### Author: ![einsiedlerkrebs](https://avatars.discourse-cdn.com/v4/letter/e/ee7513/32.png) [@einsiedlerkrebs](https://meta.discourse.org/u/einsiedlerkrebs)
#### Post date: [October 9, 2018, 2:04pm UTC](https://meta.discourse.org/t/babble-chat/87297/176 "2018-10-09T14:04:16Z")

</div>

Thanks for your reply.

Chat and forum are diverging in terms of persistence. We are doubting if a chat would make us loose (some) quality content to this infinity. Therefore if we would get access to the chat-history we might be able cherry pick some content by splitting or plain copying it.

Thats why I asked for a setting, that would make the chat topic (history) visible/linkable.

---

<div class="post-metadata">

### Author: ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)
#### Post date: [October 19, 2018, 12:36am UTC](https://meta.discourse.org/t/babble-chat/87297/177 "2018-10-19T00:36:01Z")

</div>

Hey guys! 2 quick questions.

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/9/39d51745c4dcd7c6f22a2e5ad074583b5f00f320.jpeg)

1. Is there a way tu customise the group icon?
2. Is there a way to list more user in the chat section?

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 19, 2018, 2:09am UTC](https://meta.discourse.org/t/babble-chat/87297/178 "2018-10-19T02:09:56Z")

</div>

> [@bokos](#):
>
> close the chat box when you tap the back button on your smartphone

I’m quite hesitant to hijack the back button from a plugin; it’s a browser action that javascript can’t really listen to for security reasons and wouldn’t be very comfortable with putting a hack in for it.

> [@bokos](#):
>
> I think the content should get pushed at 1590px too

I’ve bumped the threshold for pushing up to 1600px in the latest.

> [@Olivier\_Lambert](#):
>
> 1. Is there a way tu customise the group icon?

There’s not a way to do this at this time, but PRs are welcome for this.

> [@Olivier\_Lambert](#):
>
> 1. Is there a way to list more user in the chat section?

I’ve just put in a site setting called ‘babble\_initial\_user\_count’ for number of PMs shown on initial load, default 10.

Thanks for the feedback!

---

<div class="post-metadata">

### Author: ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)
#### Post date: [October 19, 2018, 4:42pm UTC](https://meta.discourse.org/t/babble-chat/87297/179 "2018-10-19T16:42:11Z")

</div>

> [@gdpelican](#):
>
> I’ve just put in a site setting called ‘babble\_initial\_user\_count’ for number of PMs shown on initial load, default 10.

The best case scenario would be to load only active users through the who’s online plugin.

Other thing, is there a way to customise the template used to display messages?

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/2024391c56f11cc4d695efed3ef07e6969ff1127.jpeg)

I’d like to add a class to differenciate yourself from other users. (So it’s more like Instagram and Facebook)

Love the plugin so far 🕺

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 19, 2018, 6:56pm UTC](https://meta.discourse.org/t/babble-chat/87297/180 "2018-10-19T18:56:43Z")

</div>

> [@Olivier\_Lambert](#):
>
> I’d like to add a class to differenciate yourself from other users

I’ve put in an attribute that should let you select on only your messages, like so:

```plaintext
.babble-post[data-my-post] { background: mauve; }

```

> [@Olivier\_Lambert](#):
>
> The best case scenario would be to load only active users through the who’s online plugin.

I’m not willing to increase the dependency on the Who’s Online plugin (I’m closer to taking out that feature than expanding on it, as inter-plugin dependencies are icky). I’d be happy to look at a PR for doing this internally in Babble, but do not have plans to work on it myself.

---

<div class="post-metadata">

### Author: ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)
#### Post date: [October 21, 2018, 6:16pm UTC](https://meta.discourse.org/t/babble-chat/87297/181 "2018-10-21T18:16:39Z")

</div>

> [@gdpelican](#):
>
> I’d be happy to look at a PR

Feels like a silly question, but would you mind explaining what PR stands for?

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [October 21, 2018, 7:38pm UTC](https://meta.discourse.org/t/babble-chat/87297/182 "2018-10-21T19:38:08Z")

</div>

> [@Olivier\_Lambert](#):
>
> What does PR stand for?

> **[About pull requests - GitHub Docs](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)**
>
> Pull requests let you propose, review, and merge code changes.

---

<div class="post-metadata">

### Author: ![RaceredFree](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raceredfree/32/123166_2.png) [@RaceredFree](https://meta.discourse.org/u/RaceredFree)
#### Post date: [October 24, 2018, 12:03pm UTC](https://meta.discourse.org/t/babble-chat/87297/183 "2018-10-24T12:03:06Z")

</div>

Hey there I just integrated the babble plugin into our forum! Awesome work. 2 questions however:

1. I don’t see the option to open the babble chat automatically upon opening the forum, it’s not in the admin or plugin’s settings.
2. Groups don’t get transferred to the babble chat. I can’t find how to add group chats to babble chat either.

Kind regards!

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 24, 2018, 7:44pm UTC](https://meta.discourse.org/t/babble-chat/87297/184 "2018-10-24T19:44:19Z")

</div>

> [@RaceredFree](#):
>
> I don’t see the option to open the babble chat automatically upon opening the forum

I’ve moved this to a user setting, so you can find it under your own preferences → Interface panel

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/6/3610ac7813b9cd355022bc4d76a8a8cb68ab2d42.png)

I’ve added a note in the README saying as such, thanks for that.

> [@RaceredFree](#):
>
> Groups don’t get transferred to the babble chat.

Can you be a bit more specific about what you mean by this? Screenshots would help as well if possible.

---

<div class="post-metadata">

### Author: ![OvermindDL1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overminddl1/32/115252_2.png) [@OvermindDL1](https://meta.discourse.org/u/OvermindDL1)
#### Post date: [October 24, 2018, 7:52pm UTC](https://meta.discourse.org/t/babble-chat/87297/185 "2018-10-24T19:52:25Z")

</div>

> [@gdpelican](#):
>
> I’m quite hesitant to hijack the back button from a plugin; it’s a browser action that javascript can’t really listen to for security reasons and wouldn’t be very comfortable with putting a hack in for it.

I think you can look at `navigation.history`, you can ‘push’ a new entry one, so if someone goes back then it goes to the prior entry without reloading the page, when closing the chat interface you should just pop the entry you put on yourself.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [October 24, 2018, 8:00pm UTC](https://meta.discourse.org/t/babble-chat/87297/186 "2018-10-24T20:00:40Z")

</div>

Right. But the hack’s not there, it’s on triggering an event (closing the chat pane) when the back button is actually pressed.

Check out the accepted answer (and comments) on a relevant SO question here:

> <https://stackoverflow.com/questions/25806608/how-to-detect-browser-back-button-event-cross-browser>

EDIT: I’ll have a look at this at some point to see if there’s a better way, but it’d likely be quicker to submit a PR if you have a fix in mind.

---

<div class="post-metadata">

### Author: ![RaceredFree](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raceredfree/32/123166_2.png) [@RaceredFree](https://meta.discourse.org/u/RaceredFree)
#### Post date: [October 24, 2018, 8:01pm UTC](https://meta.discourse.org/t/babble-chat/87297/187 "2018-10-24T20:01:34Z")

</div>

Found it! I didn’t knew of you don’t asign a babble chat to a category is does get appointed to the chosen group only who can view it and it shows under “groups” in babble.

[Previous page](https://meta.discourse.org/t/babble-chat/87297.md?page=8)

[Next page](https://meta.discourse.org/t/babble-chat/87297.md?page=10)
