1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alert Count 1.4

Alert count in browser tab title with automatic updates, for all members or by permission only.

  1. Bloodcinder

    Bloodcinder Well-Known Member

    Bloodcinder submitted a new resource:

    Alert Count - Show unread alert count in browser tab and (optionally) poll for updates every X seconds.

    Read more about this resource...
    Linxy and dethfire like this.
  2. it_

    it_ Member

    Is this also designed for pulling counts from Showcase? If not I would like to suggest it for an future update.
  3. RoldanLT

    RoldanLT Well-Known Member

    Great addon (y)
  4. RoldanLT

    RoldanLT Well-Known Member

    Just replaced my Live update addon with this one (y)

    Edit: Sometimes doesn't work for me, because I have defer js addon installed?

    Same page, but only 1 tab works:
    Last edited: Aug 19, 2014
  5. Chris D

    Chris D XenForo Developer Staff Member

    Good work.

    Just to put this out there. I've seen the developer of this add-on and another person comment on the "efficiency" of the code. There's nothing inefficient about the code used in the Live Update add-on. The only thing that makes this more efficient is that it doesn't include the ability to change the favicon, therefore this script is a lot smaller because the library to do that is not included.

    If you want favicon changing, there's nothing wrong with Live Update. If you don't, this is just as well coded.
    Kerby, surfsup, yavuz and 1 other person like this.
  6. RoldanLT

    RoldanLT Well-Known Member

    With this addon enabled, Taigachat stop working with this error on console:
    Screenshot from 2014-08-19 21:08:58.png Screenshot from 2014-08-19 21:09:20.png
    Again maybe because I have defer js addon.
  7. Bloodcinder

    Bloodcinder Well-Known Member

    I'm not familiar with Showcase, but any add-on which places alerts into the normal Alerts menu will be compatible with this one. And from looking at the add-on page for Showcase, I think the answer is yes.

    I'll look into getting that compatible, although I can't guarantee I'll succeed. When you were using Live Update, did you have this same problem?

    Do me a favor. In debug mode, go into the template modification for my add-on (it's called Bloodcinder_AlertCount_Script) and where you see the URI for the JavaScript change it from js/bloodcinder/alertcount/min/update.js to js/bloodcinder/alertcount/update.js to use the full version of the script instead of the minified. See if that fixes it. If not, try disabling the Defer add-on and see if everything plays nicely together. If either of those solutions fixes it, then I can work with it. If not, I'm not sure why the error messages would be occurring, because my add-on doesn't do anything to "undefine" jQuery, and it seems that TaigaChat is unable to find jQuery.

    I agree, and I'm sorry if you thought my technical details were directed at you. I've used your add-on before, and other than the trivial fact that yours has a bigger library in it, yeah, there's nothing wrong with yours. However, I've seen a couple older, more outdated ones that I felt weren't as efficient, and that's what I was primarily referring to. The only problem I had with your add-on in the source code was outside of the JavaScript. Your controller for your route prefix returns a responseView of a not-existent view, meaning that if you navigate directly to the route prefix it gives an error. Mine returns a responseMessage with a globally cached phrase. I really have no idea if there's any practical difference there, but I felt it was better to ensure that the Ajax polls requested error-free pages.
    Chris D likes this.
  8. RoldanLT

    RoldanLT Well-Known Member

    No, everything works fine with Defer JS and Live Update addon.
  9. Bloodcinder

    Bloodcinder Well-Known Member

    What about with Defer JS disabled? Does my add-on still cause a problem with TaigaChat when you do that?
  10. RoldanLT

    RoldanLT Well-Known Member

    I just disabled Defer JS addon and it works fine now, so this is incompatible with Defer JS addon.
  11. Bloodcinder

    Bloodcinder Well-Known Member

    Okay. What I'll do later (today? depends on work) is install Defer JS on my own forum and try to get the add-on to be compatible with it. Then I'll attach an experimental update to this thread and let you try it out on yours and see if it also fixes the TaigaChat problem. If that works, I'll update the resource with the changes.

    I'm guessing it will only take a minor tweak. Bear with me, please.

    Oh, and if you would, please withhold any bad ratings/reviews until I can look at fixing this compatibility issue. I can't necessarily predict how things will interact with add-ons I don't have, but since you've brought it to my attention I'll try my best to get them compatible. And then if I can't you can give me a bad review. ;)
    LurkerLou and RoldanLT like this.
  12. RoldanLT

    RoldanLT Well-Known Member

    Sure no worries :D
    Since I become a member here, I didn't leave any negative review :D
  13. RoldanLT

    RoldanLT Well-Known Member

    By the way, after this no error any more on console regarding your addon but the alert count works sometimes, sometimes not.
    Sometimes alert count is display when page load almost finish but then disappear immediately after page load is done.
  14. Bloodcinder

    Bloodcinder Well-Known Member

    Odd. Are you using any other add-ons which interact with the Alerts system?
  15. RoldanLT

    RoldanLT Well-Known Member

    No, But I suspect it's related to ngx_pagespeed.
    I'm using it on my forum.
    But I disable defer js on ngx_pagespeed.

    @eva2000 could you please also try this addon ? :)
  16. RoldanLT

    RoldanLT Well-Known Member

    After the Defer JS and Taigachat Pro incompatibility, I will try again this addon.
  17. Bloodcinder

    Bloodcinder Well-Known Member

    Here's an experimental update for those that have been having problems. I won't update the resource page immediately with this version. I want to see if this version solves anybody's issues first before I do that.

    @RoldanLT , I've tested this with Defer JS and I don't have any problems with it. If you still encounter problems, it's not because of Defer JS. It might be because of another add-on or because of something with your server setup. Please let me know if you still encounter problems.

    @toodlez , this update might resolve your issues as well, so try it out.

    I reorganized the code a bit and changed when certain things are executed. It's a bit more elegant now and should automatically clear up some conflicts with certain other add-ons.

    (Attachment removed.)
    Last edited: Aug 21, 2014
  18. toodlez

    toodlez Active Member

    Still not working, sadly
  19. Bloodcinder

    Bloodcinder Well-Known Member

    @toodlez I looked over the list you sent me of your installed add-ons and I can't find anything that seems to be the culprit. Do you get the normal pop-up bubble alerts (by default red pop-up bubbles that show for the Inbox and Alerts on the nav bar)? Do you have any aggressive caching software running on your server?
  20. Bloodcinder

    Bloodcinder Well-Known Member

    Worked with @toodlez to get rid of some bugs.

    This experimental update should fix incompatibility with certain third-party templates and with the Defer JS add-on.

    It partially fixes incompatibility with TaigaChat. However, it's not possible for me to completely make it compatible because TaigaChat also tries to control the page title, even when its options are set so that it is not supposed to do that.

    Let's see if this solves some the issues for some people. If so, I'll officially update the resource.

    (Attachment removed.)
    Last edited: Aug 21, 2014

Share This Page