Advertisement:
A2Hosting

Author Topic: Unread PM Favicon  (Read 2786 times)

Offline SleePy

  • Site Team
  • SMF Master
  • *
  • Posts: 28,868
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Unread PM Favicon
« on: April 07, 2012, 04:51:40 PM »
Link to Mod

SMF 2.0+ Modification.  I will not back support this mod to older versions.

This modification adds a unread PM counter to the favicon.  In addition it continues to check for PMs at a specified interval.  Setting this variable to lower can result in server degration/performance issues.  Use with caution.  The default timeout is 1 minute (60 seconds).

Prior to asking for support, check out the wiki: https://github.com/jdarwood007/smf-unreadPM_count/wiki

Credits for this ability go to Tom Moor for creating Tinycon: https://github.com/tommoor/tinycon

Browsers that support this:
Chrome 15+
Firefox 9+
Opera 11+

The following browsers will fall back to changing the title due to lack of support for this:
Internet Explorer 9
Safari 5

The modification is open source, released under the BSD 3 Clause license!  Check out the source code: https://github.com/jdarwood007/smf-unreadPM_count
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,441
  • Gender: Male
    • @dragomano on Twitter
    • Review & translation for SMF mods
Re: Unread PM Favicon
« Reply #1 on: April 08, 2012, 02:22:43 AM »
You forgot to define global $txt in uPMs_hook_general_mod_settings function.

Offline SleePy

  • Site Team
  • SMF Master
  • *
  • Posts: 28,868
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Unread PM Favicon
« Reply #2 on: April 08, 2012, 11:45:33 PM »
So I did.  Fixed that
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,607
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Unread PM Favicon
« Reply #3 on: April 09, 2012, 07:03:25 AM »
Very cool! ;D

Offline CheekyCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,921
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: Unread PM Favicon
« Reply #4 on: April 09, 2012, 11:39:59 AM »
I love this!  It's working well and a great idea

Thank you  :) :)

Offline CheekyCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,921
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: Unread PM Favicon
« Reply #5 on: April 09, 2012, 01:31:55 PM »
Ok, itsy bitsy problem and I'm not sure whether I'm better posting it here or on the other thread.  I'm guessing it's a result of this mod's regular check, but because I also made this modification it has rendered my "Who's Online" pretty much useless  :P  I have extended the check time for the Unread PM Favicon mod to 360 seconds, but still my Who's Online looks like in the attached image most of the time.  I do absolutely love this mod, so it would be great to fix this.

Do you know of any way of preventing this mod from registering in the Who's Online?  Or should I ask over there?  Thanks :)


« Last Edit: April 09, 2012, 04:43:31 PM by Sabrinova »

Offline John.

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
Re: Unread PM Favicon
« Reply #6 on: April 09, 2012, 05:29:17 PM »
And I have this problem..

Offline CheekyCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,921
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: Unread PM Favicon
« Reply #7 on: April 11, 2012, 03:51:23 PM »
Any ideas on this yet?

I uninstalled and installed again and it was the same, so I've deactivated it for the time being as I need my Who's Online to at least tell me who's really online.  With this mod keep refreshing members' activity, it always looks as though everybody is online and no members ever time out due to inactivity.

Offline John.

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
Re: Unread PM Favicon
« Reply #8 on: April 11, 2012, 06:15:50 PM »
SleePy - When will you fix it?

Offline SleePy

  • Site Team
  • SMF Master
  • *
  • Posts: 28,868
  • Gender: Male
  • Thats his happy face.
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Unread PM Favicon
« Reply #9 on: April 14, 2012, 03:34:57 PM »
Yes I fixed it, I just needed time to get around to it.
In the future, you are welcome to open a ticket on its bug tracker on github: https://github.com/jdarwood007/smf-unreadPM_count/issues
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline CheekyCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,921
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: Unread PM Favicon
« Reply #10 on: April 14, 2012, 04:06:35 PM »
Fantastic!  Thank you