Grow your CSS skills. Land your dream job.

Icon on urls in Tweetify

  • # August 21, 2012 at 1:29 pm

    I’m using Tweetify on automatic links on my website’s wall/stream. I would like to insert favicons on the links though. Does anyone know how to first of all get the favicon of a url (the url can be something like “http://domain.com/even/directories/after.html”), then use a dummy favicon like Google Chrome’s default favicon if there isn’t anyone on the domain, if not use their favicon before the URL like this:

    Faviconhttp://domain.com/even/directories/after.html

    By the way, this is how my tweetify looks like:

    Hey check this link out: http://google.com/webfonts

    # August 22, 2012 at 10:41 am

    I’m sure this would be possible, but it would help if you could set up a demo for us to build on or at least the HTML. Also, is that the entire tweetify function?

    # August 22, 2012 at 10:45 am

    http://jsfiddle.net/Schart/BEpk3/
    Yes, just with jQuery of course.

    # August 22, 2012 at 11:14 am

    Sorry, I meant that the HTML of the actual tweets would help :P

    Edit: Oh wait, that top one is an example, isn’t it?… where did you want the favicon? Well, I should say “more” examples would help :P LOL

    # August 22, 2012 at 11:15 am

    It’s not used for tweets, it’s for my own wall system. I just want to be able to get the icon off the url using scripting :P

    # August 22, 2012 at 11:28 am

    So, did you want the favicon for the hash or the link?… But for the hash, I would need the site url.

    # August 23, 2012 at 2:16 am

    Just the link.

    # August 23, 2012 at 2:17 am

    Kind of like

     http://url.com/something/something.html

    Normally it would be like:

    http://url.com/something/something.html
    # August 23, 2012 at 2:18 am

    Wow the code thing is really bugged lately :o

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".