notification in conversation

    • # il y a 2 années et 3 mois

      Hi,

      i have a quick question,

      when using conversation and notification add on, every time an answer is written, everybody gets an email, even the user that wrote the answer.

      is it possible with a code snippet to change the behavior, and only the receiver in the conversation get an email when an answer is created ?

       

      thanks

    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois

      Hi,

      every time an answer is written, everybody gets an email

      What do you mean by “everybody”? Actually, with WP Customer Area, a content can be assigned to multiple users, or even to groups. If you create a private content, all users from the assigned group should be notified of a file creation for instance.

      Do you mean that you just want administrators to not be notified?

      Regards.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

    • # il y a 2 années et 3 mois

      Hi Thomas,

      let me give more details! 🙂

      I’m using severals add ons, conversation, notification and managed group.

      let say I have a conversation between a manager and a user in the managed group :

      when any of the 2 is writting an answer, both will receive a notification …

      could we only have the recipient of the answer get a notification?

      Thanks,

      Francois

    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois

      Hi,

      Yes, but, you can set many recipients.

      Do you mean instead, that you want the person posting a reply to not receive a notitification?

      Regards.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

    • # il y a 2 années et 3 mois

      Hi thomas, that’s true we can set many recipient.

      Do you mean instead, that you want the person posting a reply to not receive a notitification? 🙂 yes that’s exactly what is needed!

       

      Thanks,

       

      Francois

       

       

       

       

    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Hi,

      That should already be the case : the currently logged-in user is excluded from the recipients of any notification.

      let say I have a conversation between a manager and two users A and B in the managed group

      So in that case, potential recipients are the manager and the users A and B.

      • When the manager is replying, a notification should go out to A and B (not himself)
      • When A is replying, a notification should go out to the manager and B (not himself)

      Could you have a look at the plugin logs (in the admin interface, you have a log menu) and check out which notification goes to whom when pushing the button? Both when logged in as the manager and when logged in as the user.

    • # il y a 2 années et 3 mois

      Hi,

       

      thanks for the info,

      here is what we get when a reply is sent (in picture)

      a notification from the sender and a notification to the recipient.

      I agree, only the recipient should receive the notification 🙂 that would be best.

       

      thanks,

    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Avez-vous des filtres dans un plugin personnalisé sur les notifications ?

    • # il y a 2 années et 3 mois

      Merci de la question, j’ai effectivement 2 plugins personnalisé pour WP customer, mais pas de customisation sur la partie des notifications… du moins, je vois pas de filtre au premier regard qui pourrais changer le fonctionnement de cela…

      voulez vous que je dépose les 2 plugins en Zip sur le support ?

    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Essayez d’ ajouter le bout de code suivant dans votre plugin custom :

       

      function cuar_disallow_notification_to_self($is_allowed, $recipient_id, $notification_id, $post_id, $notif_settings, $extra)
      {
          // You can customize this to allow for type of notifications and not for some other types.
          return false;
      }
      add_filter('cuar/notifications/allow-notification-to-self', 'cuar_disallow_notification_to_self', 10, 5);
      
      
    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      C’est assez bizarre. Avez-vous possibilité de débogguer ça ? Y-a-t-il des logs PHP en erreur dans les fichiers de log serveur ?

    • # il y a 2 années et 3 mois

      je vous joins la capture d’écran de ce qui se passe ….

      je vais voir si je vois quelque chose dans les logs…

    • # il y a 2 années et 3 mois

      non, il ne détecte pas d’erreur d’après le log sur cpanel ..

      et je viens de confirmer avec un autre utilisateur du site le même freeze en cliquant sur terminé …

       

    • # il y a 2 années et 3 mois

      est ce que je ne devrais pas plutôt ajouter le snippet dans function.php ? est ce que cela serait mieux ?

       

    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Vous avez des logs dans la console Javascript du navigateur ?

    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Il faut chercher dans les logs PHP la raison de cette erreur 500.

    • # il y a 2 années et 3 mois

      Re-

      J’ai cherché malheuresement,  je ne vois rien de mon côté qui me permet de réparer l’erreur 500.

      si je désactive le snippet, je n’ai plus l’erreur, tout refonctionne normalement…sauf que l’expéditeur du message reçoit lui aussi la notification…

       

    • Vincent Mimoun-Prat
      Maître des clés
      # il y a 2 années et 3 mois

      Une erreur 500 c’est un problème de syntaxe dans un fichier PHP par exemple. Il y a dans vos logs une trace de la cause de cette erreur, c’est certain. Il n’est pas normal que vos logs ne fassent pas ressortir cette erreur.

    • # il y a 2 années et 3 mois

      merci, mais je ne trouve pas…

      est il possible de vous demander un devis pour m’aider sur ce point ?

      Merci,

      Francois

       

    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois

      Bonjour,

      Si vous ne trouvez pas votre fichier log, vous pouvez passer WP_DEBUG à true et on pourra voir l’erreur s’afficher en frontend dans Chrome -> Réseau -> admin-ajax.php > Réponse.

      Aussi, veuillez svp mettre à jour WP Customer Area et ses extensions. Les extensions que vous avez actuellement ne sont pas compatibles avec votre version de WP Customer Area.

      Nom Version actuelle Version recommandée
      WP Customer Area – Additional Owner Types 6.0.1 6.0.0
      WP Customer Area – Authentication Forms 6.0.1 6.0.0
      WP Customer Area – Conversations 5.0.1 5.0.0
      WP Customer Area – Design Extras 2.0.1 2.0.0
      WP Customer Area – Front-office publishing 5.0.1 5.0.0
      WP Customer Area – Managed Groups 5.0.1 5.0.0
      WP Customer Area – Notifications 7.0.1 7.0.0
      WP Customer Area – Owner Restriction 5.0.1 5.0.0
      WP Customer Area – Unread documents 2.0.1 2.0.0

      Cdlt.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois

      Merci pour l’info concernant les extensions. je vais checker les mises a jour, la dernière fois que j’ai tenté la mise a jour… tout était cassé …

      Avez-vous suivi la procédure de mise à jour ? (Cf section documentation)

      Cdlt.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

    • # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois

      Bonjour,

      Pouvez-vous svp remplacer la fonction donnée par Vincent par celle-ci svp ? Cela résoudra ce soucis (il y’avait une mini erreur dans le code pas facile à repérer à l’œil nu en relecture).

      function cuar_disallow_notification_to_self($is_allowed, $recipient_id, $notification_id, $post_id, $notif_settings, $extra)
      {
          return false;
      }
      add_filter('cuar/notifications/allow-notification-to-self', 'cuar_disallow_notification_to_self', 10, 6);

      Cdlt.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

    • # il y a 2 années et 3 mois

      Bonjour,

       

      Merci beaucoup, ça a l’air de fonctionner 🙂

       

    • Thomas
      Maître des clés
      # il y a 2 années et 3 mois
      Cette réponse a été marquée comme étant privée.
Vous lisez 31 fils de discussion

The topic ‘notification in conversation’ is closed to new replies.