Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

how to create user of external of comprofiler

  • saman2
  • saman2
  • OFFLINE
  • Posts: 408
  • Thanks: 7
  • Karma: -1
6 years 11 months ago - 6 years 11 months ago #301338 by saman2
hi.
i study this doc:
www.joomlapolis.com/documentation/18362-registering-a-user-through-cb-apiregister the user through API
but
1- i don't understand how to set value for some additional field that i created through CB field management
2-how to set avatar from outside?
3- i'm using something such as RSFORM for get user information and i want set that field on CB...i don't have any problem for get information from that extension but how to set in CB field...are you suggest me to use query?i guess it is maybe not safe
Last edit: 6 years 11 months ago by saman2.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
6 years 11 months ago #301364 by krileon
Replied by krileon on topic how to create user of external of comprofiler

1- i don't understand how to set value for some additional field that i created through CB field management

That's explained at the bottom of the tutorial.

2-how to set avatar from outside?

You can't unless you implement the entire image processing chain.

3- i'm using something such as RSFORM for get user information and i want set that field on CB...i don't have any problem for get information from that extension but how to set in CB field...are you suggest me to use query?i guess it is maybe not safe

Review the _comprofiler table if you're wanting to direct database updates, but it won't fire any CB triggers doing this.


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

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

  • saman2
  • saman2
  • OFFLINE
  • Posts: 408
  • Thanks: 7
  • Karma: -1
6 years 11 months ago - 6 years 11 months ago #301366 by saman2

krileon wrote: You can't unless you implement the entire image processing chain.

1-
1-1 can you more describe about this?is there any function to use that for image processing chain?
1-2 if i have pic url can i do any work for that to set as avatar in CB?
1-3 what is the final return image processing steps?

2- when i use cb api, all trigger or something such as validation will be run?
Last edit: 6 years 11 months ago by saman2.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
6 years 11 months ago #301372 by krileon
Replied by krileon on topic how to create user of external of comprofiler

1-1 can you more describe about this?is there any function to use that for image processing chain?

No, as it would mean writing a custom function to process images. You could checkout how CB Connect does this, but that's our only example for this.

1-2 if i have pic url can i do any work for that to set as avatar in CB?

I guess if you added it to a text field then used HTML in the layout to turn it into an img tag that'd work, but beyond that no the avatar field is not going to process a URL you pass to it into an image.

1-3 what is the final return image processing steps?

It's significantly too complicated for me to explain here, sorry. If the image is a URL you need a server side HTTP request to request the contents then process it using API to resize, rotate (if EXIF data exists), and save. I entirely feel this is not worth the effort for you to try to implement and suggest just leaving the image uploading to profile edit.

2- when i use cb api, all trigger or something such as validation will be run?

The API tutorial is for direct stores. The tutorial does include trigger usage. No it will not validate anything as it's a direct store.


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
6 months 2 weeks ago #338284 by krileon
Replied by krileon on topic how to create user of external of comprofiler
Link was broken when we went from Joomla 3 to Joomla 5 due to URL structure change. I've implemented a 404 redirect using CB Redirect Bot to fix those older links. Should work fine now and have also edited the article with the correct links.

In regards to your Google search results the only results broken are old archived forum posts that we've now deleted since they were 10+ years old. Some seam to just be pointing to the wrong section entirely (e.g. /documentation instead of /faq) probably from an old URL being indexed.

Please let me know if you've any further issues reaching pages and will be sure to fix their redirectors.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum