The MU forums have moved to WordPress.org

Recent Entries - Updated Blogs - Active Blogs (14 posts)

  1. Parado
    Member
    Posted 17 years ago #

    How to show on the main page? I saw this on http://adadaa.com/ For example I know function <?php get_most_active_blogs(); ?>
    Result:

  2. 135 http://site.site.com
  3. How to show

  4. 135 SITE NAME
  5. And for Updated Blogs - Active Blogs ?

  • Parado
    Member
    Posted 17 years ago #

    backticks I use <?php get_most_active_blogs(); ?> as result

  • 135 http://site.site.com/
  • How to show

  • 135 BLOG TITLE
  • As here http://adadaa.com/ > Active Blogs backticks

  • skcsknathan001
    Member
    Posted 17 years ago #

    Visit back & I'll post the code in 5 days

  • kprimdal
    Member
    Posted 17 years ago #

    This is how i do it:

    <?php
    $most_active = get_most_active_blogs( 10, false );

    foreach( $most_active as $details ) {
    ?> "><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>

  • kprimdal
    Member
    Posted 17 years ago #

    <?php
    $most_active = get_most_active_blogs( 10, false );
    ?>

    <?php foreach( $most_active as $details ) {
    ?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
    <?php
    }
    ?>

  • kprimdal
    Member
    Posted 17 years ago #

    [code]<?php
    $most_active = get_most_active_blogs( 10, false );
    ?>

    <?php foreach( $most_active as $details ) {
    ?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
    <?php
    }
    ?>[/code]

  • kprimdal
    Member
    Posted 17 years ago #

    hehe okay i don't know have the code tags works, but hope you can see it

  • andrea_r
    Moderator
    Posted 17 years ago #

    use backticks around code. This thing: '

    It's on the upper left of your keyboard, right under the Esc key.

  • Parado
    Member
    Posted 17 years ago #

    <?php
    $most_active = get_most_active_blogs( 10, false );
    ?>
    <?php foreach( $most_active as $details ) {
    ?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
    <?php
    }
    ?>

    Something Wrong?

  • Parado
    Member
    Posted 17 years ago #

    kprimdal

    use backticks

  • kprimdal
    Member
    Posted 17 years ago #

    <?php
    $most_active = get_most_active_blogs( 10, false );
    ?>
    <?php foreach( $most_active as $details ) {
    ?><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a><br /> <?php
    }
    ?>

  • Parado
    Member
    Posted 17 years ago #

    a little different version ;)

    <?php
    $most_active = get_most_active_blogs( 10, false );
    ?>
    <?php foreach( $most_active as $details ) {
    echo $details['postcount'] . " ";
    ?>
    <a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>">
    <?php
    echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a><br />
    <?php
    }
    ?>

  • skcsknathan001
    Member
    Posted 17 years ago #

    http://wpmudevorg.wordpress.com/project/List-All-%5Bwidgets%5D

  • LaSet
    Member
    Posted 17 years ago #

    Hi

    I use this code

    
    	<h3>Most active blogs:</h3>
    
    <ul>
    <?php
    $most_active = get_most_active_blogs( 10, false );
    ?>
    <?php foreach( $most_active as $details ) {
    ?><li><a target="_blank" href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a> [<?php echo $details['postcount'] . " "; ?>]</li><?php
    }
    ?>
    </ul>
    

    but it takes additional 173! queries

    How to optimize it to a minimum?

  • About this Topic