[CDB] Favicon Notifications

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

[CDB] Favicon Notifications

Post by kasimi » Tue Aug 23, 2016 2:43 pm

Extension Name: Favicon Notifications (requires at least phpBB 3.1.0)

Author: kasimi

Description: This extension adds a red badge on top on the favicon with the number of unread notifications by using the favico.js library. This is useful especially when the tab is pinned:

Image

If there are no unread notifications, no badge is displayed. It works with every favicon.
There is no configuration: you enable the extension and you're done.

Browser compatibility:
  • Chrome: working
  • Firefox: working
  • IE 11: not working
  • Edge: not tested
  • Safari: not tested
  • Opera: not tested
Note: This extension does not add a favicon to your style. It only works if you already have a favicon.

Download v1.0.0: https://github.com/kasimi/phpbb-ext-fav ... master.zip

Repository: https://github.com/kasimi/phpbb-ext-fav ... ifications

Installation:
  1. Copy the contents of the archive to /ext/kasimi/faviconnotifications.
    Make sure the file /ext/kasimi/faviconnotifications/composer.json is present.
  2. Navigate to the ACP » Customise » Manage extensions page.
  3. Click Enable next to Favicon Notifications in the Disabled Extensions section.
Changelog:
  • 2016-08-23 v1.0.0 released
Last edited by kasimi on Mon Sep 12, 2016 7:36 pm, edited 1 time in total.

User avatar
Rhino.Freak
Registered User
Posts: 275
Joined: Wed Apr 29, 2015 8:32 am
Contact:

Re: [BETA] Favicon Notifications

Post by Rhino.Freak » Tue Aug 23, 2016 3:13 pm

This is delightful :D
will definitely be adding this to my site!

thanks a lot! :D

chfs
Registered User
Posts: 231
Joined: Mon Feb 04, 2013 10:01 am

Re: [BETA] Favicon Notifications

Post by chfs » Tue Aug 23, 2016 9:20 pm

Thanks! 8-)

The perfect extension! :o
I'm sorry for my english. :?

User avatar
spaceace
Registered User
Posts: 1805
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [BETA] Favicon Notifications

Post by spaceace » Wed Aug 24, 2016 12:04 am

very nice... adding it to my site now :D

Peter77sx
Registered User
Posts: 3250
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] Favicon Notifications

Post by Peter77sx » Wed Aug 24, 2016 1:41 am

a reddit feel, nice.

User avatar
lopoto
Registered User
Posts: 94
Joined: Thu Feb 12, 2015 3:13 pm

Re: [BETA] Favicon Notifications

Post by lopoto » Wed Aug 24, 2016 2:36 pm

Yes nice ex. :D

User avatar
martin123456
I've Been Banned!
Posts: 726
Joined: Sat Mar 05, 2011 7:44 pm

Re: [BETA] Favicon Notifications

Post by martin123456 » Thu Aug 25, 2016 10:01 am

Heads up on testing on 3.2.RC1

Image

Code: Select all

<!-- IF S_CODE_UNTIDY and S_MESS_ON_INDEX Good If_Not_TIDY_Then_SUBMIT -->

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [BETA] Favicon Notifications

Post by kasimi » Thu Aug 25, 2016 10:55 am

Fixed in master.

User avatar
zardos
Registered User
Posts: 118
Joined: Mon Feb 29, 2016 12:23 pm
Location: England, uk

Re: [BETA] Favicon Notifications

Post by zardos » Thu Aug 25, 2016 12:04 pm

Very nice, thankyou

rrbailey89
Registered User
Posts: 248
Joined: Fri Oct 24, 2014 3:00 pm

Re: [BETA] Favicon Notifications

Post by rrbailey89 » Thu Aug 25, 2016 7:30 pm

Will this work out of the box with favicons located in the forum root directory?

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [BETA] Favicon Notifications

Post by kasimi » Thu Aug 25, 2016 8:20 pm

The JS library this extension is using expects to find a <link> tag inside your <head> section with the rel attribute set to icon. It doesn't matter where the icon is located on your server.

Example:

Code: Select all

<link rel="icon" href="./favicon.ico" />

voom
Registered User
Posts: 59
Joined: Tue Mar 22, 2016 1:31 am

Re: [BETA] Favicon Notifications

Post by voom » Mon Aug 29, 2016 4:59 pm

My favicon is an SVG and the rel is "shortcut icon" - would it be difficult to make this work anyway?

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [BETA] Favicon Notifications

Post by kasimi » Mon Aug 29, 2016 5:10 pm

As long as icon is one of the <link>'s rel values the library can find the element so that's not a problem. Whether it works with SVG I don't know and I can't find any information about it. Give it a try and let us know. :)

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [RC] Favicon Notifications

Post by kasimi » Sun Nov 06, 2016 9:47 pm

The extension was added to the CDB: Favicon Notifications

For further support please use the support section in the CDB: Favicon Notifications Support

Locked

Return to “Extensions in Development”

Who is online

Users browsing this forum: andreask, mrgoldy, vader674 and 32 guests