January 27, 2007
3:40 pm

MyBlogLog is a rage among bloggers these days, and everybody is using MyBlogLog widget on their blog to display last [x] visitors. The MyBlogLog uses javascript to produce nicely formatted list on your blog. But the search engines do not read javascript, here is a simple little PHP script you can copy into a page.

The only caveat is, it currently works for the widgets that display the large icons with link text names. WilliamC on seofox is working on adding functionality for the other style.

[php]

// put your generated widget code from mybloglog here
$mybloglog_widget_code ="" '';

// do not touch below here please
$geturl ="" str_replace('‘,”, $geturl);
$result = file_get_contents($geturl);
$result = str_replace(’mbl_pub_str += “‘, ”, $result);
$result = str_replace(’”;’, ”, $result);
$result = str_replace(’\”‘, ‘”‘, $result);
$result = str_replace(”