By Mark on Monday, 04 August 2014
Posted in General Issues
Replies 3
Likes 0
Views 533
Votes 0
In the Pagination section for stream settings, the maximum option for Number of items to load is 50

Could you tell me where I could over-ride this manually in the code please as the client wants to have no limit on the number displayed at once

(It's for groups news feeds which is the only thing they use it for)

Thanks

Mark
Hello Mark,

Sorry for late reply to this,
You can use this way to create how many item you would like to display on your stream.
First : Go to this file JoomlaFolder\administrator\components\com_easysocial\themes\default\settings\forms\stream.php

//LINE 27
$settings->makeoption('50 items', '50'),
//add 1 more row example 100 item
//LINE 28
$settings->makeoption('100 items', '100'),


Second : GO to your language string file JoomlaFolder\administrator\language\en-GB\en-GB.com_easysocial.ini

//add this language string
COM_EASYSOCIAL_STREAM_SETTINGS_100_ITEMS="100 items"


In my opinion, I wouldn't encourage your client set to display unlimited stream in your EasySocial Dashboard, because it will slow down your load page, you can imagine that if the stream got around 10000, then the page sure loading until time out or something else happening.

Hope this help.
·
Monday, 04 August 2014 18:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex

Many thanks for the reply, much appreciated

I would normally agree about the unlimited issue except with this client, I know that the feed for each group won't exceed around 200 items so it should be ok to set as unlimited

Best regards

Mark
·
Monday, 04 August 2014 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Mark. Setting this to 1,000 is almost suicidal if they are on a normal shared hosting environment. If they are on a shared hosting environment, don't worry, they'll come back to you to get this changed because their web host is definitely not going to be happy about this.

As a developer yourself, I strongly advise you to preach what is right for the customer / end user. When we normally do customizations for customers, we get to decide what is right and what is wrong. It's just like giving them a gun to shoot their own foot and at the end, they'll just blame that the software is heavy and takes up a lot of resources. Even Facebook doesn't load that much of activities at any given point of time
·
Monday, 04 August 2014 23:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post