# Integrating registered users notifications+avatar into static website

**URL:** https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245
**Category:** Development
**Created:** [July 30, 2020, 2:47am UTC](https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245 "2020-07-30T02:47:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Monkey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/monkey/32/188547_2.png) [@Monkey](https://meta.discourse.org/u/Monkey)
#### Post date: [July 30, 2020, 2:47am UTC](https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245/1 "2020-07-30T02:47:55Z")

</div>

Hello everyone,

I have a website and I use Embedded discourse comments. Rather than using the standard method below of creating the thread when a user visits the webpage. I use the api to create the threads and attach the thread id in the webpage before it’s published. This all works very well.

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

What I’m curious about is **integrating notifications from discourse** , into the main website’s header. So users can browse the static webpages and see a little notification by their avatar when someone on the forum has engaged with them.

I have searched for this kind of implementation and didn’t find much, maybe I didn’t know what I was looking for.  
Thanks

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 30, 2020, 3:39am UTC](https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245/2 "2020-07-30T03:39:25Z")

</div>

I have done this, but the main website was dynamic and there was SSO between the two. So it was easy for the backend code to fire a request for the notifications API during page load, and CORS was not a problem.
