Login     Sign up
Activity streams
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

How to increase profile Activity streams display number..

When go to someone's profile it only display his/her 5 streams how to increase this number..

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

modules/dashboard/dashboard.php

function index

$lblocks[] = $this->newsfeed(5);

maybe a good idea for a request to make this a variable you can change in the admin area

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Thanks..
For this..
But i'm talking about profile activity streams...
when you visit some one's profile...
these are only five..

For. eg..

you visit this link...

[url]http://community.jcow.net/u/abhimanyusharma003[/url]

you only find 5 streams there..

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

modules/u/u.php

function index

line

$output .= stream_get($profile['id'],5);

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

for the comment

little bit lower

$output .= profile_comment_get($profile['id'],5);

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Ya it's works good..

But when you click on "see more"

it generate(display) same stream two time..

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

i think you need to change some other things to

this is the comment display
[code]
$output .= profile_comment_get($profile['id'],[b]5[[/b]);
if (substr_count($output,'user_post_left') > [b]4[/b]) {
$output .= '
<div id="morecomment_box"></div>
<div>
<script>
$(document).ready(function(){
$("#morecomment_button").click(function() {
$(this).hide();
$("#morecomment_box").html("<img src=\"'.uhome().'/files/loading.gif\" /> Loading");
$.post("'.uhome().'/index.php?p=jquery/moreprofilecomment",
{offset:$("#stream_offset").val(),uid:'.$profile['id'].'},
function(data){
var currentVal = parseInt( $("#comment_offset").val() );
$("#comment_offset").val(currentVal + [b]5[/b]);
$("#morecomment_box").before(data);
if (data) {
$("#morecomment_button").show();
}
$("#morecomment_box").html("");
},"html"
);
return false;
});
});
</script>

        <input type="hidden" id="comment_offset" value="[b]5[/b]" />
        <a href="#" id="morecomment_button"><strong>'.t('See More').'</strong></a>
        </div>';

[/code]

if your stream = 10, every 5 in the code needs to be 10 and the 4 needs to be 9 (=10-1)

same thing for the stream_display

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Thanks work's great..!!

174 months ago