by WilliamC
Okay not really, but MyBlogLog uses javascript to produce nicely formatted "last [x] visitors" on your blog.
But the search engines do not read javascript…
Here is a simple little php script you can copy into a page that can display php.
This currently only works for the widgets that display the large icons with link text names. I am working on adding functionality for the other style and will post it here when it is done.
Simply put the widget code mybloglog gives you in the variable I provide and you can now pass some link love to your visitors profile pages as well as your own.
An example is live at http://www.seofox.com/widget.php
| Code: |
| <?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";
?> |
"Making MyBlogLog more SEO Friendly"
Technorati Tags:
blog,
design tools,
link baiting,
Linking Thoughts,
Links,
marketing,
mybloglog,
Programming Tools,
ranting & raving,
Ranting & Raving,
Search Engine Optimization,
Search Optimization,
seo,
Website Marketing,
widgetsShare This
EMail This Post | Print This Post

Loading ...
This entry was posted
on Tuesday, January 23rd, 2007 at 11:01 pm and is filed under Uncategorized, Linking Thoughts, Ranting & Raving.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
January 27th, 2007 at 1:08 am
Nicely done.. Thanks for the script enhancement.. And I agree, widgets suck
January 27th, 2007 at 8:01 pm
[…] SeoFox blog […]