BuddyDev

Search

User Contact Form Mandatory fields and inidicators message sent

Tagged: 

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

    Hi Barry,
    That path will be buddypress/members/single/bpucf-form.php

    We need the following lines at its top

    
    <?php if ( ! did_action( 'template_notices' ) ) : ?>
    	<?php do_action( 'template_notices' ); ?>
    <?php endif; ?>
    

    It checks if notices action was not called, calls them.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Barry Grennan on #21305

    Hi Brajesh,

    No I haven’t overwritten that file

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

    Hi Barry,
    That seems very strange.

    Can you please tell me if BuddyPress shows you other notifications?
    This is the line(standard buddypress template notices).

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

    That is used to print template notices, if possible, Can you please put temporarily somewhere in your template and check.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Barry Grennan on #21331

    Hi Brajesh,

    I was able to get notifications working last night by replacing

    <?php if ( ! did_action( 'template_notices' ) ) : ?>
    	<?php do_action( 'template_notices' ); ?>
    <?php endif; ?>

    with
    <?php bp_nouveau_template_notices();?>

    But there’s still the issue of the page refreshing. So if the user has written a long message but neglected to put in a subject their entire message will be lost.

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

    Hi Barry,
    Thank you.
    I am glad you resolved it.

    You are right about that value being lost on reload. Just had a look at it. I will post an update in next 2 days with the solution.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved