BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26713

    I have no idea how to do it 🙁

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26670

    yes I had imagined it but I don’t know how to do it or rather I fear that trying to change the font of those pages can change the font of the whole site.

    Wouldn’t you know how to give me directions?

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26640

    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

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26639

    Sisi I read and answered 🙂 Thanks. You could put it as an extra option to let the admin choose the size of the files that can be entered by users

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26638

    okok get it, I thought it didn’t work because it doesn’t show the preview but after sending it shows the preview of the video. Thanks

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26622

    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?

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26621

    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.

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26564

    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.

  • Participant
    Level: Initiated
    Posts: 9
    spikketto on #26551

    How can I limit the size of the images that the user can insert in his gallery? I have already managed to limit the size for avatars and cover but I have to do the same for the galleries otherwise my users can insert files too big (25MB)