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
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- // Get input data
- $body = get_input('note');
- webtakeaway@web.take.away
webtakeaway - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- <?php echo elgg_echo("Latest Activity"); ?>
- webtakeaway@web.take.away
webtakeaway - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
You must log in to post replies.is this not the same as posting to TheWire ?
if so -- mod/ thewire/ actions/ add.php
is one place to start looking ...
No, I don't want to limit group description in add form. Problem is in latest activity list or latest group list on index page - I would like to limit there description length. for example now is:
NEW GROUP
very long new group description here
I would like to have this:
NEW GROUP
very long new group descr.... read more
Problem is simple - if you have very long group description, your latest activity column also will be very very long.
Best regards,
web.take.away
then you'll have take the output string from
and edit it to truncate each individual group's description length.
Hmm... I'm not so good in php. Please can you write small example for this?
I will *not write the *code for you ;-)
try
var_dump on
elgg_echo("Latest Activity")
and see