Favicon badge plugin

Post plugins and custom CSS snippets here
User avatar
ZeGuigui
BANNED_USERS
BANNED_USERS
Posts: 19
Joined: 15 Mar 2013, 17:30
Location: In the cloud!
Contact:

Favicon badge plugin

Postby ZeGuigui » 18 Mar 2013, 16:56

Hello

For those who like Apple badges here is a small plugin that adds a counter on Favicon.
As I did not find a hook to trigger when <title> is set, I use a set_interval and a regexp to find the number of unread entries. If there is a hook I could use please tell me!

Note: this plugin is merely a tie to Favicon.js lib. Please see http://ajaxify.com/run/favicon for more details!
Attachments
favicon_badge.zip
Unzip file in plugin folder add enable using user preferences
(2.74 KiB) Downloaded 1083 times

User avatar
HunterZ
Bear Rating Disaster
Bear Rating Disaster
Posts: 60
Joined: 21 Mar 2013, 03:30
Location: Seattle

Re: Favicon badge plugin

Postby HunterZ » 03 Apr 2013, 19:40

Wait, what does this do exactly?

What are badges, and what do they have to do with counters?

User avatar
ZeGuigui
BANNED_USERS
BANNED_USERS
Posts: 19
Joined: 15 Mar 2013, 17:30
Location: In the cloud!
Contact:

Re: Favicon badge plugin

Postby ZeGuigui » 03 Apr 2013, 20:00

Well like I said this is like apple badges on iOS: a number of "notifications" in a red buble.

This plugin dynamically modify favicon to add the number of unread entries. This was a little bit more useful when the count was after the tab title in fact. Also the lib seems to have problems with transparent favicons which is now the case... I have little time to investigate as I am only providing a wrapper to an existing lib!

User avatar
HunterZ
Bear Rating Disaster
Bear Rating Disaster
Posts: 60
Joined: 21 Mar 2013, 03:30
Location: Seattle

Re: Favicon badge plugin

Postby HunterZ » 03 Apr 2013, 21:13

I was hoping that's what it was. Maybe the name should be "unread count on favicon plugin".

It's potentially useful for use with the "pin as app tab" feature in Firefox, which hides the title text but still shows the favicon.

User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: Favicon badge plugin

Postby Monfreid » 04 Apr 2013, 18:19

Hello,
I have upgraded from 1.7.6 to 1.7.8 today and the favicon plugin is not working anymore. Am I the only one ?
Thank you

User avatar
HunterZ
Bear Rating Disaster
Bear Rating Disaster
Posts: 60
Joined: 21 Mar 2013, 03:30
Location: Seattle

Re: Favicon badge plugin

Postby HunterZ » 04 Apr 2013, 20:49

Monfreid wrote:Hello,
I have upgraded from 1.7.6 to 1.7.8 today and the favicon plugin is not working anymore. Am I the only one ?
Thank you

I had it and another non-bundled-by-default plugin working in 1.7.6, and they seem to have disappeared entirely from the plugins list after the updater plugin installed 1.7.7.

The updater plugin seems to flatten and reinstall tt-rss, preserving only your configuration, favicons and image cache files. Plugins and any other custom stuff installed under your tt-rss directory don't seem to be migrated.

I think the updater plugin is still in work, so maybe this will get sorted out eventually.

User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: Favicon badge plugin

Postby Monfreid » 05 Apr 2013, 15:48

Today most of the favicons are back so maybe it takes time ...

mneimeyer
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 01 Apr 2013, 07:14

Re: Favicon badge plugin

Postby mneimeyer » 07 Apr 2013, 04:16

HunterZ wrote:
Monfreid wrote:Hello,
I have upgraded from 1.7.6 to 1.7.8 today and the favicon plugin is not working anymore. Am I the only one ?
Thank you

I had it and another non-bundled-by-default plugin working in 1.7.6, and they seem to have disappeared entirely from the plugins list after the updater plugin installed 1.7.7.

The updater plugin seems to flatten and reinstall tt-rss, preserving only your configuration, favicons and image cache files. Plugins and any other custom stuff installed under your tt-rss directory don't seem to be migrated.

I think the updater plugin is still in work, so maybe this will get sorted out eventually.


As I recently was informed over in viewtopic.php?f=10&t=1705 the automatic updater, if you are using that, actually renames your installation folder in case of incompatibilities with older code (especially plugins). Look for the renamed folder at the same level as your tt-rss installation and you will need to copy from the plugins folder there to your current plugins folder.

For example, if your installation folder is /var/www/tt-rss you will have a folder named something like /var/www/tt-rss-randomkey/ and you would look in the plugins folder there for your missing plugins.

Matt

User avatar
HunterZ
Bear Rating Disaster
Bear Rating Disaster
Posts: 60
Joined: 21 Mar 2013, 03:30
Location: Seattle

Re: Favicon badge plugin

Postby HunterZ » 07 Apr 2013, 07:25

Right, but my point was that the usefulness of an "automatic" updater is limited if it's still necessary to SSH in to fix/reinstall/migrate plugins.

thamond
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 01 Apr 2013, 06:23

Re: Favicon badge plugin

Postby thamond » 15 Apr 2013, 18:55

Monfreid wrote:Today most of the favicons are back so maybe it takes time ...


If you move the contents of feed-icons over after upgrading, your favicons will be present immediately.

rosslib
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 23 May 2013, 17:44

Re: Favicon badge plugin

Postby rosslib » 23 May 2013, 17:46

Hi,

I have just installed 1.7.9.
I receive the error:
E_USER_WARNING (512) classes/pluginhost.php:140 Plugin favicon_badge is not compatible with current API version (need: 2, got: 1)

Is there an update to the code?
Last edited by rosslib on 23 May 2013, 18:18, edited 1 time in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Favicon badge plugin

Postby fox » 23 May 2013, 18:06

I have a thought: reading is hard.

Kresnik
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 01 Jul 2013, 12:27

Re: Favicon badge plugin

Postby Kresnik » 01 Jul 2013, 12:48

There's something that's not working properly with this plugin, which is resetting the unread count when I press the "Mark as Read" button.

For example:
Currently I got a total of 10 unread feeds on the list.
Then I press the "Mark as Read" button as I decide that nothing is worth reading.
Unfortunately, the favicon counter never drops back to 0 or gone to mark that there's no more unread feeds.

I also tried what would happen if I read all 10 one-by-one.
The counter steadily drops, but stops when it reaches 1 even when I already read all the feeds.

Also if there are more unread feeds, the favicon will only reflect changes of the digits where the changes happen.

For example:
Current favicon number is 100.
Then another 15 feeds came up.
Now the favicon number is at 115.


It would be nice if you or someone could fix this.

warakurna
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 30 Jan 2014, 03:13

Re: Favicon badge plugin

Postby warakurna » 30 Jan 2014, 13:00

Hej!

I started using the plugin yesterday but unfortunately I'm not able to activate it in thepreferences, where it does not show show up. Some days ago, I did a fresh install of tt-rss v1.11, so it should not be linked to an upgrading issue. Installation of the plugin was done in the right way.

Do I miss something?

RaMeR
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 11 Aug 2014, 09:52

Re: Favicon badge plugin

Postby RaMeR » 11 Aug 2014, 10:18

Hi
A slightly modified version of the plug-in 1.13, the basis taken Tinycon: http://blog.tommoor.com/tinycon/ .
Now badge updated immediately after reading the post.
My knowledge of php, JS extremely small, made ​​for themselves. Knowledgeable people think will bring to mind.


Please excuse for my bad English.
Attachments
favicon_badge.zip
(3.35 KiB) Downloaded 430 times


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 1 guest