BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Send Invites link to 404 page
- This topic has 5 replies, 4 contibutors, and was last updated 8 years, 11 months ago by Anonymous.
Question
December 16, 2015 at 1:55 pm #54573@adminchroncleproject-comHi,
When a user is in a subscribed course, there is a tab “Send Invites’ ( http://www.screencast.com/t/TabhDCeaA ) – that links to a 404 error page. http://www.screencast.com/t/1T4mpu6CM0
Could you help us fix that ? we would rather not have the tab.
I tried your suggested code from another ticket (see below), but the tab is still there:
function 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’ );Answers
December 17, 2015 at 12:59 am #54596@
AnonymousHi, @adminchroncleproject-com, Please try this code to hide ‘Send Invites’ and ‘Members’ tabs from buddypress pages.
function remove_nav_items() { bp_core_remove_nav_item( 'invite-anyone' ); bp_core_remove_nav_item( 'members' ); } add_action( 'bp_setup_nav', 'remove_nav_items');
Regards
December 17, 2015 at 9:06 am #54612@adminchroncleproject-comHi,
Just to clarify, the members tab is fine.
The “Send Invites” tab is the problem. We do not have that tab “Send Invite’ in the buddypress groups (see here when we are in the group: http://www.screencast.com/t/svutBlzwC3 ), we have it when we are on the course page ( see here: http://www.screencast.com/t/LNnZeyGO ) –
The course page is not the group page, but have tabs that link to the groups tabs, they are displayed by either the boss sensei plugin or the Social Learner theme I suppose.
(it should not really, that produces the problem we have and confusion for users!)
So in the course page (once I am subscribed), I see a ‘Send Invites” tab that link to a 404 error page. Please help me remove that tab.Thank you,
December 17, 2015 at 2:42 pm #54645@
AnonymousSorry for confusion
It is hard coded in BuddyPress for sensei plugin
If you do not want to edit Send invite functionality you will need to edit it for now
else you can install invite anyone pluginI have notified to developer to add conditional logic there to display the tab only when invite anyone plugin is active
Regards
Varun DubeyDecember 17, 2015 at 2:48 pm #54647@mln83Hi @vapvarun,
Please if you could notify developers to include conditional logic in BuddyPress for LearnDash plugin as well.
It’s the same problem there.
Best regards,
MichaelDecember 18, 2015 at 2:18 am #54675@
AnonymousHi @mln83, I have notified it to our developers it will be fixed soon
Regards
- The question ‘Send Invites link to 404 page’ is closed to new replies.