Separate Each User File In Sppb Media Manager2 - Question | JoomShaper

Separate Each User File In Sppb Media Manager2

S

saman

SP Page Builder 1 year ago

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.

0
8 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #147590

Hello saman

Thanks for your feedback. I appreciate the idea and effort in making SP Page Builder better. I have shared the post with the development team. They will reveiew it and if higher management agrees, then it will be implemented.

Best regards

0
S
saman
Accepted Answer
1 year ago #147593

I will wait for your reply. I will follow up with you again. Thanks

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #147597

You are welcome 😊

0
S
saman
Accepted Answer
1 year ago #148477

Can you tell me if the development management team has approved this?

0
S
saman
Accepted Answer
1 year ago #148892

frindly bump

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #149395

Sorry, it is not discussed yet. But I found this feature would be complex to implement. The team might not consider it. I can't give you false hope.

0
S
saman
Accepted Answer
1 year ago #149411

how about item 2 in the first post in this topic? it is needed only added one line :

$query->where($db->quoteName('created_by') . " = " . $db->quote(jfactory::getuser()->id));

and not conplex. can you check it with developer team?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #149540

I would appreciate your patience on this matter. I have already talked with the team. They will review your suggestion.

0