• Resolved kylenedas2

    (@kylenedas2)


    Hi I am looking to create a navigation for
    Home (Activity), My Profile, Notifications, Account Settings

    Is this doable with this plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Liquid Themes

    (@liquidthemes)

    Hi @kylenedas2 ,

    Currently, there are no additional options for BuddyPress, but it’s possible to add it to your site with custom code.

    Thread Starter kylenedas2

    (@kylenedas2)

    Yeah I added it with custom code. The only issue now is that it doesn’t have live notifications since it’s only a nav bar with an icon. I currently have a set up for Home, Notifications, Messages, and My Profile.

    Users have to click each one periodically to see if they got a notification.
    Are there any plans or is it possible to link the icons with live notifications?

    Would I have to custom code this?

    The buddypress fix is I got is messages/me link to messages to user profile, same with my profile, notifications, etc.

    Plugin Contributor Liquid Themes

    (@liquidthemes)

    Yes, it’s possible with custom code. You can get notification count value with ajax and append any menu item with JS.

    Here’s basic example:
    Ajax:

    jQuery(document).ready(function($){
      function updateNotificationCount() {
        $.ajax({
          url: ajaxurl,
          type: 'POST',
          data: {
            action: 'bp_notification_count'
          },
          success: function(response) {
            if (response.success) {
              $('.notification-count').text(response.count);
            }
          }
        });
      }
      setInterval(updateNotificationCount, 60000);
    });

    Function:

     add_action( 'wp_ajax_bp_notification_count', function(){
    wp_send_json(['success' => true, 'count'=> bp_notifications_get_unread_notification_count(bp_loggedin_user_id())])
    } );

    Don’t forget. This is just an simple example.

    Thread Starter kylenedas2

    (@kylenedas2)

    How do I add this? I only need it for notifications and messages. If I can have the notification appear to the right of the icon not the left though.

    I go into Plugins> Customize> JS
    Or?

    Thread Starter kylenedas2

    (@kylenedas2)

    Figured it out thanks!

    Thread Starter kylenedas2

    (@kylenedas2)

    Resolved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Buddypress Compatible?’ is closed to new replies.