Closed (duplicate)
Project:
Activity
Version:
6.x-1.x-dev
Component:
Activity Contrib
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Dec 2008 at 05:08 UTC
Updated:
31 Dec 2008 at 14:25 UTC
I didn't see any panels integration and I need it so I'm working on it. I've ripped the code from one of the blocks and am adapting it:
$account_id = 1;
$activity = activity_get_activity($account_id, NULL, variable_get('activity_block_'. $delta, 5) + 1);
if ($count = count($activity)) {
if ($count > variable_get('activity_block_'. $delta, 5)) {
$more_link = theme('activity_more_link', 'activity/mine');
array_pop($activity);
}
$activities = array();
foreach ($activity as $item) {
$activities[] = theme('activity', activity_token_replace($item), $item);
}
print theme('activity_block', $activities, $more_link);
}
That seems to work fine when dumped into a page. Any issues with using that code? If not, I'll wrap it into a panels content type and feed it off the user context. Is this something you'd be interested in adding to Activity?
Thanks,
Michelle
Comments
Comment #1
jaydub commentedRelated to #210987: Integrate activity with panels for user profiles
Yes I think integration with panels would be nice.
Comment #2
michelleLOL! I forgot about that issue. Been almost a year. I knew I had tried to get activity & apk working before but I didn't remember having filed an issue on it. Let's dupe this one and just work off that one, then. I want to get it working for both branches, though D6 is my priority right now.
Michelle