Been looking at that. It could just awell be written in klingon :p
I tried just copying the defailt loop as a test, and got no output.
Ok. I have managed to get almost there. One issue though. I cannot for the life of me get my query to show only the 5 last status updates.
When using the below query, nothing is returned.
if ( bp_has_activities(‘object=status’) )
Or am I misunderstanding what “Status” is? (I am assuming it is when you post something in the “What’s new MEMBER?” to your profile)
also, how do I combine more arguments? say I waht both object and max
Take the standard loop
`if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) ) ) :
while ( bp_activities() ) : bp_the_activity();
locate_template( array( ‘activity/entry.php’ ), true, false );
endwhile;
endif; `
If you wanted to output only the last 5 entries you would do this
`if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&max=5′ ) ) :
while ( bp_activities() ) : bp_the_activity();
locate_template( array( ‘activity/entry.php’ ), true, false );
endwhile;
endif; `
If you wanted to combine parameters you would use the “&” character. E.g
`if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&max=5&scope=mentions’ ) ) :
while ( bp_activities() ) : bp_the_activity();
locate_template( array( ‘activity/entry.php’ ), true, false );
endwhile;
endif; `
Hope this helps a litte.
Hi,
https://gist.github.com/dzmounir/5405475
This is short code i was made, you just need to edit or remove some css class for html code.
Thanks a lot for your help guys. Now I just have to figure out why Object=status returns nothing. I have posted several test status updates to my profile, but still nothing shows