WordPress.org

Ready to get started?Download WordPress

Forums

Favatar-Revised Plugin Released (28 posts)

  1. chuyskywalker
    Member
    Posted 9 years ago #

    Based on work by Joen and Paul, I have put together a Favicon Plugin.

    Why not use Joen's, you might ask? It kills your page load times - a failing he acknoledged. This plugin avoids that.

    There is a trade off, this plugin will increase the time it takes for a user to post a comment, but we're talking, 2-3 seconds. Perhaps a version or two down the line I can eliminate that slow down as well.

    Anyway, here's what it does:

    Place a customer "favatar" next to each users comment. Favatars are based on a users favicon. (Read more about this in Joen's post.)

    When a user posts a comment, the script kicks in. If they have entered a URL, the script will attempt to download the HTML page from that url. With that HTML page, it will extract the "src" attribute from the "link" element. (If no link element exists, then the favicon URL is guessed)

    At this point, the plugin will actually ping the favicon url to see if we got it right, then upon success store that URL in the 'comments' table.

    Useage is very simple: just add <?php comment_favicon(); ?> inside your comment loop just link any other comment template function. All set!

    Download Favicon-Revised

    Let me know if you use it.

    Also, I hope to create a "catch up" function that will allow you to scan all previous comments and run the script on them to generate favatars for them. Expect that later.

  2. dss
    Member
    Posted 9 years ago #

    This is a killer idea.

    might i ask you a favor? please post this in .zip format for those on other platforms?

    : )

  3. Just a thought, but you might want to change the name to "Favatar-Revised", as people may confuse its function with favicons (the custom icons for URLs). In fact, the only reason I came to this thread was to say, "Why do you need a plugin for that? Why not just upload favicon.ico to your root directory like everyone else?" So, a name change would probably good. Other than that, nice plugin.

  4. chuyskywalker
    Member
    Posted 9 years ago #

    @DSS: MacOSX and Linux can open RAR files natively, and on a PC you can use WinRAR.

    But since you asked.

    @macmanx: Ah, good point. "Revised" :D

  5. chuyskywalker
    Member
    Posted 9 years ago #

    Version 1.0 Out!

    Big update really. Adds support for trackbacks and pingbacks. Also includes "favatise.php" which will process every comment on your blog attempting to assign favicons to comments/tracks/pings. (this way you can install it and it would just be "new" comments with favatars.)

  6. vsa
    Member
    Posted 9 years ago #

    very nice! it should give some rest to the gravatar.com server!
    Lets see if it is fast enough to compete with gravatar.

  7. dss
    Member
    Posted 9 years ago #

    excellent! thank you!!!

  8. Joen Asmussen
    Member
    Posted 9 years ago #

    This just a note to point out that I am using this plugin, and it works perfectly. No conflicts, no problems, and no increased post times that I have noticed at all.

    I have also run "favatise.php", it was dead easy: just place it next to my index.php, run it through the browser, and grind my teeth for a ½ hour while it processed all my comments. No problems at all here.

    Use favatars as an alternative to gravatars. Favatars rely not on one server alone, but is sort of "peer" based and relies on the servers of each commenter individually. It is not superior to gravatars, but when the gravatar servers may fail, favatars won't.

  9. somefool
    Member
    Posted 9 years ago #

    yup, plugin works really well.
    I now have BOTH favatars and gravatars now, so Ill have to decide the best way to use them.

  10. VenomousKate
    Member
    Posted 9 years ago #

    Hm. I followed the directions and added the <?php comment_favicon(); ?> to my comment loop, but they're not showing up. I even ran the favitise script (which, with over 14,000 comments took hours), and they're not showing up, either.

    Whah!

  11. Joen Asmussen
    Member
    Posted 9 years ago #

    VenomousKate,

    There's a newly discovered conflict with Subscribe To Comments 1.4.2 (and possibly below). If you're using that plugin, try upgrading to 1.4.4 -- that might fix it.

  12. VenomousKate
    Member
    Posted 9 years ago #

    I'm not using Subscribe (although I was just sitting here and thinking about installing it this morning).

  13. Joen Asmussen
    Member
    Posted 9 years ago #

    Try disabling all plugins BUT the favatar plugin, (and make sure you haven't modified wp-comments-post.php), and then try leaving a comment. If it still doesn't work, then I have no idea why it won't work. If it does, on the other hand, work, then one by one turn the plugins back on and see which one is the culprit.

  14. VenomousKate
    Member
    Posted 9 years ago #

    I'll give that a try over the weekend. Thanks for the suggestion!

  15. Chris
    Member
    Posted 9 years ago #

    I can't get my own favatar to show on my site.

  16. Joen Asmussen
    Member
    Posted 9 years ago #

    Chris,

    Neither in IE or Firefox? IE is known to not read favicons very well, if they're just a tad complex. Try viewing it in firefox, if that works, then you need to redo your favicon.

  17. Chris
    Member
    Posted 9 years ago #

    It works in the browser. And when bookmarked in IE. It's not working as a favatar. When I comment on my own site, my favicon isn't found. I ran phpmyadmin and edited all my old comments and added the favicon url but any new comments it's still not added. You can test it out at http://aphotolog.com

  18. Joen Asmussen
    Member
    Posted 9 years ago #

    Chris,

    Try disabling all plugins but the favatar plugin. If the favatars work after that, then it's a conflict with another plugin.

  19. Chris
    Member
    Posted 9 years ago #

    Before I posted that it wasn't working, I did that. It works on one WP install and not the other. The set ups are the same. They are even on the same server.

  20. Nicki Faulk
    Member
    Posted 9 years ago #

    Hi!

    I'm not sure if this has been asked or not ... but would it be possible to have the next version ignore any comments in the database marked as spam?

    Thanks! :)

  21. evelyne
    Member
    Posted 9 years ago #

    would it be an idea to use this as well with the links/blogroll part of wordpress?

  22. Dalby
    Member
    Posted 9 years ago #

    Has anyone else found that this plugin has stopped working after upgrading to WP 1.5.1 ?

  23. hisyam
    Member
    Posted 9 years ago #

    it's working just fine :)

  24. Dalby
    Member
    Posted 9 years ago #

    Thanks for your reply.

    It's stopped working on my two sites after the upgrade. Guess it's back to more investigation.

  25. lokjah
    Member
    Posted 9 years ago #

    yeah im still using 1.5 and the admin page doesnt work for me, just comes up blank in the content area and only shows the wordpress logo/ff logo etc...

    so I have no way of running the favatise script.. (that I can figure out, I see in the code I'm supposed to be seeing a form there)

  26. bwana
    Member
    Posted 9 years ago #

    it doesn't work for me now after upgrade and it worked before. odd. i also do not have the admin->option menu.

  27. GURT
    Member
    Posted 8 years ago #

    i have no admin>Option menu either

  28. myfavatar
    Member
    Posted 8 years ago #

    Check this site: http://www.myfavatar.com/

Topic Closed

This topic has been closed to new replies.

About this Topic