Skip to Content Skip to Menu

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

Auto Actions

  • Amicus72
  • Amicus72
  • OFFLINE
  • Posts: 14
  • Thanks: 5
  • Karma: 1
9 years 3 months ago - 9 years 3 months ago #267320 by Amicus72
Auto Actions was created by Amicus72
Hello,

i'm trying to do the following:

I have a chat with my CB website, and inside this chat (123flashchat) there are chat credits you earn by being in chat. You can spend credits for giving other users so called gifts, things like a rose or a heart and stuff like that which is an animated in chat then via flash. Furthermore you can buy a "VIP Membership" that gives you several advantages in chat. The amount of chat credits a user has is stored in a database field named "credits"

1st problem is that this field is not created until you log in into the chat for the first time.
I want it to be created during registration, and it would be cool if i could give users some credits as a gift to start with.

2nd i want to be able to add a specific amount of credits to a user if he fills out his profile 100% or for example if he makes a new post in kunena forums and so on.

Is it possible to do that with auto actions?
Last edit: 9 years 3 months ago by Amicus72.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267352 by krileon
Replied by krileon on topic Auto Actions

1st problem is that this field is not created until you log in into the chat for the first time.
I want it to be created during registration, and it would be cool if i could give users some credits as a gift to start with.

Use a Query action on the after registration trigger and you can do whatever you need to add your credits field. Shouldn't have to do this if it's just a CB field though. Credits can be done the same way by directly inserting the points into the database. If your extension has PHP API that you can use you could also use the Code action to execute it.

2nd i want to be able to add a specific amount of credits to a user if he fills out his profile 100% or for example if he makes a new post in kunena forums and so on.

You could condition for various fields to be completed on the profile update trigger or use CB Progress Field to track the progress then condition for its value to be 100. You would then use a Query or Code action to add points as needed. As for Kunena it maybe possible if you've configured Kunena to integrate with CB. See the CB Activity system action for logging activity on post as it could be copied then modified to add points instead.

In short it's probably doable, but I didn't write your points system or chat extension so I will not be able to help you more specifically and you'll need to be familiar with both their database structures or APIs.


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: Amicus72

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

  • Amicus72
  • Amicus72
  • OFFLINE
  • Posts: 14
  • Thanks: 5
  • Karma: 1
9 years 3 months ago #267392 by Amicus72
Replied by Amicus72 on topic Auto Actions
Thanks krileon,
i'll give it a try.

I was also told there's a plugin named alpha user points out there which adds a points system to a community. i will check if it is possible to connect both point systems to one, but i think this will be much more complicated as building it with CB....

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267413 by krileon
Replied by krileon on topic Auto Actions
I've no idea if AUP is still maintained, but yes it's a points system. CB does not integrate with AUP anymore though, but it's possible to add points using a Code action and AUP API or a Query action and directly inserting into the database.


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