How to set AccessControlProfile on an entry using Kaltura API? - kaltura

I am uploading video entries through Kaltura Contribution Widget. I would like to allow users to select length of the free preview that will be shown for users who don't have rights to see entire video. I wanted to implement that by creating different AccessControlProfiles (with different preview lengths) and then assigning profile to uploaded video after user selects preview length.
Is there a way to assign access control profile using API? I looked through the docs but couldn't find the answer.

You may have to proxy the api since your users that make upload contributions ( of course ) won't be able to modify the profile. Probably easiest to have a few access control profiles for given times 5, 10, 15, etc. second previews.
The api for access controls is applied on a per entry basis. You can "add" new profiles with: http://www.kaltura.com/api_v3/testmeDoc/index.php?service=accessControlProfile
you can then assign an entry a base access control id from the baseEntry service:
http://www.kaltura.com/api_v3/testmeDoc/index.php?service=baseEntry&action=update
by populating field:
baseEntry:accessControlId
Hope that helps.

Related

Google shopping content API - targeting both local and non local listings with same feed

when I create a feed of type "products" targeting "shopping", in the UI I have a toggle to have it targeting local listings as well.
Is there a way to achieve that functionality through API? Have one feed targeting both local and non local listings?
I believe that's better since that way I'll use half the products' quota to cover both use cases, right?
Once I manually do that, and call GET on the feed, I see "LocalSurfacesAcrossGoogle" added to the includedDestinations, but trying to update a feed with that value throws an error (also it doesn't appear on the docs as a valid value.

Google analytics does not show statistics and looks different

I created a new application and noticed that it was different from my first one.
I have 2 sites on the Magento 2 platform. I want to separately collect data about them.
I had previously created a store for analytics in which I could create views. There I took the Account Number starting with the UK and added it to the settings.
But now I am trying to create a new tracking application and I get a different type of application in which I cannot create views, what am I doing wrong?
How can I connect it?
When you create a new Property in Google Analytics you can find Universal Analytics type Property by clicking on Show advanced options:
So you can obtain and use its ID (UA-XXXXX-X).

How to use additional dimension : direct sessions to the google studio

In google analytics I can add additional dimension which is named: Direct Sessions which gives two values : yes and no. The problem is that when im making reports in google studio i dont have this kind of dimension.
Maybe there is possible to add this dimension manually?
T.
If you have created a custom dimension in GA it is available in Google Data Studio (I assume that is what you mean by "Google Studio").
Currently the Google Analytics connector only provides access to data
available in custom reports. It does not provide access to
multi-channel funnels or real-time data. However, custom dimensions
and metrics are available in Data Studio.
You can select it like any other dimension (use the search feature and look for the name you gave to your dimension in the GA property settings).
Source

Joomla 3.x - how do I have students (we register them) access one area, and public (self registration) another area?

Apologies for what is I suspect an easy question for many - I am very new to Joomla. I am building a website for my wife on Joomla 3.x (Noteworthymusictuition.co.uk). I already have an area for her music students, in which they log in and can access teaching material not available to the public. We register them.
I want to create an area of 'free downloads' for members of the public to self-register and automatically go to an area for them to download material. They need to be able to log in again after registration. To build up a newsletter group, I want to capture the registrations and store them for subsequent emails.
I do struggle to understand the ACL in Joomla, but if I try and set up a registration form for the public to use, I have to enable self registration in the admin and that affects the existing student login.
I hope that's enough detail! I was wondering whether I need an extension to enable multiple levels, such as Access Manager Pro? But on the other hand, what I'm asking for doesn't really sound like rocket science!
Many thanks!
By the way, I have never done any programming in Joomla - apart from occasional HTML editing.
Anthony
If you choose the 'self' registration option that doesn't stop you creating users as you do now. As long as you set the user up correctly they should be able to log in without issue.
New users would have the option to create an account and would be activated via a confirmation email.
You need to create at least one new user group though. For example, a 'download' group which has access to the additional material. Then, if you use a decent component (http://www.joomlatools.com/extensions/docman/ - see access control new tab) you will be able to control access to documents and downloads by specifying which groups are able to see download links etc.
Hope that helps a bit!

Joomla 1.7:- How do i do this please (kinda facebook)

Joomla comes out standard with registered user, and public user
If I add a third (registered) User that allows the third user to a) create a single separate page in Joomla that the user can input pictures (like you do on face book). b) Access all pages as the standard registered user does.
How do I go about that in Joomla 1.7, add a third (registered) User and give it level 2 accesses?
Then how I create a single page for each user. Somehow I need a reference to each user’s page and show that in a list and control the list search parameters. And i need the page viewable when selected and in the page info needs to be received by the third user. I’m not creating face book but I need that sort of techno somehow.
Can someone point me to what I need to look at, editorials, videos, etc. I know I need to lean PHP better.
Could I make a foulder for each registered user to hold photo's and name the folder acourding to the user's name or email address.
I would recommend to go with a component that offers the functionality that you need. You will find it easier to control the user rights there as they are standard settings available. This is more convenient than building everything from scratch.
Some well known components are:
Community Builder (main component free)
JomSocial (commercial component)
There are more components and plugins available, you may also want to search the Joomla Extensions Directory (JED) for something suitable (http://extensions.joomla.org/extensions/social-web)

Resources