Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_before_profile_avatar_upload_content obsolete !!?


  • HDcms
    Participant

    @hdcms

    Hello

    I just switched to the latest version of BP.
    I did a function that showed me a message.
    It is no longer displayed and I have a BP record that says
    “If there is a Gravatar associated …”
    I would like to delete this notice and instead put my message
    see my old program

    add_action( 'bp_before_profile_avatar_upload_content', 'profil_affiche_msg_edit_photo' );  
    function profil_affiche_msg_edit_photo() {
    	$deb ='[su_shadow style="horizontal" class="note-info"][su_note note_color="#6AE9F5" text_color="#000" radius="8"]' ;
    	$fin ='[/su_note][/su_shadow]';
    	$message = <<<EOT
    	<b>Merci ...</b>
    EOT;
    	$message = nl2br($message); // évite le retour à la ligne avec br
    	echo $deb .$message .$html .$fin ;
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)

  • Venutius
    Moderator

    @venutius

    Hi there, presumably you have changed to the BP Nouveau theme, in this case the action hook name has changed from bp_before_profile_avatar_upload_content to bp_before_member_avatar_upload_content.


    HDcms
    Participant

    @hdcms

    Hi @venutius
    That’s right, I put again theme.
    I will test. Is there a list of changes of the same type? for this new theme!
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar