The "CB Gallery - Privacy - Authorized" system action is responsible for enforcing the privacy. So you could make a copy of it and make whatever adjustments you like. It's using variable looping ...
Thanks for this one :-)
And for the second question, is there any trigger allowing to override the privacy settings of a gallery item within a gallery folder marked as private ?
I'd like to force view ...
Can this trigger display something under the thumbnail ? for instance left of the file icon or right of the date field ?
That would be perfect for the use
Also as I added
$item->set('user_id', $user->id);
$item->set('value', ...
Correct, it's comparing the viewing user id against the profile user id since substitutions in CB Conditional are default from the profile owner.
It's unfortunately not really possible since substitutions ...
Daaaaaamn. This my first foray into CB Conditional, and I was not aware of the scope of its capabilities. That's quite a Swiss Army Knife of capabilities! I'm certain it is going to be useful, including ...
Probably easier to do that with CB Conditional. The below should work.
Display: Field conditional show
Condition 1
Field: Users
User: Viewing User
Operator: Is
Value: 0
On: Profile View and Userlists ...
... it to the profile and not necessarily the purchase. It might also be possible to add something pretty basic using CB AutoActions, but would still require some degree of coding.
Additionally where is ...
HTML support for descriptions is not going to be added, sorry.
Best I can suggest is add to the params of the item then implement custom display of that param. A trigger is how CB Activity adds Likes ...
You can just give them a subscription directly by editing them in CB > User Management.
If you want to bypass the entire basket and payment flow entirely I suppose you could give all new registrations ...
Yeah that's what I did...
however a space to add a link to their profile would have been perfect ;-)
The owner should still be able to edit/delete the file if any issue with the content so I guess asset ...
The owner and profile it was uploaded to can be separate. This is done by using Asset. Example as follows.
asset = profile.COMPANY_USER_ID
user_id = UPLOADER_USER_ID
Sorry, I've no other solution for ...
Yes this was my point. The owner is not the uploader.
It’s a connection allowed to upload for the owner (company) and I tried to link its profile so that the company (owner ) could check who uploaded
There is no solution to fix that. Gallery items are user input content and for security reasons it strips HTML from them. Their profile should already be linked via user_id as it shows the owner in the ...
Works perfectly well now !
I was trying to set formData.append('name', `$`);
in order to link the name of the added file to the profile of the external user who contributes by uploading the file, but ...
Ok, latest CB AutoActions build release now supports error handling for &format=raw accessed auto actions. If there's any errors logged (be sure to enable Debug in your auto action) it will throw a 500 ...
The order is based off plugin load order except for Users and Invites which will always be last. Since CB Activity and CB Gallery (from CB AutoActions system action so is based off CB Auto Actions order) ...
Yes that's possible. You can insert metadata using CB AutoActions on any trigger infact. For activity this would be on the activity_onDisplayActivity trigger, which has the following variables.
var1 is ...
Either know the folder id in advance and set it or you'll need to create a folder using the folder class object, which is as follows.
If you want everyone's files to be uploaded to the same folder you ...
CB Conditional can't make something required. So you'd either have to make your second field required for everyone or make a 3rd field that is required and take into account whatever the other condition ...
Ok so in the meantime I'll add the other autoaction code directly in the first one after the store
This works fine like this :-)
Just another question : how can I add the new item in a folder ?
I mean ...
If you're chaining autoactions you'll likely want to leave User as Automatic.
That's exactly what debugging means. I will review adding error output to raw access (e.g. &format=raw) by throwing a error ...
I have a use case question.
I have a field item that depending on Yes/No will display a second yes/no field item.
eg.
1. Would you like to join a committee? Y/N
2. Would you also like to lead ...
... with postman for instance.
if I want to get the user id is it [var1_user_id] instead of automatic on the website ? is that not altered by chaining the autoactions ? do I have to pass var1 as reference ...
... also just directly insert the privacy rule into the database as well if you wanted.
I cannot help you debug your custom code. The trigger is likely firing (as confirmed by the privacy storing autoaction), ...
... for special connections.
is there some kind of special thing to do ?
If I look at the post data from the website and from my code with the autoaction they are exactly the same and both loaded into the ...
The CB Gallery module is wrapped in the cbGalleryModuleGallery CSS class which you can use to style just the module. The below is a quick simple example to get you started as I cannot assist you with custom ...
I did see the option to show the hint, which is great. Am I able to add CSS to make it bold or highlight it? I see the point of people missing it and complaining later.
Speaking of which. Is there ...
Correct
The only difference is what you've already discovered. One is automatically applied and the other requires them to enter a coupon code. You can add basket hints that show them the coupon code at ...
Thank you for confirming.
As a follow-up is the only difference between "Applies to all purchases" and "Coupon Code" is that the first one automatically applies the promotion price ...
Yes that's possible, but only upload processing is automatically handled by ->store(). So for everything else you need to use ->set on $item to set the data from $input (or even [post_name], [post_description], ...
Absolutely perfect -)
I'll just deactivate the system autoactions and let mine manage the privacies.
One last thing : is it possible to set the name and description of the file at the store ?
tried :
formData.append('name', ...
The below is typically what we do to ensure a successful store.
It checks if errors were logged to the object, checks if validation passed, and calls store and checks if it succeeded. $row->getError() ...
Great ! Did not notice the name, but it's working fine with "upload" :-)
Just one last question : how can I get the return after $item->store in the autoaction to output a json success or failure ...
You don't need to call ->discoverType() as it will be called in ->store() automatically.
As for the files. The file input in CB Gallery isn't named "file" it's named "upload". So just ...
This is exactly what I do as I'm using Postman Post to test
The code snippet is very standard
Nothing difficult here and it's not custom coding, but it does not wor
The files need to be set properly in a way that they're accessible to $_FILES in PHP. If this is from JavaScript the easiest way to do this is create a FormData object and add the file input data to it ...
I have a few issues finding the proper sequence to detect the type with posting from a formData
I tried
My userid is ok thanks to the token decryption
The formData seems fine in Postman and returns ...
The privacy for CB Gallery is handled by the system actions in CB Auto Actions. All it's expecting is the privacy rule id to be in the input data with a key of gallery_privacy. So for example gallery_privacy ...
Great, second question : I would like to pass the privacy settings in the formData together with the file.
Would it be automatically retrieved by the privacy autoaction after this code autoaction ? and ...
FOLLOW-UP: I did some more digging and found this article that helped answer some of my original questions: www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/autopopulate-a-field-from-community-builder.html.
They ...
That shouldn't matter for payment flows as profile field validation does not apply there. Regardless it shouldn't be possible anymore as we've implemented some pretty aggressive safeguards to prevent the ...
Kyle -
Thanks for the CBSubs update.
We've identified a possible reason for multiple user clicks.
When editing a user's profile, a date field threw a validation error. This field has no validation rules ...
... the class provided above for further usage information. It can process the upload automatically in ->store if you set the input data into _input and the files data into _files. Example as follows.
That ...
If you send the file through with a proper file POST header you can just call CB Gallery API in a Code action and it'll handle the upload itself otherwise you can place the file in the appropriate folder ...
Do not make changes to bootstrap.css you will lose those changes when you update CB.
You need to add custom CSS to override CBs to Joomla's backend template user.css file. To do this navigate to System ...
Start charging paid subscriptions for users to access your website content. Supports duration based subscriptions, merchandise sales and user donations. Very powerful and flexible solution that supports ...