SEO Fox Home Company Info Our Services Our Pricing Contact Us Client Login
Get Help Fast, call the SEO Guru's today!

23
Jan
2007

MyBlogLog Widgets suck!!

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: , , , , , , , , , , , , , ,
Digg!
3 Votes | Average: 3.67 out of 53 Votes | Average: 3.67 out of 53 Votes | Average: 3.67 out of 53 Votes | Average: 3.67 out of 53 Votes | Average: 3.67 out of 5 (3 votes, average: 3.67 out of 5)
Loading ... Loading ...


2 Responses to “MyBlogLog Widgets suck!!”

  1. Feydakin Says:

    Nicely done.. Thanks for the script enhancement.. And I agree, widgets suck :)

  2. PHP Based MyBlogLog Widgets » D’ Technology Weblog — Technology, Blogging, Gadgets, Fashion, Life Style. Says:

    […] SeoFox blog […]

Leave a Reply

You must be logged in to post a comment.


Blog Options
  • Register
  • Login
    Monthly Archives
  • April 2008 (1)
  • January 2008 (1)
  • July 2007 (1)
  • May 2007 (3)
  • April 2007 (4)
  • March 2007 (2)
  • February 2007 (4)
  • January 2007 (9)
  • December 2006 (14)
  • November 2006 (3)
  • October 2006 (5)
  • September 2006 (3)


  • Providing expert seo services and consultation as well as expert ppc management services
    and consultation to businesses needing that competitive edge in todays market.

    Copyright © 2005-2006 SEO Fox. All rights reserved.
    Close
    E-mail It