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('<script type="text/javascript" src="', '', $mybloglog_widget_code);
$geturl = str_replace('"></script>','', $geturl);
$result = file_get_contents($geturl);
$result = str_replace('mbl_pub_str += "', '', $result);
$result = str_replace('";', '', $result);
$result = str_replace('\"', '"', $result);
$result = str_replace("<style type='text/css'>", "</script>\n<style type='text/css'>", $result);
$result = str_replace('document.write(mbl_pub_str);', '', $result);
$result = '<script>' . $result;
echo "$result\n";
echo "<a href=http://www.seofox.com target=new style=\"font-size:11px;\">SeoFox Enhanced</a>\n";

?>

SeoFox Blog

MyBlogLog, Widget, PHP, JavaScript

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« Google FLL Championship TournamentGoogle Applies for Patent on Mobile Phone Ads »
Feed Icon

Subscribe via RSS or email: