• Preface

This is my first “official” Wordpress plugin. I was inspired from John Turners plugin Blogroll Links Favicons.  The base idea is beautyful, but not all browsers (f.e. Internet Explorer itself) are able to display the native ICO image format in an HTML document. Additionally some -non Microsoft- operating systems don’t support the ICO -Format, too. The core problem was to find a soluton to convert the ICO format in another image format which works on all platforms/browser.  On an online search I’ve found the ICO->PNG converter PHP class from Diogo Resendes ( Ico class ). This is perfect to solve this problem. The rest of the work is implementing into Wordpress.

  • Description

The plugin converts the favicon.ico from the blogroll links from ICO to PNG format and save the converted image in a local cache directory.  All conversion processes works just on the admin-page, visitors don’t have to spend time to wait for favicons from remote websites. If a blogroll entry was added or modified this single Link will be processed.

  • Requirements

    PHP: GD module must be enabled.  That’s all.
    (Nowadays it is mostly standard).

  • Features

    • Display favicon.ico from remote websites in Internet Explorer, too.
    • convert favicons from ICO into PNG format and cache this on the local server for max. speed
    • process workload occurs just users from the backend (administrator)
    • Adds class=”faviroll” to have the possibility for further CSS optimation
  • Settings

    • Default Favicon URL
      You can configure a default favicon, if the remote website contains no favicon or the declared favicon isn’t valid.
    • Favions revisit after XXX days
      The life goes on in the internet, too. Here you can configure the interval (in days) the plugin should renew the cached icons. This is triggered just on the admin-page. Normal visitors are not affected. So if you not login to your admin-page, the icons will NOT be renewed.
    • Use transparent background
      You can decide if the PNG icons should have a transparent background.
    • Renew cached FavIcons now
      If this button is checked, all blogroll icons will be renewed immediately.
  • Installation

    1.) Upload the folder faviroll to the /wp-content/plugins/ directory
    2.) Activate the plugin through the ‘Plugins’ menu in WordPress
    3.) Click ‘Submit’ button to initialize the plugin settings .
    4.) The locally favicon cache will be created
    5.) Thats all


(2 Stimmen, durchschnittlich: 4.50 von 5)

3 Trackbacks/Pingbacks

18 Kommentare

dlv schrieb am 19. Juli 2009@ 20:29

really nice, an improvement to the boring blogroll..
thanks for share !!

adeux

Shabu | WordPress Daddy schrieb am 20. Juli 2009@ 5:52

Nice idea, added this plugin in our database: http://www.wordpressdaddy.com

Myd schrieb am 21. Juli 2009@ 13:02

Really like this plugin. Just have one (big) problem: when activated, all my links disappear (neither the favicon nor the text display. Otherwise, they display as a ul list ). Any idea why? (I’m a newbie in php and can’t find the conflict…)
see (– website still in progress — ) http://www.marches-tropicaux.com/blog/index.php/afrique-medias/

Juanita schrieb am 23. Juli 2009@ 4:35

Wordpress changed their security in 2.8.1 and the favicon for links plugin does not work. You get error You do not have sufficient permissions to access this page.

Wordpress ihre Sicherheit in 2.8.1 und die Favicon für Links-Plugin funktioniert nicht. Sie erhalten Fehler, den Sie nicht über ausreichende Berechtigungen für den Zugriff auf diese Seite verwiesen wurde.

http://westi.wordpress.com/2009/07/15/making-your-broken-plugin-work-again-with-wordpress-2-8-1/

http://translate.google.com

grobator schrieb am 23. Juli 2009@ 7:17

Ooops, I’ll repair this in the next release.
Thanks for this information.

Juanita schrieb am 29. Juli 2009@ 3:07

You do not have sufficient permissions to access this page.
error in 2.8.2

After 2.8.1 WP changes how Role and security workd.

I have the latest upgrade of your plugin

Matthias Sch. schrieb am 16. August 2009@ 13:21

hi,

i found 2 bugs:

1. favicon from http://www.flyingpig.com/ is converted to a red border (instead of the blue one in the original icon)
2. i cant set the height of links in your css file so icons are cutted if height < 16px

and one feature request:
add padding-settings to css; it saves bandwith and is easier to customize :-)

greetings

grobator schrieb am 16. August 2009@ 16:03

Hallo Matthias,
Danke fürs Feedback.
der Effekt mit der Farbveränderung ist mir sehr wohl bekannt, ich habe auch in auf der Plugin-Seite unter “Known issues” darauf hingewiesen.

* Quality loss (or wrong color transformation) at the conversion from ICO->PNG, but some browsers (f.e. Safari) has a render problem with some native ICO images, too. I’ll keep it in sight.

Leider habe ich darauf derzeit keinen Einfluss.
Daher müssen wir wohl derzeit mit diesem Effekt leben.
Aber dadurch wird man durch vollständige Browserunterstützung und maximale Performance belohnt.

Um die anderen Dinge werde ich mich mal kümmern.
Gruß

Matthias Sch. schrieb am 16. August 2009@ 23:09

okay, das hab ich dann wohl überlesen *g*
danke dir, ansonsten ist das plugin super!
lg

Matthias Sch. schrieb am 16. August 2009@ 23:35

PS: sonst zb per google converten lassen? http://www.google.com/s2/favicons?domain=www.reddit.com

grobator schrieb am 17. August 2009@ 6:53

Wow, Danke das ist ja ein Super-Tipp.
Genau das Ding habe ich gesucht.
Das baue ich sofort ein.
Gruß

Daniel Stutzbach schrieb am 21. September 2009@ 17:45

I installed the plugin, went into the settings, and started the cache-building process. I get the following output, but nothing more, even after several minutes. It never seems to complete caching the first icon. In the faviroll/cache/ directory, I see one file with zero bytes in it. Any idea what might be going wrong?

FAVIROLL is (re)building the favicons from your blogroll links.
This may be take some time… stay tuned, please!

Cache directory = /home/agthorr/www.barsoom.org/wordpress/wp-content/plugins/faviroll/cache

http://www.freechess.org/….

Dixie Vogel schrieb am 2. Januar 2010@ 20:28

Love this plugin – simple, easy to use, and attractive addition to the site. Any plans to make this WPMU compatabile? On MU, if one sites updates their favicons, the other sites lose theirs…

grobator schrieb am 3. Januar 2010@ 8:28

Hi Dixie,
thanks for feedback.
You are just in time… I plan to use MU also for my own blogs.
In this work I’ll tune FaviRoll for MU also.
stay tuned….

Vicki's Husband schrieb am 5. Januar 2010@ 6:34

Great little plug-in. Works well! Is there ANY chance of solving the incorrect color issue? This is the ONLY problem with an otherwise great product! Many thanks. Russ

grobator schrieb am 5. Januar 2010@ 7:26

I look around in the web may times. But until now I don’t find a powerful ICO to PNG converter without the color bug. Online converters (like google favicons) doesn’t work correct, too.
Give me hints where are ICO->PNG converters are available.
I will analyse the possibilities to use it for FAVIROLL.
regards

Dixie Vogel schrieb am 8. Januar 2010@ 1:03

Thank you so much for the MU compatibility. That totally made my day! :-)

grobator schrieb am 8. Januar 2010@ 7:27

And you pushed me to take a look on WPMU.
Now I have MU knowhow in my portfolio, too.

Kommentar abgeben