By Mario on Monday, 30 March 2015
Posted in Technical Issues
Replies 3
Likes 0
Views 1.2K
Votes 0
Hello.

I am using EasySocial Stream Module on my website and I have also installed Komento.

So, this module shows (apart from other things) comments from users.

Is there any way that I can limit the comment and not showing it all?

For example, I want to have the comments limited to 50 words (or characters) when they are bigger than this limit.
Hi Marios,

I am sorry as I assume that you're referring to Komento Apps in EasySocial isn't? Currently there is no setting to do that but you can tweak the code to achieve this. Here I attached to you a file, please download it and put it here:
/media/com_easysocial/apps/user/komento/komento.php
Then please go to this file: /media/com_easysocial/apps/user/komento/config/admin.json and update the existing code to this:

[
{
"title" : "APP_USER_KOMENTO_SETTINGS_PROFILE",
"desc" : "APP_USER_KOMENTO_SETTINGS_PROFILE_DESC",
"fields" :
[
{
"label" : "APP_USER_KOMENTO_SETTINGS_PROFILE_TOTAL",
"tooltip" : "APP_USER_KOMENTO_SETTINGS_PROFILE_TOTAL_DESC",
"name" : "total-profile",
"class" : "input-mini center",
"type" : "text",
"default" : 5
},
{
"label" : "APP_USER_KOMENTO_SETTINGS_PROFILE_WIDGET",
"tooltip" : "APP_USER_KOMENTO_SETTINGS_PROFILE_WIDGET_DESC",
"name" : "widget-profile",
"type" : "boolean",
"default" : true
}
]
},
{
"title" : "APP_USER_KOMENTO_SETTINGS_STREAM",
"desc" : "APP_USER_KOMENTO_SETTINGS_STREAM_DESC",
"fields" :
[
{
"label" : "APP_USER_KOMENTO_SETTINGS_STREAM_TRUNCATION",
"tooltip" : "APP_USER_KOMENTO_SETTINGS_STREAM_TRUNCATION",
"name" : "komento-stream-truncation",
"class" : "input-mini center",
"type" : "text",
"default" : 50
}
]
}
]


Please add this language strings in your site language:

APP_USER_KOMENTO_SETTINGS_STREAM="Stream"
APP_USER_KOMENTO_SETTINGS_STREAM_DESC="Configure application related settings for comments app on your stream"
APP_USER_KOMENTO_SETTINGS_STREAM_TRUNCATION="Stream truncation"


Hope this helps.
·
Monday, 30 March 2015 23:14
·
0 Likes
·
0 Votes
·
0 Comments
·
You're simply the best

I have another issue. Can you please help? It is here: http://stackideas.com/forums/users-cannot-upload-cover-photo-and-profile-pic
·
Tuesday, 31 March 2015 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marios,

Thanks for updating us back. I am glad to hear your issue is now resolved, however, this is only a customization on your site. Please backup this before updating EasySocial to the latest.

Thanks and have a nice day.
·
Tuesday, 31 March 2015 00:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post