Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Reply To: Activity Stream on Individual Courses (Groups)

New Homepage › Forums › About the Project › Activity Stream on Individual Courses (Groups) › Reply To: Activity Stream on Individual Courses (Groups)

January 21, 2021 at 8:38 pm #8791
Ray
Keymaster

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.

Topic View List

  • Most popular topics
  • Topics with no replies

Recent Topics

  • First Community meeting tomorrow June 6
  • Taming Storage
  • Broken Multisite after being taken down and partially recovered.
  • NYCDH Week Workshop tomorrow Thurs Feb 10 8am-10am
  • Introducing the CBOX OpenLab Community Hub!
  • Plugin Management

Recent Replies

  • Query about Badge Links
  • Taming Storage
  • Broken Multisite after being taken down and partially recovered.
  • Broken Multisite after being taken down and partially recovered.
  • Broken Multisite after being taken down and partially recovered.
  • Introducing the CBOX OpenLab Community Hub!

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register