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

Gmail like Alert count in Browser tabs for XF 1.1 [Deleted]

Discussion in 'Add-on Releases' started by Rigel Kentaurus, Feb 17, 2012.

  1. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    DRE likes this.
  2. Pras

    Pras Member

    does it work in every browser ?
     
  3. ragtek

    ragtek Guest

    Does it autorefresh or only refreshes like the default xf alert only when requests where made?
     
  4. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Edit: YES! it refreshes every minute
     
    1 person likes this.
  5. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Actually, I am thinking in enhancements already .. I want to make it auto-refresh (or at least piggyback on the AJAX unread count calls from XenForo itself), a poll every one minute or two should not be that bad. And chrome has a new navigator active event that I could probably use too, to avoid making calls when the browser application itself is on the background.

    If people start using it I might get to do all of that. If not, well, it's good as it is.

    The implementation is really cool, though, it fetches the favicon, creates a canvas, manipulates the image to add the unread count, updates the favicon ..
     
  6. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I tested in safari, firefox and chrome, though. No idea of what will happen with IE. It would probably work with the newest versions and nothing will happen with the others.
     
  7. ragtek

    ragtek Guest

    Divvens likes this.
  8. Wiscansan

    Wiscansan Member

    I very much like this but I have a suggestion. :)

    What about adding the option to add the number to the page title? For example, if you have 3 unread alerts the page title would something like "(3) PAGE TITLE" and would auto-refresh and would automagically disappear when the alerts were read. That way you can see how many unread alerts you have on the site as they come in from another tab.
     
    Fuhrmann, fitu and (deleted member) like this.
  9. tmb

    tmb Active Member

    Yes page title would be much better as a visual reminder and to mimic facebook and gmail.
     
  10. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Rigel Kentaurus updated Gmail like Alert count in Browser tabs with a new update entry:

    Auto-refresh, and window title

    Read the rest of this update entry...
     
    Trekkan likes this.
  11. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Done
    • Page number
     
    Wiscansan likes this.
  12. DRE

    DRE Well-Known Member

    Can you add an option that makes it only show on the window tile? It makes my favicon look ugly with the black number over it.
     
  13. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

  14. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Sure.
    I made it configurable, so you can choose to show it in the thread title, favicon (both, of course). And I also dropped-in a setting for the refresh rate.

    I put the updated version on http://xfaddons.com/ , you can download it from there. You should already have access to the private forum.

    For the people that bought this, PM me in xfaddons with the order number so I can give you access to the private forum.
     
    DRE likes this.
  15. Garamond

    Garamond Well-Known Member

    It's showing "(0)" when I have no unread messages, which is unnecessary. It should be clean when there are no unread messages, and I'm also missing an option to make it show on the right side of the window title.
     
    sinful likes this.
  16. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Gmail shows "0", since this was modeled after that, I kept that beahavior

    Screen Shot 2012-02-18 at 3.13.12 PM.png
     
  17. DRE

    DRE Well-Known Member

    Thank you very much sir! 5 stars. Where can I change the options so that I can only use it for window title?
     
  18. Sheldon

    Sheldon Well-Known Member

    It's in the options.... cannot miss it.

    [​IMG]
     
    DRE likes this.
  19. DRE

    DRE Well-Known Member

    Oh yeah I had the mod disabled no wonder. lol thanks.
     
  20. tmb

    tmb Active Member

    What browser is that? I've never seen anything like that on Chrome, IE, or FF for Windows. Although now I do usually pin Gmail as an app tab so it just glows when something new comes in.
     

Share This Page