We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to limit description groups (resolved) | Forum

raphael
raphael Mar 15 '14
Hi,
please could you explain me how to limit group descriptions
at www/site.com/groups

thanks
The Forum post is edited by raphael Mar 27 '14
ross Team
ross Mar 17 '14
Topic was moved from General Questions.
Daisy Team
Daisy Mar 20 '14
Raphael, do you want to limit the symbols your users can add to the group description when they add a new group or want to truncate the groups description on the groups list/groups view pages?
raphael
raphael Mar 21 '14
Hello Daisy
the second option please
thank you
Daisy Team
Daisy Mar 27 '14
Raphael, you should go to /ow_plugins/groups/controllers/groups.php file, search for the displayGroupList function and replace this string:

'content' => strip_tags($item->description),

with this one:

'content' => UTIL_String::truncate(strip_tags($item->description), 200, '...'),
raphael
raphael Mar 27 '14
it works great, thank you very much
Daisy Team
Daisy Mar 27 '14
You are welcome.