Modifying the Latest Activity Feed

From KickApps API Reference

Jump to: navigation, search

The new Latest Activity Feed on the user profiles displays all the most recent stuff that the user’s been up to.  This is a great way to see how the user has interacted with the community.

For a very active user, though, this list can get long, and push their Friends, Media and Comments further down the page. To change this behavior, you have a few options.

1) Move The Feed To The Left Column
To move the feed to the left column, below the user’s links, you can use this jQuery snippet, pasted into your global page template:

<script type="text/javascript"  charset="utf-8">
$j(document).ready(function() {
if (Ka.Info.PAGE == 'pages/kickPlaceServerSide.jsp'){
$j('#ka_profileActivityFeed').appendTo('#ka_profileLeft');
};
});
</script>

That will result in this:
Move the Activity Feed Left


2) Remove The Feed Entirely
You can remove the feed using either JavaScript or CSS. Here are some code examples for each:

JavaScript:

<script type="text/javascript"  charset="utf-8">
$j(document).ready(function() {
if (Ka.Info.PAGE == 'pages/kickPlaceServerSide.jsp'){
$j('#ka_profileActivityFeed').remove();
};
});
</script>

CSS:

<style type="text/css"  media="screen">
#ka_profileActivityFeed {display:none;}
</style>

3) Shorten the Feed
Lastly, you can shorten the activity feed by limiting its height with CSS like this:

<style type="text/css"  media="screen">
#ka_profileActivityFeed ul{height:300px; overflow:hidden;}
</style>