Skip to Content Skip to Menu

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

[SOLVED] GroupJive: Changing the catgory of a group on the front end.

11 years 6 months ago - 11 years 6 months ago #225446 by thoughtscape
I am automatically creating groups when a user is approved using a GJ Auto Integration trigger.

When I create the group I use a default category. I would like to allow the owner of the group to change the category but when the owner edits the group the category is non-editable.

Can group owners change the category from the front-end?
How is that enabled?

thanks

james
Last edit: 11 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225466 by krileon

Can group owners change the category from the front-end?

No.

How is that enabled?

Only CB Moderators can move groups. It's a heavy process (it has to move all information associated with the group) so allowing owners to do it could easily cause problems.


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.

11 years 6 months ago #225478 by thoughtscape
Thanks.

Hmmmm.....

Is it possible to create a CB Field that lists the categories in GroupJive? I'm sure that it is with a plugin.

That way the person registering the group could select the category that they want. When we approve the registration -- that's required for organizations -- we manually set the category from the backend.

I'm assuming that I couldn't just use a query auto action to change the group category?

james

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225481 by krileon

Is it possible to create a CB Field that lists the categories in GroupJive? I'm sure that it is with a plugin.

No, we've no fieldtype plugin that populates its values with a database query. I think such a plugin exists, but I don't recall what it's called or where to get it.

Assuming you're not creating Categories too often you could just use a dropdown select and manually populate it with category values, but it'll have no affect on the auto integrations because they don't allow you to supply a custom category unless you're also creating a category the same time you create the group.

I'm assuming that I couldn't just use a query auto action to change the group category?

There's no auto action for this, but suppose you could use a Code action then use PHP method to execute API to move the group, but again I do not suggest allowing this; endusers should not be doing such operations; say a group has 10,000 photos.. it will have to move all 10,000 of them and allowing users to do this freely as often as they like could easily kill your sites performance or the server all together. You should have them request a move using a custom form from an extension like RSForms then you or another moderator move the group when most optimal to do so; this helps avoid abuse.


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.

11 years 6 months ago #225512 by thoughtscape
Thanks Kyle.
Good point. We won't be changing the categories very often. I need to use a hierarchy though -- the categories are hierarchical. It might be easier to just write a plugin that creates a dropdown from the GroupJive categories.

That actually makes a lot of sense because organizations will be able to specify a category and memberrs will need to select multiple categories to indicate their interests. So I would use the combo field type as a base and have a parameter at the field level as to whether or not it is a single or a multiple select.

So in the new workflow...
When the organizatoin registers they will enter a name and select a category.
When the moderator approves the registration the group will be automatically created with a default category. Then the moderator will update the category of the organization's group.

Thanks!

james

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225538 by krileon

When the organizatoin registers they will enter a name and select a category.
When the moderator approves the registration the group will be automatically created with a default category. Then the moderator will update the category of the organization's group.

You can automate this, but you'll need to create an action for each category. First step is to create the group create action. Then add a conditional to it to check the category field. Then select the field to create the group in based off the condition value. Example as follows.

Conditional: [cb_gjcategory] Equal To Test1
Category: Test1

Now use the Copy feature to duplicate it, edit it, change Test1 to Test2 for example, enable it, rinse repeat until you've an action for each Category you've available. It is then fully automated.


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