Skip to Content Skip to Menu

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

GroupJive Files plugin making all files public

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 5 months ago #281805 by endoc
Thank you for the response.

I've configured 2 Auto Action scenarios based on the parameters that were provided.

My goal is to have an Auto Action that when I add a user to a GJ Group (in my case a committee) via the backend, that user will simultaneously be added to a Joomla Group. I can then use native Joomla ACL functions to enable viewing of various tabs or components.

Likewise, if I delete the user from the GJ userlist, I would like the auto action of removing that user from the Joomla group list. This should remove the permissions to that tab, etc.

After configuring the auto actions, I do not get the desired effect. When I add the user to the GJ Group, there is no change in the user's Joomla Group status.

Is my expectation appropriate for this Auto Action? Should these functions be working in the way I would like them to?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago - 8 years 5 months ago #281842 by krileon
Those triggers are specifically for user join and leave. If you're managing the user from backend/frontend you need to use the below triggers.

gj_onAfterCreateUser, gj_onAfterDeleteUser

Note the above will also fire for join and leave. So you don't need all 4, but just the above 2.


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.
Last edit: 8 years 5 months ago by krileon.

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

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 5 months ago #282015 by endoc
Thank you for the updated instructions.

Unfortunately, still not getting the action I am hoping for. No changes are observed in Joomla Group Status after creating a user in the desired GJ Group.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #282030 by krileon
Don't know what more to tell you. The below works perfectly fine in all my tests across 2 installs.

Global
Trigger: gj_onAfterCreateUser
Type: Usergroup
User: Automatic
Access: Everybody
Condition
1: [var1_group] Equal To GROUP_ID_HERE
Action
Mode: Add Usergroups
Groups: USER_GROUP_HERE

Global
Trigger: gj_onAfterDeleteUser
Type: Usergroup
User: Automatic
Access: Everybody
Condition
1: [var1_group] Equal To GROUP_ID_HERE
Action
Mode: Remove Usergroups
Groups: USER_GROUP_HERE

Enable debug mode and maximum error reporting in Joomla global configuration. Next under parameters of your auto action enable debugging. This will allow any condition fails or errors to output. Maybe you've a space in your condition string causing the substitution to break for example.


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