Skip to Content Skip to Menu

Auto Action Usergroup set by Moderator?

  • Brigonos
  • Brigonos
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #208022 by Brigonos
Auto Action Usergroup set by Moderator? was created by Brigonos
I've created a field which consists of a dropdown list of usergroups. The field is only visible to moderators. The field is named cb_setrank.

What settings specifically would I need for a mod to pick a group from the list, and have it replace their current group with the new one?

I've tried many permutations. What I left off with is the following:

Trigger - OnAfterEditATab
Access - Everybody
Conditional - cb_setrank Equal To Recruit
Mode - Replace Usergroups
Groups - Recruits

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #208038 by krileon
Replied by krileon on topic Re: Auto Action Usergroup set by Moderator?
Change trigger to after profile update. Then change your conditional to [cb_setrank]. It should work fine then. Simply edit a user, change the field, save their profile, and it should replace their usergroups.


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.
The following user(s) said Thank You: Brigonos

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

  • Brigonos
  • Brigonos
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #208247 by Brigonos
Replied by Brigonos on topic Re: Auto Action Usergroup set by Moderator?
After making the changes, nothing seems to happen.

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

  • Brigonos
  • Brigonos
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #208249 by Brigonos
Replied by Brigonos on topic Re: Auto Action Usergroup set by Moderator?
Oh my God. Nevermind. I never published Auto Actions....

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

  • Brigonos
  • Brigonos
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
12 years 2 months ago #208251 by Brigonos
Replied by Brigonos on topic Re: Auto Action Usergroup set by Moderator?
I don't suppose you know what settings I'd use to update the user's kunena forum rank as well?

I know I need to change the rank value in the kunena_users table. But I don't know the code to use to achieve it.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #208277 by krileon
Replied by krileon on topic Re: Auto Action Usergroup set by Moderator?
Typically the rank is calculated from post count, but believe you can specify an override by updating the users row in _kunena_users and adjusting the "rank" column as needed. You'll probably need to specify the rank id as seen in _kunena_ranks.


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