well this is what I came up with, though it doesn’t work. Help would greatly be appreciated.
`function bp_limit_group_activity_content() {
$g_activity_desc = bp_activity_content_body();
$limit_desc = substr($g_activity_desc,0,10);
return $limit_desc;
}
`
Found a solution, just cleaning up the function and adding ‘read more’ and so on, will post it when im done.
working nicely, just need to filter out ‘joined the group.. and created group.. and remove ‘view’ and delete’.
Once im done using it for what i need ill turn it into a widget for the community
`function bp_limit_group_activity_content() {
$group_activity_length = 100; //character limit
$group_excerpt = substr(bp_get_activity_content_body(), 0, $group_activity_length); //truncate excerpt according to lenngth
if(strlen($group_excerpt) < strlen(bp_get_activity_content_body())) {
$group_excerpt = $group_excerpt.’..’ ;
}
echo “
“.$group_excerpt.”
“; //finally display excerpt
}`
and then calling it by
`
`
one thing I over-looked is limiting the line height, Im going to look into this tomorrow though if anyone knows of a solution please don’t be shy
Also is there a filter specific to group updates only, thus excluding ‘joined group’ and ‘created group’?
Did you ever create a wordpress/buddypress plugin for this? I need to limit characters on activity, but I’m not a programmer. I can activate a plugin though! Also, I need to limit characters on a couple of custom profile fields. Thanks and Let me know!