Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Notification – what’s wrong here?

@shivam-kumar

Participant

Hi i think i know whats happening here i was working on status theme to make it work with the latest versions of both buddypress and wordpress and i faced the similar issue so this is what i did to resolve it goto wp-content>>themes>>yourthemename>>members folder>>single>>home.php and add these lines of code there

elseif ( bp_is_user_notifications() ) :
					locate_template( array( 'members/single/notifications.php' ), true );	

just before this kinda statement // If nothing sticks, load a generic template
next create a file named notifications.php in wp-content>>themes>>yourthemename>>members folder>>single folder and add these lines to it

<?php

/**
 * BuddyPress - Users Notifications
 *
 * @package BuddyPress
 * @subpackage bp-legacy
 */

?>

<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
	<ul>
		<?php bp_get_options_nav(); ?>

		<li id="forums-order-select" class="last filter">
			<?php bp_notifications_sort_order_form(); ?>
		</li>
	</ul>
</div>

<?php
switch ( bp_current_action() ) :

	// Unread
	case 'unread' :
		bp_get_template_part( 'members/single/notifications/unread' );
		break;

	// Read
	case 'read' :
		bp_get_template_part( 'members/single/notifications/read' );
		break;

	// Any other
	default :
		bp_get_template_part( 'members/single/plugins' );
		break;
endswitch;

and try to reload your site now your problem should be solved.
Note: only create notifications.php if its not already there and please backup your site before making these changes

Skip to toolbar