BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Disable some features
- This topic has 8 replies, 3 contibutors, and was last updated 8 years, 9 months ago by Thierry.
Question
September 1, 2015 at 6:04 pm #45560@familybudgetingHello,
I love the social learner theme, but for various reasons the “social” aspect doesn’t sit well with my users.
I’m wanting to know how to turn off:
– Forums
– Private messaging
– NotificationsWhen you’re taking a course, there’s a menu on the course index page. Ideally I’d like to remove that menu entirely, but if not then these items:
– Forum
– Members
– Send invites
– ManageThanks,
Mike
Answers
September 2, 2015 at 3:54 am #45585@
AnonymousHi @familybudgeting, you can disable them from BuddyPress options
Settings >> BuddyPress
You can uncheck those component and they will also be removed from menus.
Regards
Varun DubeySeptember 2, 2015 at 2:49 pm #45624@familybudgetingHi Varun,
Thanks! I’m not familiar with BuddyPress and hadn’t found that menu option.
But, it doesn’t work as desired. When I disable User Groups and attempt to view a course, I get: “Fatal error: Call to undefined function groups_get_group() in /home/uzziah/public_html/wp-content/plugins/boss-sensei/templates/sensei/content-single-course.php on line 155”
With User Groups enabled this error goes away.
It also doesn’t appear to remove the attached forums but I couldn’t see an option for that in BuddyPress. If I disable the bbPress plugin entirely I get 404 errors on my course content.
Thanks in advance for your help.
Cheers,
Mike
September 3, 2015 at 1:44 am #45661@
AnonymousHi @familybudgeting, Group feature is required for the Social Learner, our complete integration is based on groups.
RegardsSeptember 3, 2015 at 2:20 pm #45724@familybudgetingUm, okay, so when I keep Groups enabled but disable the other things, the menu options on a course remain the same.
So I ask again: How can I remove those options from the course menu?
September 4, 2015 at 7:03 am #45748@
AnonymousHi @familybudgeting, You can disable forums when you are creating new group or using manage group options.
Manage is compulsory Menu, for group admin to manage it, and Members indicate for which have joined that group.
You can remove send invites using custom codes
You can add following codes inside child theme functions.phpfunction remove_group_options() { global $bp; bp_core_remove_subnav_item($bp->groups->slug, 'members'); bp_core_remove_subnav_item($bp->groups->slug, 'send-invites'); } add_action( 'bp_setup_nav', 'remove_group_options' );
Regards
Varun DubeyFebruary 18, 2016 at 8:55 am #59600@melodyHi,
I had a similar error when disabled the User Group options but with the plugin Boss Learndash: “Fatal error: Call to undefined function groups_get_group() in \wp-content\plugins\boss-learndash\templates\learndash\single-sfwd-course.php on line 128”
It seems that when you remove a course from a group or delete a group, the database is not updated.
As the course was detected like belonging to a group and could not be changed.If you want to remove the error you must have access to your database and here is the solution:
In the “wp_postmeta” table change all the “meta_key” : “bp_course_group” with a value of “1” to the value “-1”.
And this is it! 🙂Hope it will help people with the same error.
It will be good if the problem could be resolve in next update.Best regards
February 19, 2016 at 2:58 am #59662@
AnonymousHi @melody
thanks for your input
I have suggested developers to take a look of it
Regards
Varun DubeyFebruary 19, 2016 at 8:45 am #59687@melodyHi,
Sorry it seems I was too quick with my message.
The solution ahead only remove the tabs “Home / Member / Send invite” in the class page which was once in a group.With only the first solution if you deactivate the “User group”, the error come back when you register in the course or if you mark completed a lesson.
In order to resolve the errors, my solution was to totally remove the tables “wp_bp_groups”, “wp_bp_groups_groupmeta” and “wp_bp_groups_members”. (I removed them because there were not present in my database when I installed the theme and plugins. It seems that they are created when you activate the “User Group” option the first time.)
You should also remove the lines with “meta_key” value of “bp_course_group” in the “wp_postmeta” table.@vapvarun thanks for your help 🙂
Best regards
- The question ‘Disable some features’ is closed to new replies.