Skip to Content Skip to Menu

Tailoring CB Gallery

1 year 2 months ago #334763 by huguesmarcil
Tailoring CB Gallery was created by huguesmarcil
Hello Krileon and CB team,
It appears that CB Gallery plugin is really close to my needs. It would be awesome if I could defintely use it but I need a few custumizations for a perfect fit.
How can I
1) Show on Registration the drag and drop field to upload one or more media? (checking the box in Fields Manager didn't make it, I suppose non-registered users are'nt able by default)
2) Automatically create an album containing the uploaded files (auto-action?)
Thank you for your help!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
1 year 2 months ago #334767 by krileon
Replied by krileon on topic Tailoring CB Gallery

1) Show on Registration the drag and drop field to upload one or more media? (checking the box in Fields Manager didn't make it, I suppose non-registered users are'nt able by default)

No, it only works with existing users.

2) Automatically create an album containing the uploaded files (auto-action?)

I'm not sure what you mean by this. CB Auto Actions can create albums and media, yes, but I don't know what you mean in regards to automating this on upload.


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.

1 year 2 months ago #334786 by huguesmarcil
Replied by huguesmarcil on topic Tailoring CB Gallery

No, it only works with existing users.

In that case, what would be a good workaround to offer uploading to non-registered users?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
1 year 2 months ago - 1 year 2 months ago #334789 by krileon
Replied by krileon on topic Tailoring CB Gallery
They would need to upload after registration or you'd need to consider using an image or file field if they're needing to upload some sort of critical document with their registration.


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: 1 year 2 months ago by krileon.

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

1 year 2 months ago #334808 by huguesmarcil
Replied by huguesmarcil on topic Tailoring CB Gallery
Hello Kyle,
Using both  this forms extension  and Community Builder API I was able to subscribe users and let them upload files at the same time.
Now how can I move the uploaded files to their owner's CB Gallery? The goal is to let the users see and edit their files just as if they had always used CB Gallery.
Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
1 year 2 months ago - 1 year 2 months ago #334815 by krileon
Replied by krileon on topic Tailoring CB Gallery
You'd need to insert a row into the CB Gallery database table and move the files to where CB Gallery expects them to be. CB Gallery database table is _comprofiler_plugin_gallery_items. Suggest uploading something so you can review how a row should look in that table. As for where to store the files they should be stored in the following structure.

/images/comprofiler/plug_cbgallery/USER_ID/MEDIA_TYPE/FILE

So for example if their user id is 30 and they uploaded a photo it would be placed in the following folder.

/images/comprofiler/plug_cbgallery/30/photos

Using both   this forms extension   and  Community Builder API  I was able to subscribe users and let them upload files at the same time.

I don't know why you'd need to do that. Image and File fields both allow upload during registration. You don't need a custom form to do that.


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: 1 year 2 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum