BuddyDev

Search

BuddyPress Force profile Photo : Redirect

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28691

    Hi Brajesh,

    How can redirect my users to a specific page after they upload their profile picture ?

    Regards,

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #28696

    Hi Granmeh,
    No, It is not doable currently. The reason is profile uploads are handled via ajax request and you need to save it in the database if you want to redirect on next request(which is not intuitive for user).

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28742

    Hi Brajesh,

    Alright I got it. So I could I refresh the page after the loading ?

    Regards,

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #28746

    Hi Granmeh,
    Yes, That is correct.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28749

    Do you know how can I do that ?

    It would be awesome !

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #28750

    Hi Granmeh,
    I have posted the code for in our forums a few months ago for the same.

    I will search and link.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28751

    Thanks a lot !!

    Regards,

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #28753

    Hi Granmeh,

    I was unable to find one on our forum, so I create a gist for the same.

    https://gist.github.com/sbrajesh/b3b7346bb3fd5b868a5c3d56e8c9944d

    Please give it a try.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #28754

    I added the code in my bp-custom file but nothing happened after I loaded the picture.

    The refresh page after the successuful loading of the picture is for removing the “BP Force Profile” message.

    PS : I’m using “BP Force Profile Photo” + “BuddyPress Avatar Moderator”.

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #28755

    Hi Granmeh,
    Did you upload to your own profile or someone else’s .

    I just tested this and it is working for me properly.

    Other plugins should not have effect on it.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved