Doesn't have to be your system admin. You can create a regular registered user for the sole purpose of holding onto groups.1. If I set as owner the system Admin, he will have a ton of groups created in his profile by various users.
You can use CSS to hide them under the Users tab or just not display the Users tab at all.2. With the above, in all groups created, the owner appears to be the system Admin.
Use substitution parameters to specify who you want the information to come from. For example the below would output cb_company for the user who fired the trigger.3. During group creation I use "Some text [cb_company]" as group name. What happens is that every group, instead of showing Admin's company name, it shows system Admin's company.
Please Log in or Create an account to join the conversation.
Will it be ok for a user to have hundreds of groups? Is there a limit?Doesn't have to be your system admin. You can create a regular registered user for the sole purpose of holding onto groups.
I will try to see how to implement thisYou can use CSS to hide them under the Users tab or just not display the Users tab at all.
Yes, this way [cb:userdata field="cb_fieldgrp__0__cb_company" user="[var1_user_id]" /] it worked an brought Admin's company. It is not during registration but onAfterUserApproval. Perfect, thanksUse substitution parameters to specify who you want the information to come from. For example the below would output cb_company for the user who fired the trigger.
[cb:userdata field="cb_company" user="#me" /]
You also have access to the trigger variables itself and if it's a registration trigger then you've access to the raw user data via var1 substitutions. Example as follows.
[var1_cb_company]
The below will also work.
[cb:userdata field="cb_company" user="[var1_user_id]" /]
Inside the active tab a user sees when visits a profile, I have some fields and I need one of them to be a link to the specific group and the specific tab of that group "Users".Not sure I understand the need for this given you already have a Group tab visible on their profile that will display it and link to it.
I tried index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=groups&func=show&id=3#cbtabpanegrouptabusers but it doesn't take me to users tab directly. How can I do this?At any rate the non-SEF URL that you should use is as follows.
index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=groups&func=show&id=GROUP_ID_HERE
Thanks, I will try to work it outYou will need access to the group id. How you get that is entirely up to you. You could store it after creating the group, you could use a Code Field to use PHP to get their group, you could use a Query Field to use SQL to query for it.
Please Log in or Create an account to join the conversation.
Yes. There is no limit. My local test has my admin user owning over 100,000 groups. It's performance tested to scale.Will it be ok for a user to have hundreds of groups? Is there a limit?
Add &tab=TAB_NAME_CLASS_OR_ID_HERE to the URL to link to a specific tab. So for example &tab=Users should work.I tried index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=groups&func=show&id=3#cbtabpanegrouptabusers but it doesn't take me to users tab directly. How can I do this?
Please Log in or Create an account to join the conversation.
Perfect, I will do as you say.Yes. There is no limit. My local test has my admin user owning over 100,000 groups. It's performance tested to scale.
Yes, that worked, thank you.Add &tab=TAB_NAME_CLASS_OR_ID_HERE to the URL to link to a specific tab. So for example &tab=Users should work.
I have implemented this but I can't find how to set it only for the specific group category. .gjGroupUsersUserOwner hides all the owners from all groups under Group tab no matter the category. The group category id that I need to hide its owners is 1 and I can't find something like .gjCategories to narrow it down. Is there another way of doing it?You can use CSS to hide them under the Users tab or just not display the Users tab at all.
Please Log in or Create an account to join the conversation.
There isn't a CSS class on that page that's category specific. Probably the only way to have conditional CSS like that is to use CB Auto Actions. A code action on gj_onBeforeDisplayGroup can accomplish this as you'll be able to condition against the group category id using the below.I have implemented this but I can't find how to set it only for the specific group category. .gjGroupUsersUserOwner hides all the owners from all groups under Group tab no matter the category. The group category id that I need to hide its owners is 1 and I can't find something like .gjCategories to narrow it down. Is there another way of doing it?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.