Hi, thanks for the good and powerful sppb plugin.
1- Please make this change in sppb core so that developers can write their desired plugins. This change is only limited to two lines in the kernel.
In the following path:
\components\com_sppagebuilder\models\media.php
In this file that I have addressed above, you return the list of required files in the media manager, if you can trigger an event and you can give it the variables so that developers like me can provide the development they need. For example, we may want to change the thumbnails for the file, or filter some files.
2- One of the important advantages of Joomla is having built-in access levels in the core. As you know and seen in some posts of this forum, users can access their files individually by using the JCE plugin. I have done this in sppb with only one line of code. Do you have the possibility to include this code in the kernel in future releases? This code has no security issues and you can send it to your experts for review. Please do this development in sppb so that the efficiency of this great plugin will increase.
In the path of the file that I mentioned in case 1 after your code:
if ($type != '*')
{
$query->where($db->quoteName('type') . " = " . $db->quote($type));
}
I put the following code in line 55 and each user can see the files that he uploaded individually:
// this code is required to restrict sp media based on created_by
$query->where($db->quoteName('created_by') . " = " . $db->quote(jfactory::getuser()->id));
If you don't put this one line of code in the kernel, which has no negative effect on sppb in terms of security and optimization, I have to put this line in the kernel every time a new version of sppb comes out, but if you make some adjustments in Allow the sppb management to allow each user to see only the files that he has uploaded, and the efficiency of your good plugin will increase. Thank you and I hope you will cooperate.
If item 1 cannot be included in your team's policies, at least implement item 2. This feature is very useful in combination with other Joomla features.