Skip to Content Skip to Menu

[SOLVED] Restrict Gallery to a specific GroupJive group

  • yeatea
  • yeatea
  • OFFLINE
  • Posts: 22
  • Thanks: 7
  • Karma: 1
3 years 1 week ago - 2 years 11 months ago #327072 by yeatea
Joomla 3.10
PHP 7.4
CB 2.6.4
CB Gallery 2.5.0
GroupJive 3.5.0

I wish to enable my users be able to make comments on uploaded images. CB Gallery would appear to be the way to enable this. However, I want to restrict this to one specific place, ie I do not wish to allow it at user profile level - so have restricted Gallery tab access to Superuser only. I wish to use a GroupJive group for this purpose, then only users belonging to the group can take part in image critique, and everyone knows where to find images awaiting comment.
I have therefore enabled the Auto Action - System action (CB Groupjive - Gallery). However this enables Gallery in all groups. Is there a way of using the Conditions associated with the system action to limit it to a specific GroupJive group?
Last edit: 2 years 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
3 years 1 week ago #327093 by krileon

I have therefore enabled the Auto Action - System action (CB Groupjive - Gallery). However this enables Gallery in all groups. Is there a way of using the Conditions associated with the system action to limit it to a specific GroupJive group?

Yes, make a copy of the "CB Groupjive - Gallery" system action then in your copy under Conditions add the following.

Field: Custom > Value
Custom Value: [var2_id]
Operator: Equal To
Value: GROUP_ID_HERE

Replace GROUP_ID_HERE with the actual ID of your GJ group.

As for limiting comments you'll need to make a copy of "CB Gallery - Comments" system action then under Conditions add the following in your copy.

Field: Custom > Value
Custom Value: [var1_asset]
Operator: Is REGEX
Value: /^groupjive\./

That should ensure gallery commenting is only available for GJ galleries and the above gallery condition should ensure the gallery only displays on your specific group.


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.

  • yeatea
  • yeatea
  • OFFLINE
  • Posts: 22
  • Thanks: 7
  • Karma: 1
2 years 11 months ago #327246 by yeatea
Thanks for your response, and apologies for the delay in responding.

At first I did not realise that the copy of the System Action appeared in the Auto Actions. However, once understood your solution worked perfectly.
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