• Feed

  • « | Main | »

    Clicky Widget List update

    By maurizio | August 13, 2007

    I’ve updated my Clicky Top10 Widget.
    As you may have noted, sometimes you see urls instead of proper titles. Unfortunately this is a bug in Clicky.
    To make the list appears good, I’ve decided to simply cut those urls.
    $testT = str_replace(" ","",$ititle);
    if (strlen($testT)==strlen($ititle) && strlen($ititle)>25){
    //single word
    $ititle = substr($ititle,0,25);
    }

    The code is simple. I copy the title on a temporary string and then remove all the spaces from it. If the length of this new string is equal to the original one, it means it’s a single word without spaces (an url), then I just get the first 25 characters.

    You can download the code from here.

    If you don’t know what Clicky is, head over here and register for free.

    Topics: Programming | No Comments »

    Read other related posts:

  • Clicky API is out of beta
  • Clicky update
  • Clicky and Performancing widgets
  • Comments

    Subscribe without commenting