# Babble Chat

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

<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: [7월 29, 2018, 2:50오전 UTC](https://meta.discourse.org/t/babble-chat/87297/87 "2018-07-29T02:50:30Z")

</div>

Okay, I’ve pushed a fix to display the chat by default if there’s only one (and you haven’t enabled the user-to-user messaging functionality)

---

<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: [7월 29, 2018, 7:41오후 UTC](https://meta.discourse.org/t/babble-chat/87297/88 "2018-07-29T19:41:59Z")

</div>

Sooo the sandbox died under mysterious circumstances the other day, so I’ve had to stand up a new instance. Same address ([https://discourse-babble.com](https://discourse-babble.com)), but you’ll have to make a new account if you had one before.

Thanks!

---

<div class="post-metadata">

### Author: ![Ankit\_Mehra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankit_mehra/32/101404_2.png) [@Ankit\_Mehra](https://meta.discourse.org/u/Ankit_Mehra)
#### Post date: [7월 31, 2018, 8:24오전 UTC](https://meta.discourse.org/t/babble-chat/87297/89 "2018-07-31T08:24:06Z")

</div>

Thanks for the wonderful plugin. I am facing a problem and not sure if it is something others are facing as well. The group / category discussions are real-time. However, the personal chat is not updating real time, i.e. when I am chatting with another user the other user can see that I am typing something but the message does not show up in the chat log even after I hit enter. The person has to close the chat widget or move to another chat to get the notification that a message is pending. This is contrary to the group/category chat where all messages are being rendered real time. I guess it might have to do with only a show view (ajax?)

---

<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: [7월 31, 2018, 12:03오후 UTC](https://meta.discourse.org/t/babble-chat/87297/90 "2018-07-31T12:03:12Z")

</div>

Thanks for the report; I’ve identified the issue and will try to get a fix out soon.

EDIT: Alright, this should now be fixed in latest.

---

<div class="post-metadata">

### Author: ![JoelZaslofsky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joelzaslofsky/32/158556_2.png) [@JoelZaslofsky](https://meta.discourse.org/u/JoelZaslofsky)
#### Post date: [7월 31, 2018, 9:08오후 UTC](https://meta.discourse.org/t/babble-chat/87297/91 "2018-07-31T21:08:53Z")

</div>

I’m sorry I haven’t been able to test this yet, James. My Discourse test environment is not functional right now and may not be live again until next week.

Giving you feedback on this great feature request is a top priority once I can actually test.

---

<div class="post-metadata">

### Author: ![Genyus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/genyus/32/119655_2.png) [@Genyus](https://meta.discourse.org/u/Genyus)
#### Post date: [8월 3, 2018, 12:50오전 UTC](https://meta.discourse.org/t/babble-chat/87297/92 "2018-08-03T00:50:42Z")

</div>

Hi James, I’ve started testing Babble and in general, it looks like a great plugin, but I have discovered a few odd bugs.

I’ve been unable to access the one-to-one messaging, even though I have it enabled, as shown:

 ![34](https://global.discourse-cdn.com/meta/original/3X/5/7/57738dc914159d1e057f5aceadfe71dc2aae588a.png)

Babble doesn’t fully work with the Brand Header theme component — with or without the adaptive height setting enabled. This is how it looks when the page is scrolled own and the brand header is hidden:

 ![42](https://global.discourse-cdn.com/meta/original/3X/0/c/0c0e1ca47baff4de645bf784f6ef05dae3172c64.png)

When adaptive height is enabled, then closing the chat also produces this effect:

 ![48](https://global.discourse-cdn.com/meta/original/3X/9/6/9660d32cbd696475a7e88bc7cf87697486471f0e.png)

Finally, the oddest bug of all appears to affect OAuth logins. Whenever a user logs in using an OAuth provider, the browser downloads /babble/notifications.mp3 rather than redirecting as usual. Disabling Babble doesn’t stop this behaviour, but instead of downloading the file, a broken page is loaded from the same URL:

 ![53](https://global.discourse-cdn.com/meta/original/3X/3/0/301782a5149f80c4215379dc8e02dce239bb9dab.png)

Any insights appreciated.

---

<div class="post-metadata">

### Author: ![Ankit\_Mehra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankit_mehra/32/101404_2.png) [@Ankit\_Mehra](https://meta.discourse.org/u/Ankit_Mehra)
#### Post date: [8월 3, 2018, 6:32오전 UTC](https://meta.discourse.org/t/babble-chat/87297/93 "2018-08-03T06:32:41Z")

</div>

Hi James, a suggestion / feature request. If a not logged-in user (prospective participant on the forum) can see the chat in a view mode, that can act as a trigger for him/her to sign up to the forum. I haven’t looked at the code yet, not sure if this is a simple feature or not.

---

<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: [8월 3, 2018, 9:57오전 UTC](https://meta.discourse.org/t/babble-chat/87297/94 "2018-08-03T09:57:30Z")

</div>

Hi James,

The new chat brings a slight disturbance in the force at my forum 😉

One of the requests I received since installing it is if it is possible to disable the notifications on a per-user basis, for instance on their personal preferences page.

Would that be possible you think?

---

<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: [8월 3, 2018, 1:08오후 UTC](https://meta.discourse.org/t/babble-chat/87297/95 "2018-08-03T13:08:59Z")

</div>

> [@JanJoost](#):
>
> disable the notifications

Sure, possible, I’ll put it on the list.

> [@Ankit\_Mehra](#):
>
> a not logged-in user (prospective participant on the forum) can see the chat

It’s likely not a simple feature, but we have had the option in the past (It was taken out because it complicated the code a lot). I’m open to a PR towards it, but likely not something I’ll work on myself.

> [@Genyus](#):
>
> a few odd bugs

Those are, indeed, a few odd bugs. Some things to check for for the PMs not appearing:

- Ensure you have babble private messaging enabled (it’s default off)
- Ensure that the enable\_personal\_messages setting is set to true
- Ensure that your trust level is above the min\_trust\_to\_send\_messages site setting (I think default is 2)
- Ensure you have another user on your forum for which all of the above are true.

If you link me to your forum I’ll have a peek at why the adaptive height might have regressed, and I’ll fix the OAuth thing this week. Thanks for your reporting!

---

<div class="post-metadata">

### Author: ![Genyus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/genyus/32/119655_2.png) [@Genyus](https://meta.discourse.org/u/Genyus)
#### Post date: [8월 3, 2018, 1:27오후 UTC](https://meta.discourse.org/t/babble-chat/87297/96 "2018-08-03T13:27:38Z")

</div>

> [@gdpelican](#):
>
> - Ensure you have babble private messaging enabled (it’s default off)
> - Ensure that the enable\_personal\_messages setting is set to true
> - Ensure that your trust level is above the min\_trust\_to\_send\_messages site setting (I think default is 2)
> - Ensure you have another user on your forum for which all of the above are true.

All the above are true. Currently, we only have staff registered so we can all message each other and the min\_trust level is 1, which again, everyone fulfils.

> [@gdpelican](#):
>
> If you link me to your forum I’ll have a peek at why the adaptive height might have regressed

The site’s currently set as invite-only — if you PM me your email, I’ll send you an invite

---

<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: [8월 3, 2018, 2:51오후 UTC](https://meta.discourse.org/t/babble-chat/87297/97 "2018-08-03T14:51:17Z")

</div>

Alright, here’s some initial responses:

- I believe the trust level of the admin created when the site is stood up isn’t getting something set properly, because I remember running into the same issue when setting up the sandbox. I was able to access the PMs as a newly invited user. I was able to fix by manually setting my trust level in the rails console. I’m going to throw an explicit check in there to always allow admins access to the pm feature.

- The adaptive height isn’t working because of some custom CSS in a theme component, namely this line:

```plaintext
.d-header { margin-top: 48px; }

```

I’m not sure if I can guarantee that it’ll work with absolutely any CSS related to a header that gets put in there, but this seems like a case we should be able to handle, so I’ll have a look at fixing it for that case.

- I’ve also got a fix for the OAuth thing, but can’t push anything this second due to internet issues; I’ll get it out there as soon as I can.

---

<div class="post-metadata">

### Author: ![Genyus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/genyus/32/119655_2.png) [@Genyus](https://meta.discourse.org/u/Genyus)
#### Post date: [8월 3, 2018, 3:07오후 UTC](https://meta.discourse.org/t/babble-chat/87297/98 "2018-08-03T15:07:24Z")

</div>

> [@gdpelican](#):
>
> I believe the trust level of the admin created when the site is stood up isn’t getting something set properly, because I remember running into the same issue when setting up the sandbox. I was able to access the PMs as a newly invited user. I was able to fix by manually setting my trust level in the rails console. I’m going to throw an explicit check in there to always allow admins access to the pm feature.

This seems to be the case here — I checked my account and discovered I was TL0, as you suggested. Updated that and now I see the users listed as expected. 👍

I’ve discovered one more incompatibility, however. Using the [graceful theme](https://meta.discourse.org/t/a-graceful-theme-for-discourse/93040) (named “Elegant” on our site), the chat icon isn’t displayed at all. You can select that theme from the hamburger menu to see for yourself

---

<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: [8월 3, 2018, 4:42오후 UTC](https://meta.discourse.org/t/babble-chat/87297/99 "2018-08-03T16:42:13Z")

</div>

> [@Genyus](#):
>
> I’ve discovered one more incompatibility, however. Using the [graceful theme](https://meta.discourse.org/t/a-graceful-theme-for-discourse/93040) (named “Elegant” on our site), the chat icon isn’t displayed at all.

Hi! The same goes for the Vincent-theme.

I’m not sure if this is an issue with Babble or with the theme though.

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [8월 3, 2018, 10:34오후 UTC](https://meta.discourse.org/t/babble-chat/87297/101 "2018-08-03T22:34:07Z")

</div>

@Not-The-Foggiest Is correct, for some reason there is a new topic made everytime someone messages on babble.

---

<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: [8월 4, 2018, 12:21오전 UTC](https://meta.discourse.org/t/babble-chat/87297/102 "2018-08-04T00:21:30Z")

</div>

Yes, that’s the case; all Babble chats run on the Discourse topic engine; it’s the only way to effectively store and relate the chat information correctly from within a plugin.

We exclude those topics in a lot of places (like the latest topics list, and in User statistics), so if you’re a bit more specific about where you’re seeing these new topics show up I can likely exclude them from there as well.

---

<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: [8월 4, 2018, 12:56오전 UTC](https://meta.discourse.org/t/babble-chat/87297/103 "2018-08-04T00:56:35Z")

</div>

Maybe @Johani or @awesomerobot can help shed some light on that; my best guess is that the html files included in those themes are somehow overwriting the below-site-header plugin outlet, and should be yielding to it somehow.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [8월 4, 2018, 2:04오전 UTC](https://meta.discourse.org/t/babble-chat/87297/104 "2018-08-04T02:04:48Z")

</div>

Just tried the plugin on a fresh install, and with the graceful theme the bullhorn button appears… but doesn’t have any background so it’s hard to see. It was happening because I had `background: transparent` set on the global `.btn` class.

I added some styles to fix it

 ![31%20PM](https://global.discourse-cdn.com/meta/original/3X/2/7/2784337c04c97a29321aa8ba4f144892b42d86eb.jpg)

@Genyus, if you update the theme the button should be back…

---

<div class="post-metadata">

### Author: ![Genyus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/genyus/32/119655_2.png) [@Genyus](https://meta.discourse.org/u/Genyus)
#### Post date: [8월 4, 2018, 2:06오전 UTC](https://meta.discourse.org/t/babble-chat/87297/105 "2018-08-04T02:06:31Z")

</div>

I applied the update and the icon is now visible. Thanks for the swift fix!

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [8월 4, 2018, 3:02오후 UTC](https://meta.discourse.org/t/babble-chat/87297/106 "2018-08-04T15:02:27Z")

</div>

Would it be possible to have users disable display of the icon, perhaps in preferences? I’m already starting to see complaints.

---

<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: [8월 4, 2018, 3:11오후 UTC](https://meta.discourse.org/t/babble-chat/87297/107 "2018-08-04T15:11:20Z")

</div>

Adding user preferences is a bit trickier than I’d like, but there’s a couple user preference related requests so I’ll likely get to it at some point.

One approach for today might be to create a theme component with

```plaintext
.babble-sidebar-component, #babble-icon { display: none };

```

in it, and allow users to select their theme based on whether they want Babble to appear or not  
(Ie, you could have `Vincent (with chat)` and `Vincent (without chat)` as selectable themes)

[이전 페이지](https://meta.discourse.org/t/babble-chat/87297.md?page=4)

[다음 페이지](https://meta.discourse.org/t/babble-chat/87297.md?page=6)
