« Sites Research stats: Blogger wins against Wordpress | Main | Listen to someone who succeded »
Clicky Widget List update
By maurizio | August 13, 2007
If you are new here, you may want to subscribe to my RSS feed. Feel free to leave comments and questions too.Thanks for visiting!
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 |
Read other related posts:

