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] Using CB Auto Actions - Generate category and folders in JoomDOC Component?

  • jsrunder
  • jsrunder
  • OFFLINE
  • Posts: 33
  • Thanks: 4
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #277242 by jsrunder
Hello...

Is it possible to generate a category and about five folders within that category, in JoomDOC component using CB Auto Actions?

Example:

A New User is created in CB. At that time, automatically there is a category created in JoomDOC named as the New User, while at the same time, create and name about five more folders/categories within the New User named category.

Can this be done? Tips? It really seems like an awesome solution.

Thank you!!
Last edit: 8 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277260 by krileon
I don't know, We're not JoomDOCs developer so I've no idea if you need to be using API or a simple SQL. If you want to do this on user create then you'd act on the onAfterNewUser and onAfterUserRegistration triggers then use a Code action if you need to use PHP for API or use a Query action if you can use a simple SQL query.


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.

  • jsrunder
  • jsrunder
  • OFFLINE
  • Posts: 33
  • Thanks: 4
  • Karma: 0
8 years 8 months ago #277314 by jsrunder
Hello!

Thank you for this info. Programmer/Developer pride in their product shows through again. I sent your note to the folks at Artio (JoomDOC), and they kindly responded with answers to your questions about using the JoomDOC API, may be all we need to get to the next step.

I don't know if I should post it here, or if it's sort of protected info as I have an advanced subscription there as well.

How can I get this info to you without posting here?

Thank you!!

J

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277338 by krileon
There's nothing I can do with that info. You need to use the API in a Code action with Method set to PHP. Consult with them further if you've any questions regarding their API usage. Your initial auto action configuration should be as follows.

Global
Triggers: onAfterNewUser, onAfterUserRegistration
Type: Code
User: Automatic
Access: Everybody
Action
Method: PHP
Code:
Code:
YOUR_API_USAGE_HERE


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.

  • jsrunder
  • jsrunder
  • OFFLINE
  • Posts: 33
  • Thanks: 4
  • Karma: 0
8 years 8 months ago #277577 by jsrunder
Hello, and thank you Kyle...

I set up an Auto Action for this, but now when I create a New Registration, after I hit the Submit button, the system sends the request and upon return from server, I get a blank page.

Curious, on the Action tab in the plugin config page, the last option is, as you know, Return. What should be entered there? Default is 'echo'.

I will do some more testing. Thank you much for the initial info.

FYI, thought I would add the code entered for this action:


Part of the message is hidden for the guests. Please log in or register to see it.



I will also share with the fine folks at Artio.

Best regards...

J

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago - 8 years 8 months ago #277589 by krileon
Do not include PHP tags in your code (remove <?php and ?>). It executes your code as an inline anonymous function. Be sure to enable debug mode and maximum error reporting in Joomla global configuration so errors can output. Your code doesn't need a return so it can be set to Silent.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum