Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

How to notify profile owner if someone writes a comment onto their profile?

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago #277677 by timstohr
Hey Kyle,

I need that the profile owner gets notified if someone writes onto their profile. How do I do that?

All it needs to say is "Someone has just written a comment onto your profile, please have a look [link to profile]."

Would be great to have this option in comment field to start with :D

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277705 by krileon
CB Activity comes with several triggers that you can act on using CB Auto Actions. You can send a PM or Email as needed using CB Auto Actions acting on those triggers.

Notifications will not be implemented until a generalized plugin has been developed that handles notifications as it's getting exhausting maintaining a dozen different notification implementations so for now it's done through CB Auto Actions. The planned plugin is CB Notifications, which will have built in PMS and handle 3 different notification types (PM, Email, and on-site like Facebook).

Below usage for example should do what you're wanting assuming you're using a comment field for example.

Global
Triggers: activity_onPushComments
Type: Private Message
User: User
Access: Everybody
Condition
1: [var2_type] Equal To field
2: [var2_parent] Not Equal To [user_id]
Action
From: [user_id]
To: [var2_parent]
Body: [var2_message]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago - 8 years 8 months ago #277738 by timstohr
Hey, Ok I am starting to understand the theory behind it. I have to instruct CBActivity to take over the comment field activity as well no?

EDIT: I am indeed talking about a comments field on the persons profile and not about comments on their activity stream.

Also, Activity is like the activity stream for everything that happens on CB, that concerns each single person? ie like a "what is new on the website" stream but down to each user account?

I could, theoretically speaking, also feed streams in there from ie the marketplace (which uses a third party plugin with RSS feed) and then push notifications to the owner of the stream using CB auto actions? that would work no?
Last edit: 8 years 8 months ago by timstohr.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277755 by krileon
If it's a comment field then the above should work fine.

Also, Activity is like the activity stream for everything that happens on CB, that concerns each single person? ie like a "what is new on the website" stream but down to each user account?

It's an Activity stream in the sense it's designed after Facebook and Google+. It's meant to function and be used just like the major social sites streams. The design is intended to be familiar for the end user if they've every used either of those.

I could, theoretically speaking, also feed streams in there from ie the marketplace (which uses a third party plugin with RSS feed) and then push notifications to the owner of the stream using CB auto actions? that would work no?

I suppose you could. CB Auto Actions can log activity directly. There's several system actions already doing this based off triggers.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago #277781 by timstohr

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/joomlapolis824/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 1435
Short question because I cannot seem to make it work (possibly because I have set up the Pm system wrongly, I dont use it...). I would like to send an email but how do I make it so that it sends it to the email of the owner of the profile? simply [user_id]? or simply

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277835 by krileon
The issue is the user of that's firing the trigger is not the displayed user. This means if you try to use the email substitution it won't work and will just send it to the user posting the comment. I've added a feature ticket to implement user id recipient for the email action, but it probably won't anytime soon as I've other projects that need attention (atm CB Connect).

forge.joomlapolis.com/issues/5787

Also added a feature ticket to add additional variables to that trigger so it's easier to grab the recipient user variables.

forge.joomlapolis.com/issues/5788

I don't really have a solution at this time. You can try using the below, but I don't know if it'll work.

[cb:userdata field="email" user="#displayed" /]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum