Replies
Sorry if I still write here, but I have a problem with the comments on the photos, in the sense that the font is too light and cannot be read but I don’t really understand where I can go to make some changes. I also find the same problem in some buddypress pages
Last night I made some tests and noticed that the plugin offers the possibility of uploading images, videos, audio and docs, but I don’t think I have seen the possibility of inserting a link on youtube for example, and see the preview.
I tried a “buddypress-activity-plus” plugin that performs this function but unfortunately, unlike your plugin, it doesn’t see that part of the code that I pasted it on and that limits users to publish images that are too big
Can you tell me how I can solve the problem?
Hi, I solved my problem by adding this piece of code to the function.php file
// Limit upload size
add_filter (‘upload_size_limit’, ‘filter_site_upload_size_limit’);function filter_site_upload_size_limit ($ size) {
// Set the upload size limit to 60 MB for users lacking the ‘manage_options’ capability.
if (! current_user_can (‘manage_options’)) {
// 60 MB.$ size = 500 * 1024;
}
return $ size;
}
add_filter (‘upload_size_limit’, ‘filter_site_upload_size_limit’, 20);Now I’m trying to understand if this procedure can also be performed on the type of file example: max size jpg 500 kb – max size mp4 – 2MB etc etc.
I tried the plugin but the problem does not change. My server is set at 25 MB and I don’t need to increase the file size but to decrease it. If my users start to insert 10MB images, I believe that in a few months I would have big space problems as well as a burden on the site.