Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Email instead of notification on Activity @Mention

  • jcrimmel
  • jcrimmel
  • OFFLINE
  • Posts: 44
  • Thanks: 9
  • Karma: 2
1 month 3 weeks ago #339480 by jcrimmel
These parameters and substitutions are new to me, so I really appreciate your help. Seeing the actual strings for what I need really helps to understand the examples better. Your answers to both my questions 1 and 2 worked well, but I may not have been very clear on question 1.

In my setup let's say I have 3 users, ProfileOwner, MentioningUser, and MentionedUser. Under the Profile for ProfileOwner there is an activity stream where MentioningUser will write a comment and tag MentionedUser. AutoActions already sends out an email notification to MentionedUser letting them know they were mentioned by MentioningUser and now shows the full message (thanks again). What I would love to have in that email is the name of the ProfileOwner and a cb_userfield that belongs to that ProfileOwner. For example:
MentioningUser mentioned you in a post under (ProfileOwner's FORMATNAME) - (ProfileOwner's [cb_address])

"@Support, OrionHFH Software This is the message that MentioningUser left under the activity stream found on the profile for Profile Owner"

Link to view the notification on the site

In this example I now have everything working except the two parts in bold. Which is what my question 1 from before was trying to explain.

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

  • jcrimmel
  • jcrimmel
  • OFFLINE
  • Posts: 44
  • Thanks: 9
  • Karma: 2
1 month 3 weeks ago #339481 by jcrimmel
Yes mentions are enabled. They show up fine on both the front end and in the [cb:parse function="getNotificationTitle" class="var2" length="0" /] of the AutoAction email that is sent. But using [var2_message] in that same AutoAction email it shows something like "(mention:723923) this is a new test"

So in the AutoAction email I see this:
[cb:parse function="getNotificationTitle" class="var2" length="0" /] = @Support, OrionHFH Software this is a new test
[var2_message] = "(mention:723923) this is a new test"

This works fine now since I know how to change the trunc length to 0. I can just use [cb:parse function="getNotificationTitle" class="var2" length="0" /] instead of [var2_message]

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 3 weeks ago #339482 by krileon

In my setup let's say I have 3 users, ProfileOwner, MentioningUser, and MentionedUser. Under the Profile for ProfileOwner there is an activity stream where MentioningUser will write a comment and tag MentionedUser. AutoActions already sends out an email notification to MentionedUser letting them know they were mentioned by MentioningUser and now shows the full message (thanks again). What I would love to have in that email is the name of the ProfileOwner and a cb_userfield that belongs to that ProfileOwner. For example:

Ah, hmm. I'm not sure that'll be entirely doable without PHP and using substitutions alone. Maybe it'd be easier to just link to the activity post directly? That is supported and would probably be easier. So for example "X mentioned you in Y post" with "Y post" being linked to the post? Linking to a post is just a matter of using the following URL.

index.php?option=com_comprofiler&view=pluginclass&plugin=cbactivity&action=activity&id=POST_ID_HERE

Example using substitutions from your current trigger as follows.

index.php?option=com_comprofiler&view=pluginclass&plugin=cbactivity&action=activity&id=[var2_id]

I recommend adding &Itemid=MENU_ID_HERE if you also want it associated with a Joomla menu item.

But using [var2_message] in that same AutoAction email it shows something like "(mention:723923) this is a new test"

Ah, yeah that's working as intended then. That just gives you the raw database stored message of a post. It'll have no processing applied to it. You should only need to use getNotificationTitle.


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.

  • jcrimmel
  • jcrimmel
  • OFFLINE
  • Posts: 44
  • Thanks: 9
  • Karma: 2
1 month 3 weeks ago #339483 by jcrimmel
Thanks, this will work just fine. I appreciate all of your help! 
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum