New Homepage › Forums › About the Project › Activity Stream on Individual Courses (Groups) › Reply To: Activity Stream on Individual Courses (Groups)
Hi Troy,
If you’re talking about adding an “Activity” tab to a group’s (course) sidebar nav next to the existing “Course Home” and “Discussion” items, it’s possible. However, it looks like OpenLab wasn’t designed to have an activity stream for a course.
If you want to enable the Activity page for a group (course), you’ll need to do the following in your child theme:
1. Copy over /buddypress/groups/single/group-home.php
from openlab-theme
and in your child theme, rename this file to /buddypress/groups/single/front.php
2. Copy over /buddypress/groups/single/activity.php
from openlab-theme
to your child theme. Open up that file and replace bp_get_template_part( 'activity/activity-loop.php' )
with bp_get_template_part( 'activity/activity-loop' )
. Also in the same file, replace bp_get_template_part( 'activity/post-form.php' )
with bp_get_template_part( 'activity/post-form' )
.
3. Copy over /buddypress/activity/activity-loop.php
from openlab-theme
to your child theme. Open up that file and replace bp_get_template_part( 'activity/entry.php' )
with bp_get_template_part( 'activity/entry' )
The last two items are bugs in @openlab-theme@. I’ll open up a pull request to fix this up, but in the meantime, this should enable the “Activity” tab on a group’s sidebar nav. You will also need to add your own CSS styling to make things look good since there is no styling for the activity stream.