BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Forum Tab on Course Page
- This topic has 24 replies, 2 contibutors, and was last updated 9 years ago by Anonymous.
Question
July 17, 2015 at 6:39 pm #42912@dbaylessHow can I get rid of the “Forum” tab on an individual Course Page?
- I have enabled the BuddyPress User Group component
- I have activated BuddyPress for Sensei, but
- I have disabled (BuddyPress) Group Forums
In other words, I use bbPress for general discussions and BuddyPress Groups for course-specific conversations.
The menu on the Groups page (e.g. http://humanscalebusiness.org/groups/navigating-the-valley-of-broken-dreams-group/, screenshot attached) includes a “Course” tab on the Group menu, and the tab links to the appropriate course summary page (e.g. http://humanscalebusiness.org/groups/navigating-the-valley-of-broken-dreams-group/experiences/).
However, if I go to the Course page associated with the Group (e.g. http://humanscalebusiness.org/course/broken-dreams/), there is a “Forum” tab in the menu (see attached screenshot). When one clicks on the Forum tab, one is directed to the 404 error page (see attached screenshot).
I’m really excited about this theme – I think it’s going to work brilliantly for our needs. I appreciate your help in figuring out a handful of configuration challenges.
Answers
July 18, 2015 at 1:42 am #42928@
AnonymousHi @dbayless, It have missing condition to check for active status of Forum for Current Group. that’s why it is displaying forums tab even it is not active.
it is added inside boss-sensei/Templates/Sensei/content-single-course.php
Line 172
update it with following code<?php if ( !empty( $group_data->enable_forum ) ){ ?> <li id="nav-forum-groups-li"><a href="<?php echo $group_slug.'/forum/'; ?>" id="nav-forum"><?php _e('Forum','boss-sensei'); ?></a></li> <?php } ?>
It will be fixed in next version
Regards
Varun DubeyJuly 18, 2015 at 7:08 am #42938@dbayless@vapvarun, thanks for the quick reply!
However, when I copy and paste the code snippet into Line 172 of content-single-course.php (see screenshot), I don’t get the expected results in the Course page menu (see second attached screenshot).
What have I done incorrectly?
July 18, 2015 at 8:24 am #42943@
AnonymousHello @dbayless, you have added at wrong location send your login details at [email protected] i will add them.
It need to be added inside plugins folder
boss-sensei/Templates/Sensei/content-single-course.phpReplace
<li id="nav-forum-groups-li"><a href="<?php echo $group_slug.'/forum/'; ?>" id="nav-forum"><?php _e('Forum','boss-sensei'); ?></a></li>
and add
<?php if ( !empty( $group_data->enable_forum ) ){ ?> <li id="nav-forum-groups-li"><a href="<?php echo $group_slug.'/forum/'; ?>" id="nav-forum"><?php _e('Forum','boss-sensei'); ?></a></li> <?php } ?>
Regards
Varun DubeyJuly 18, 2015 at 9:08 am #42958@dbayless@vapvarun, I’m following your instructions to the best of my ability to no avail.
When is the next version of the plugin expected to be published? If it’s not going to be long, I think I can wait.
July 18, 2015 at 9:28 am #42961@
AnonymousIt will be updated shortly
Regards
Varun DubeyJuly 18, 2015 at 9:50 am #42966@dbaylessVarun, I’ll just hold out until the next plugin update.
Thanks for your help! I really appreciate your responsiveness.
July 19, 2015 at 1:40 am #42988@
Anonymous🙂 welcome
September 15, 2015 at 3:41 pm #46355@dbayless@vapvarun, do you have any idea when the fix for this problem is scheduled to be implemented?
September 16, 2015 at 5:15 am #46379@
AnonymousHey @dbayless, i can provide you development copy it is fixed inside that. We are added other priorities fixes to next version it may be released within week.
Regards
Varun DubeySeptember 16, 2015 at 9:56 am #46387@dbaylessThanks, Varun. I can hold on for the fix. I just wanted to make sure one was in the pipeline.
September 17, 2015 at 4:37 am #46470@
AnonymousHi @dbayless , i have checked it again it is already pushed last week , you can download updates from my account section or can update Boss Sensei plugin.
Regards
Varun DubeySeptember 17, 2015 at 8:20 am #46506@dbaylessVarun, I think I’ve got everything updated, but I’m still having the problem. Here is what is installed on my site right now:
- Boss. Theme 1.2.0
- Buddy Boss Wall 1.2.1
- Social Learner for Sensei 1.0.3
- Boss for Sensei 1.0.2
- BuddyPress for Sensei 1.0.8
When I navigate to http://humanscalebusiness.org/course/reaching-break-even-cash-flow/, I still get the “Forum” tab (see attached screenshot) on the BuddyPress menu. As you can see from the second attached screenshot, I’ve turned off the Settings > Forums > Enable Group Forums option.
What am I missing?
September 17, 2015 at 9:11 am #46514@
AnonymousHi @dbayless it was marked done on the basis way of testing,
They have added codes on the basis of dual condition if bbpress is active and group have a forum id
if(function_exists(‘bbpress’) && $forum_id)
might be you have linked that group with forum earlier and it gets the forum id inside databasethey should have to checked different condition group forum is enabled or not on the basis of group id
if ( !empty( $group_data->enable_forum ) )exactly like i had pasted above responses.
I have notified about this to developers again
Sorry for keep waiting for this small fix from long time.
Regards
Varun DubeySeptember 17, 2015 at 9:15 am #46516@dbaylessVarun, you wrote:
might be you have linked that group with forum earlier and it gets the forum id inside database
I think you are right. I do recall playing around with course-linked forum before deleting the form and turning off the option.
Thanks!
- The question ‘Forum Tab on Course Page’ is closed to new replies.