Skip to Content Skip to Menu

[SOLVED] On site Activity Notification when new user is created from backend ?

  • cbertrand
  • cbertrand
  • OFFLINE
  • Posts: 47
  • Thanks: 5
  • Karma: 0
6 years 6 months ago #303379 by cbertrand
thanks

You mean there (see capture) ?



I tried different things, but without success (the last try as you see was with [var3_id] and [var4_id]).

But none worked.

Would you have an idea ?
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago #303381 by krileon
The notification will be sent to [var4_id] and for onAfterNewUser it isn't the right usage as var4 is just a boolean. That trigger is as follows.

Code:
$_PLUGINS->trigger( 'onAfterNewUser', array( &$this, &$this, false, true ) );

Basically for your usage the only relevant variable is [var1], which is the user object of the user registered.

Who are you wanting to send the notification to? The user that registered? Seams odd to send them an onsite notification that they've registered.


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.

  • cbertrand
  • cbertrand
  • OFFLINE
  • Posts: 47
  • Thanks: 5
  • Karma: 0
6 years 6 months ago #303382 by cbertrand
I want to send a notification to all the users that are allowed to see Notifications.

For that I restricted the CB Activity plug-in (and as a consequence, access to notifications) to a specific Joomla_Group (basically only the people of my office).

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago #303383 by krileon

I want to send a notification to all the users that are allowed to see Notifications.

Then you need to send a global notification. Set both owner and user to [user_id]. Then down below towards the bottom set Global to 1 or true.


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.

  • cbertrand
  • cbertrand
  • OFFLINE
  • Posts: 47
  • Thanks: 5
  • Karma: 0
6 years 6 months ago #303386 by cbertrand
Yes yes yes
Works great :silly: :laugh:

Thanks a lot for 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