BuddyDev

Search

[Resolved] BP Force Profile Photo Plugin – Red Notification Bar Not Showing Up Anymore

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #1837

    Hi Brajesh,

    Thank you for creating this plugin!

    I installed the latest version (1.0.1) a week ago, and it was working great. Just a few days ago, the red notification bar with the message stating “Please upload your profile photo to start using this site” stopped appearing.

    The plugin still successfully restricts users from using site features if they don’t have a photo, but it is no longer telling them the reason by displaying the red notification.

    Can you please tell me what I can do to fix this?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #1839

    Hi Vicki,
    Welcome to BuddyDev forums.

    Does your theme contains this code

    
    <?php do_action( 'template_notices' ); ?>
    

    The plugin uses it to display the notice an most of the BuddyPress compatible theme contains that block to show notices/messages.

    If not, Please try adding that and see if it works or not?

    Please do let me know what you find there.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #1912

    Hello Brajesh,

    I asked the creators of the theme if it contains that code, and I received the following response from them—-

    “Hi,

    template_notices is part of buddypress. The action is present in many files of our theme.

    Targets
    Occurrences of ‘template_notices’ in Directory \KLEO 3.1.1\kleo
    Found Occurrences (17 usages found)
    Usage in string constants (17 usages found)
    kleo (17 usages found)
    bbpress (4 usages found)
    content-single-user.php (1 usage found)
    (14: 24) < ?php do_action( ‘bbp_template_notices’ ); ?>
    form-forum.php (1 usage found)
    (60: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
    form-reply.php (1 usage found)
    (49: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
    form-topic.php (1 usage found)
    (66: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
    buddypress\activity (1 usage found)
    index.php (1 usage found)
    (13: 20) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\activity\single (1 usage found)
    home.php (1 usage found)
    (2: 20) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\blogs (1 usage found)
    create.php (1 usage found)
    (4: 19) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\forums (1 usage found)
    index.php (1 usage found)
    (84: 24) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\groups (2 usages found)
    create.php (1 usage found)
    (19: 21) < ?php do_action( ‘template_notices’ ); ?>
    index.php (1 usage found)
    (15: 21) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\groups\single (1 usage found)
    group-header.php (1 usage found)
    (74: 13) do_action( ‘template_notices’ );
    buddypress\members (4 usages found)
    activate.php (1 usage found)
    (7: 21) < ?php do_action( ‘template_notices’ ); ?>
    register.php (3 usages found)
    (10: 22) < ?php do_action( ‘template_notices’ ); ?>
    (20: 22) < ?php do_action( ‘template_notices’ ); ?>
    (186: 22) < ?php do_action( ‘template_notices’ ); ?>
    buddypress\members\single (1 usage found)
    member-header.php (1 usage found)
    (66: 19) < ?php do_action( ‘template_notices’ ); ?>
    kleo-framework\lib (1 usage found)
    function-facebook-login.php (1 usage found)
    (353: 14) add_action( ‘template_notices’, ‘kleo_fb_register_message’ );”

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #1987

    Is there anything I can change or do to make the bar come back? Please let me know. It was working perfectly well before, but it’s just not appearing anymore.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2003

    Hi Vicki,
    I am sorry for the delayed reply.

    You will need to have this line in all your pages

    
    <?php do_action( 'template_notices' ); ?>
    
    

    Currently it is only on few specific pages(User/groups/forums) in your template.

    This is used to display notice (and there is not other way to inject notice)
    Please put that line in your header file and check if the notice is available or not. You may have to do it conditionally to avoid double notice on user profile/group though.

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #2004

    Hi Brajesh,

    Thank you for your response. Please which part of the header file should I put that line?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2005

    Hi Vicki,
    I am sorry but that depends on your theme. Most probably putting it in header.php should be fine. You will need to find the proper location (container etc) as I am not familiar with the above mentioned theme. Try putting it at the end and then you may adjust as per the layout.

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #2006

    The theme is Sweetdate version 2.9 by SeventhQueen.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #2007

    In that case, just put it at the bottom of header.php that will be visible but may not look great.

  • Participant
    Level: Initiated
    Posts: 9
    Vicki on #2031

    I placed <?php do_action( ‘template_notices’ ); ?> at the bottom of header.php, as instructed, but the notification bar is still not showing up.

    I need to find out if there is something wrong with my theme. Please what other plugins do you know of that requires <?php do_action( ‘template_notices’ ); ?> in order to show a notification bar? I would like to test it out on my theme to check if the notification bar function of my theme is dysfunctional with all plugins.

    Thank you.

The topic ‘ [Resolved] BP Force Profile Photo Plugin – Red Notification Bar Not Showing Up Anymore’ is closed to new replies.

This topic is: resolved