- This topic has 24 replies, 2 contibutors, and was last updated 9 years, 3 months ago by .
-
Question
Answers
- The question ‘Forum Tab on Course Page’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Forum Tab on Course Page
How can I get rid of the “Forum” tab on an individual Course Page?
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.
Hi @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 Dubey
@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?
Hello @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.php
Replace
<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 Dubey
@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.
It will be updated shortly
Regards
Varun Dubey
Varun, I’ll just hold out until the next plugin update.
Thanks for your help! I really appreciate your responsiveness.
🙂 welcome
@vapvarun, do you have any idea when the fix for this problem is scheduled to be implemented?
Hey @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 Dubey
Thanks, Varun. I can hold on for the fix. I just wanted to make sure one was in the pipeline.
Hi @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 Dubey
Varun, I think I’ve got everything updated, but I’m still having the problem. Here is what is installed on my site right now:
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?
Hi @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 database
they 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 Dubey
Varun, 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!