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: 25468
    Brajesh Singh on in reply to: [Resolved] Single message thread per user? #7023

    I am sorry I could not help much. Glad that you did it 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Brian,
    You are looking in the right direction.

    I suggest filtering on

    mpp_user_can_create_gallery to restrict gallery creation

    and

    mpp_user_can_upload' for restricting upload.
    
    In both the cases, you should check for the total uploaded media by the logged in user.
    

    $total_uploaded = mpp_get_media_count(array( ‘component_id’ => bp_loggedin_user_id(), ‘component’=> ‘members’ ) );

    `

    I believe that should allow you to do it. You can avoid the last function and do a query on posts table for attachment where post_author is logged in user id and that will work too.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Mediapress Galleries not showing up on Gallery page #7021

    Hi Zasa,
    The site is protected, so I could not check.

    Can you please open a new topic about the issue, I will be happy to help.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Chris,
    I am sorry if I have skipped it somehow. I am looking into my mails and will get back to you today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Gallery on custom post type pages problem #7019

    Hi Olivier,
    I am sorry for the inconvenience.

    Can you please link me to the page? I am not sure why the permalinks are not working in this case. Can you please visit the Dashboard->MediaPress->All Galleries and see if the privacy, component, type is set properly for this gallery?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Mediapress Upload Permissions #7018

    Hi Ian,
    My apologies for the delayed reply.,

    I have fixed it on the github repo.

    https://github.com/buddydev/mediapress/commit/4d0de6c2519a2d6775c69e9cd1b7c701b7c2cd6b

    If you want you can update from there, I will pus on wp.org too in next 1-2 days(Just need a few more enhancements to go in).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Mediapress breaking site #7010
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Mediapress breaking site #7008

    Hi Michele,
    Thank you.

    1. Non of those notices are caused by MediaPress. It is your theme/other plugins. MediaPress is not throwing any notice above

    2. It seems your theme has a dependency on the RT Media plugin, you see this line

    
    
    Fatal error: Class ‘RTMediaFriends’ not found in [redacted path]wp-content/themes/sweetdate/custom_buddypress/class-bp-tabs.php on line 279
    
    

    It means the theme is using that class but that class is not found. I will suggest reporting it to the theme developer and you can show them my message regarding this. The good practice says, the theme should at least check for the things before throwing error.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Automatic Theme Upgrades available now #7006

    Hi Graham,
    Thank you and wish you a wonderful 2017 ahead!

    About the issue:-
    Please make sure you are using the latest version of the dashboard plugin.

    The upgrade notice will appear even if you are using a wrong key(Invalid key don’t allow update but show the update).

    Most probably, either the dashboard plugin is not updated or the theme update transient is set(which will get cleared in 24 hours) by WP. When WordPress queries for the changes, The update will be visible if you are on the latest BuddyDev dashboard plugin.

    Hope that helps.

    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Can we have cover photos on the members page? #7005

    Hi Graham,
    That’s a good question. There were two issues

    1. The cover fetching query is not optimized for multiple covers on single in BuddyPress. We can get around by prefetching and caching at the start of the loop and I plan to do so. The second issue is what is more problematic

    2. The problem is size of cover. Currently, there is only one cover size allowed. If we resize the cover automatically, It may not make much sense.And even if we do, we will have to have the complete process that keep track of the uploads, deletes the old files and so on. What I plan is to build an experimental plugin with these features.

    We will have something better than what we have(we will atleast allow to set colors) before the end of this month.

    Thank you
    Brajesh