Most Active Blogs plug in

October 3, 2008

Recently I developed a wordpress Mu called “Most Active Blogs”, this plugin is used as a widget, will appear in your dynamic side bars and enables you to show the most active blogs on your site, includes a link to the blog and the number of Blogs Posts for each blog.

Copy the code below and save it has most ActiveBlogs.php

To install it drop it in your wp mu plugins if yuo want to make this plugin available to your site or drop it in the plugins folder and activate it thru your plugins option on the backend.

If you have any question just send me an email.

Here is the link to download:

http://wpmudev.org/project/most-active-blogs

NOTE:

If your install of wordpress MU is working with sub-directories, change line 90 by this one:

echo ‘<li><a href=”http://’.$blog['domain']

.$blog['path'].’”>’.$blogname.’&nbsp;-&nbsp;’.$blog['postcount'].’
posts</a></li>’;
This fix is kindly provided by Stephen Collins

14 Responses to “Most Active Blogs plug in”

  1. Gerard Says:

    I activate the plugin and the widget shows up but when I add it to the sidebare it just does nothing. Waht do I need to do if I use it in my mu-plugins??? is there a code to call the function?

  2. be4dev Says:

    You don’t need to call or edit anything, it must appear in your side bar.


  3. The links to the blogs in the widget are incomplete. I have my blogs in subdirectories as opposed to subdomains. I’m guessing line 90 is the culprit, but I’m no PHP coder.

    Can I impose on you for a little help?

    Thanks.

  4. be4dev Says:

    Thanks to Stephen Collins who provided the fix which makes Most Active Blogs plugin compatible with the subdirectories install.

    Change the following lined:

    echo ‘’. $blogname . ‘ ['.$blog['postcount'].’ posts]’;

    By:

    echo ‘‘.$blogname.’ - ’.$blog['postcount'].’
    posts
    ‘;

    Thanks Stephen!

  5. Jeff Utecht Says:

    WordPress MU 2.6.3
    Installed for subdirectories use
    Have tried in both mu-plugins and plugin foler

    Throwing an error line 17

    “Parse error: syntax error, unexpected T_STRING in /usr/local/websites/wpmu/wp-content/mu-plugins/activeblogs.php on line 17″

    Any thoughts?

  6. be4dev Says:

    Hi Jeff,

    Please download and install from here:
    http://wpmudev.org/project/most-active-blogs

  7. zenseeker Says:

    I tried this. I got this error:
    Parse error: syntax error, unexpected T_STRING in /home/ramona/public_html/wp-content/mu-plugins/activeblogs.php on line 17

    Any suggestions on what’s happening? Thanks. I have a l_sidebar.php and a r_sidebar.php, but changing your sidebar to either of those still did not work. Thanks again.


  8. Hi

    Is it possible to use the plugin without dynamic sidebars please?

    Thanks

    Rich

    • be4dev Says:

      If you install it to the mu-plugin folder, the function should be available everywhere in your theme.
      You can add the following code to your theme, where you want to show the most active blog

      if (function_exists('most_active_render'))
      most_active_render();

      jorge

  9. Erich Says:

    This is great – what I really need though is a way to get this as an RSS feed. Any ideas?

  10. Linda Says:

    I am running MU and tried to install this as a plugin and under mu plugins.

    I get this error (I copied the code above and placed it into my plugin folder)

    Parse error: syntax error, unexpected T_STRING in /home/public_html/wp-content/plugins/ActiveBlogs.php on line 17

    This is line 17 in the code I copied.
    register_sidebar_widget(’Active Blogs’, ‘most_active_render’);

    I am very new at all of this … is there something I must add to the sidebar in order to make this show?

    Thanks :)
    Linda

  11. Dianellys Morato Says:

    thank you for a great plugin! I just installed it and it’s working flawlessly.

    Regards,
    Dianellys Morato


Leave a Reply