BuddyDev

Search

[Resolved] Avatar Moderation

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

    Hey,

    Before to approve or reject avatars, how can I make them not visible (the member) for the member directory until they are approved?

    Regards,

    Granmeh

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #25501

    Hi Granmeh,
    Thank you for the question. It is certainly doable.

    Please allow us to help with with some code tomorrow. I am also thinking of adding it as an option in the plugin. It seems good to me.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #25512
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #25543
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #25570
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #25585
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #25586
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 38
    Granmeh on #25587

    It’s weird because it’s still doesn’t work.

    But in Mysql db, I’ve got a table name “mod221_usermeta” and row name ‘has_avatar’ with the flag “1” if an user has one (profile picture).

    Could It help for my issue ?

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

    My apologizies, the code works only when an user it’s in the queue.

    But how can I make his profile invisible on the member directory until his first profile picture ?

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #25597

    Hi Granmeh,
    Thank you.

    That was the intended purpose of the code. To hide the members in the moderation queue.

    BuddyPress does not store the state of an avatar in database. The meta “has_avatar” is most probably coming from on of our plugins(profile completion or moderation or force profile photo).

    I can write the code to test for the existence of this meta. Please do know that it will make all the users without this meta vanish from directory. Is that ok?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved