How to limit characters in activity list?

Hi,

maybe someone knows how to limit characters in latest activity list on index page? For example group description can be very long and whole description appears in the latest activity block. How can I limit display characters number?

I use this code for the latest activity:

<!-- latest activity -->
        <div id="index_box">
            <div id="lactivity">
            <a href="<?php echo $vars['url']; ?>mod/riverdashboard/" title="Home"><h2><?php echo elgg_echo("Latest Activity"); ?></h2></a>
            <div class="IndexBoxContent">
                <?php set_context('search');
                $content = list_registered_entities(0,8,true,false,array('object','group'));
                $content = elgg_view_layout('', '', $title . $content);
                echo $content;?>
                <a href="dashboard/latest.php"><span>more ...</span></a>
            </div>
            <div class="clearfloat"/></div>
        </div>

Best regards,

web.take.away

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking