Skip to:
Content
Pages
Categories
Search
Top
Bottom

'Notifications' Tab appeared in profile?

  • @koreancandy

    Participant

    Hi there,

    Today when I logged into my site, I noticed that a ‘notifications’ tab has appeared in the profile toolbar which hasn’t been there before. I haven’t updated Buddypress or any plugins, so I don’t know where this has appeared from.

    The tab doesn’t actually work or display properly and in fact breaks the page. Please take a look: http://puu.sh/5UNRa.png

    I’m using the latest version of WordPress (3.8) and the latest version of Buddypress (1.9), my site address is http://www.korean-courses.com/

    Has anyone else had this strange problem and how can I remove this tab?

    Thanks so much

Viewing 16 replies - 1 through 16 (of 16 total)
  • @koreancandy

    Participant

    I just realised that the other admin had actually updated to the new Buddypress version which includes this tab.

    How can I remove this tab still? It has broken my theme.

    Thanks!

    @colabsadmin

    Participant

    If you want to add support for the new notification tab (show the notifications table), then add

    elseif ( bp_is_user_notifications() ) :
    bp_get_template_part( 'members/single/notifications' );

    to your themes’s /members/single/home.php file. Look for the following loop and add it there.

    if ( bp_is_user_activity() || !bp_current_component() ) :

    I dont suggest removing the menu tab since members wont have any way of clearing their notifications.

    Hope that helps.

    @koreancandy

    Participant

    Thanks a lot 🙂

    @jamesderosa3gmailcom

    Participant

    This fix works but breaks the activity tab now. It was a step in the right direction though…

    @cringechannel

    Participant

    this step didn’t work for me at all

    @modemlooper

    Moderator

    You should be pursuing a new theme for your site. Bp-default has been deprecated and will not be updated in the future. There will be a fix for this issue but there will not be any fixes for new features in the future.

    @colabsadmin

    Participant

    Sorry it didn’t work out for you guys. Worked perfectly for me, but I’m not using bp-default.

    @jamesderosa3gmailcom

    Participant

    I added this line to the end of the loop and it then worked. I have reported the issue to the theme developer. Thanks.

    @ripulkr

    Participant

    My expectation was that since notifications section has been added I should be able to locate a notifications.php file in members->single templates, which is unfortunately not present in the bp default theme. Since the file is not present the fallback is plugins.php which is shown in the notifications section.
    The above code exactly does what buddypress is already doing so it does not make any difference.

    If your theme has the members folder, then Notifications view is missing … is there any template we can refer to .. if not bp-default..

    @shobhit123

    Participant

    Same thing happen with me as well.

    I am adding this code to Home.php, I am searching this function if ( bp_is_user_activity() || !bp_current_component() ) : and adding code, but nothing happen.

    I am using bp-default theme.

    There is no notification.php file in that folder.

    @willandmae

    Participant

    @colabsadmin thanks for the fix! Worked great! @jamesderosa3gmailcom thanks for the heads up I also put it to the last in the loop and it works flawlessly!

    Thanks all!

    William

    P.S. I hope someone will take over this theme, I haven’t found one quite like it anywhere. Has anyone found one yet?

    @brucedongcaigmailcom

    Participant

    Team, please help! where should I add the following code in home.php file? what do you mean about the end of loop? Thank you!
    elseif ( bp_is_user_notifications() ) :
    bp_get_template_part( ‘members/single/notifications’ );

    here is home.php
    ———–
    <div id=”item-body”>

    <?php do_action( ‘bp_before_member_body’ );

    if ( bp_is_user_activity() || !bp_current_component() ) :
    locate_template( array( ‘members/single/activity.php’ ), true );

    elseif ( bp_is_user_blogs() ) :
    locate_template( array( ‘members/single/blogs.php’ ), true );

    elseif ( bp_is_user_friends() ) :
    locate_template( array( ‘members/single/friends.php’ ), true );

    elseif ( bp_is_user_groups() ) :
    locate_template( array( ‘members/single/groups.php’ ), true );

    elseif ( bp_is_user_messages() ) :
    locate_template( array( ‘members/single/messages.php’ ), true );

    elseif ( bp_is_user_profile() ) :
    locate_template( array( ‘members/single/profile.php’ ), true );

    elseif ( bp_is_user_forums() ) :
    locate_template( array( ‘members/single/forums.php’ ), true );

    elseif ( bp_is_user_settings() ) :
    locate_template( array( ‘members/single/settings.php’ ), true );

    // If nothing sticks, load a generic template
    else :
    locate_template( array( ‘members/single/plugins.php’ ), true );

    endif;

    do_action( ‘bp_after_member_body’ ); ?>

    </div><!– #item-body –>

    @boonebgorges

    Keymaster

    @brucedongcaigmailcom Right above // If nothing sticks, load a generic template.

    @brucedongcaigmailcom

    Participant

    Boone, Thank you!!! It is working perfectly!

    @boonebgorges

    Keymaster

    Glad to hear it – good luck, @brucedongcaigmailcom!

    @revadigital

    Participant

    Hi – I’m using Frisco for Buddypress, which inherits from Buddypress Default. What’s the fix for my situation? I don’t see home.php in either theme.

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘'Notifications' Tab appeared in profile?’ is closed to new replies.
Skip to toolbar