Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notification to user after saving profile changes


  • applegateian
    Participant

    @applegateian

    Hi

    When a user edits their profile by changing some xprofile fields, they hit save. The page loads, saves the changes but provides no notification to the user that it has been successful.

    However, when they Change Avatar and save the page, a notification IS provided to the user.

    Is there a way to provide the notification on edit profile too?

    Thanks,

    Ian

Viewing 6 replies - 1 through 6 (of 6 total)

  • Henry
    Member

    @henrywright-1

    Hi @applegateian

    Make sure you have <?php do_action( 'template_notices' ); ?> in the edit.php template. The template notices hook on to this action.


    applegateian
    Participant

    @applegateian

    OK thanks @henrywright-1

    Do you know where it should go? It’s not currently in my edit.php file


    Henry
    Member

    @henrywright-1

    Right at the very top would be a good spot. It doesn’t really matter though as it will just determine where on the page the template notice text is displayed.


    applegateian
    Participant

    @applegateian

    Thanks @henrywright-1

    It doesn’t seem to make any difference. As I said, my change-avatar page does show a notification, but I just checked change-avatar.php and that doesn’t have <?php do_action( 'template_notices' ); ?> in it either, so I’m not sure how it’s working.

    Any ideas?


    Henry
    Member

    @henrywright-1

    <?php do_action( 'template_notices' ); ?> could be in a template file upstream such as home.php or member-header.php? It depends on your theme. As to why it isn’t working after profile edit – this could be down to your theme. Have you made any theme customisations? Do you get a confirmation message when using the default theme?


    applegateian
    Participant

    @applegateian

    Ok so <?php do_action( 'template_notices' ); ?> is referenced in member-header.php

    I have modified edit.php @henrywright-1 – as we’re not using the sub menu of activity, forums, etc.I just have profile and change avatar.

    It’s been a while since this file was edited, but I’m wondering if it’s this line that’s affecting the notices:

    	<?php    bp_profile_group_tabs_exc_empty(); ?>
    

    I’ll try with the default theme too and see what happens.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Notification to user after saving profile changes’ is closed to new replies.
Skip to toolbar