BuddyDev

Search

Fill all fields message is not getting displayed

  • Participant
    Level: Initiated
    Posts: 5
    Sucheta on #30423

    Please fill all reqiured fields message is not getting displayed

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2933
    Ravi on #30426

    Hello Sucheta,

    Sorry for the inconvenience. I am not able to understand please let me know what sort of issue you are facing and which environment you are working with i.e. Is it BuddyBoss Plateform or BuddyPress and which theme you are using.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 5
    Sucheta on #30429

    Hi Ravi,

    I am working on wordpress with buddypress platform and I am using wplms theme. Actually the issue is I want to restrict the user if his profile is not complete and also want to show “Please fill the required fields” message.

    I am able to restrict the user but not able to show “Please fill the required fields” message.

    Regards,
    Sucheta

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2933
    Ravi on #30432

    Hello Sucheta,

    Thank you for the details. Please let me know are you getting default notices like “Profile updated” correctly or not. If not, It seems your theme not firing action name “template_notices” that causing the issue.

    Regards
    Ravi

    • This reply was modified 3 years, 10 months ago by Ravi.
  • Participant
    Level: Initiated
    Posts: 5
    Sucheta on #30435

    When I set restrict to profile only as yes, I am able to restrict the user, but “Please fill the required fields” message is not displayed.

    When I set restrict to profile only as no, I am not able to restrict the user, but “Please fill the required fields” message is displayed.

    So I want to restrict the user as well as show “Please fill the required fields” message to user.

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #30460

    Hi Sucheta,
    Thank you for sharing the details.

    It seems to me that your theme lacks the template_notices action on profile pages.

    You can verify it by adding

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

    if using BuddyPress legacy template pack or if you have BuddyPress Noveau template pack enabled, you can use this

    
    <?php bp_nouveau_template_notices(); ?>
    
    

    and see if the notice is shown or not.

    We use BuddyPress’s API for adding notice. To render the notice, the theme needs to have the above snippet or a variant of it for Nouveau.

    Please let me know if that works or not?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Sucheta on #30466

    Hi Brajesh,

    I tried adding the above code in functions.php but generated critical error, then I tried adding it in buddypress-functions.php, but message is still not displayed.

    So what must be the issue?

    Regards,
    Sucheta

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #30485

    Hi Sucheta,
    I am sorry, I did not see your reply earlier.

    1. The code should not go to buddypress-functions.php. They will have no effect in it.

    2. Please put it somewhere in your theme/child theme’s header for testing

    3. If you are using Nouveau template, only then use the 2nd code, otherwise that may cause fatal error(you can check the template pack from dashboard->settings->BuddyPress->Options)

    Please let me know how it goes.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Sucheta on #30580

    Hi Brajesh,

    I am using buddypress legacy template pack, I tried adding code in header but it did not worked.

    I referred below link and tried doing all these suggestions, but did not worked
    URL: https://buddypress.org/support/topic/confirmation-message-after-changing-settings/
    https://buddypress.org/support/topic/change-location-of-template-notices/

    Please let me know what should be done.

    Regards,
    Sucheta

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #30581

    Hi Sucheta,

    Thank you for the details.
    Please share a screenshot of the profile completion settings.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved