Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

Use Case related to Activity and Privacy settings

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
4 years 10 months ago - 4 years 10 months ago #316166 by liaskas
Parent Group:
- - Child group:

What i want is...

Child group user activity's asset to be profile.[user_id].childgroup

Now it is profile.[user_id].parentgroup

I tested again 1 min ago.

I can not give a simpler explanation! The asset is stored as the post is from the parent group!

And i certainly did not change the asset!



I can send child category user credentials and backend access in case something is still not clear!
Attachments:
Last edit: 4 years 10 months ago by liaskas. Reason: Attached screenshot

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
4 years 10 months ago - 4 years 10 months ago #316184 by krileon
There is no substitution for outputting usergroup directly. What do you have the asset set to? I've already provided you an example for how to do this based off another fields value below. I've also explained how asset functions when there are multiple

www.joomlapolis.com/forum/153-professional-member-support/241980-use-case-related-to-activity-and-privacy-settings?limitstart=0#316137

You can do this with usergroup IF substitutions as well. Example as follows.

Code:
[cb:if usergroup includes "2"]profile.[user_id].usergroup2,[/cb:if]profile.[user_id].usergroup1

The above would output the following asset if the user has the usergroup with an id of 2.

profile.60.usergroup2,profile.60.usergroup1

These conditions are based off the profile owner. They are not based off the viewing user. If you need them based off the viewing user then you need to set user="#me" in the if conditions like the following.

Code:
[cb:if user="#me" usergroup includes "2"]profile.[user_id].usergroup2,[/cb:if]profile.[user_id].usergroup1


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: 4 years 10 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum