Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How to send a message to all users #16405

    Hi Daniel,
    Please allow me to look into the plugin today. There must be a way.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Importing images crashes my website #16404

    Hi Andrew,
    Please use mpp_template_redirect instead of init. At init, not everything is setup. So, It might cause some issue.

    
    function mpp_custom_deregister_default_gallery_view() {
    	mpp_import_attachment('/opt/bitnami/apps/wordpress/htdocs/imageupload/uploads/image~2.jpeg', 40690);
    }
    
    add_action( 'mpp_template_redirect', 'mpp_custom_deregister_default_gallery_view', 11 );
    
    

    Also, your code was missing a quotation (‘). The file path should be a valid strig. In your case, It was not valid. So, That might be throwing error.

    The best way to debug is to set WP_DEBUG true in wp-config.php while developing.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    You are welcome. I am glad it is back. I will still suggest finding the root cause and fixing it for future 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Cover image #16396

    Hi Ben,
    Thank you.

    It is good to know that our plugin’s are being used for some nice cause.

    Thank you for being a valuable member and using BuddyDev.

    Have a nice weekend.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Daniel,
    My apologies for the inconvenience. We recently had a major change in our settings framework and It started causing problem if older version of the framework was installed.

    Going forward, we have made sure that in future it will never happen but all existing plugins need to be updated.

    If you are using any of the following plugin

    BuddyPess User Contact Form
    BuddyPress Moderation Tools
    BuddyPress Member Types pro
    Social Subscribe Box
    BP Branded Login
    BuddyPress User Circles

    Please make sure that you are using the latest version of each of these.

    It won’t happen in future as all the above plugins now implements a mechanism to only allow the latest version of settings framework to be loaded.

    Please upgrade and let me know if you see any issue.

    PS:- If a plugin causes fatal in future, you can disable it by renaming it to get the site back. It is present in the wp-content/plugins directory on your server.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: External Storage Component #16390

    Hi Christian,
    Thank you for using MediaPress.

    It will be a nice plugin to have. May be using some existing solution for the externalizing media can help.
    I am still not sure about point 3

    2. Can be done but it will need significant time and will depend on your strategy(Actively doing it on upload or passively offloading using cron)

    4. Can be achieved by most probably using a n existing WordPress plugin or slightly modifying it

    5. Directly related to 2 and can be combined(It should be)
    6. We will need to fork one of the plugin(We can take care of this part).

    A plugin of this nature needs significant time. At the moment, We son’t have that kind of time available. We can still help with 6 and providing assistance with the hooks.

    If you plan to offload actively( you should do it on ‘mpp_media_added’ hook. Your other point of interest will be Implementing a storage manager based on ‘MPP_Storage_Manager’.

    Since the storage manager is responsible for providing meaning to a media’s path/url, you can use one to provide details for the externalized media.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How to regenerate mediapress thumbnails #16389

    Hi Christian,
    Thank you.
    Yes, that seems to be the best option.

    I have looked at the plugin and it seems we will need to re-implement(specially the RegenerateThumbnails_Regenerator::regenerate() )

    We do not add our sizes to WordPress’s intermediate image size. This is to avoid generating unnecessary images on each attachment update(WordPress creates all sizes for the upload). But that makes this plugin inadequate for our purpose.

    The best solution I see is to fork the plugin(it has a smaller code base) and only use part of the plugin for regenerating MediaPress images.

    If you plan to work on it please do let me know otherwise I will ask on e of my team members to do it in future.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Gallery Image Change – Function #16388

    Hi Andrew,
    Do you want to update the cover image?

    If yes, you can use

    
    mpp_update_gallery_cover_id( $gallery_id, $media_id)
    

    where $media_id is the id of media you want to set as gallery cover.

    You can also do it via sql. All you need to do it add the ‘_mpp_cover_id’ as the post meta for mpp-gallery post type and it’s value should be the relevant media(attachment) id.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] .Mov Format Video not playing #16387
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Try searching for the filter ‘show_admin_bar’ or the function ‘show_admin_bar’ and see if a plugin/theme is overriding it with false value.

    The above code tries to reset the admin bar visibility on template_redirect. Most probably some code is doing it at even further actions like wp_head or so.