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: 25456
    Brajesh Singh on in reply to: [Resolved] Limit Number of Galleries Per User? #5494

    Hi Brian,
    Thank you for posting. It is not part of MediaPress gallery but is doable. I need to write some custom code or may be a small plugin. Will post in a day or two.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: This file type is not allowed. Allowed file types are: #5493

    Hi,
    My apologies for the inconvenience.

    is there any chance that you are on multisite and MediaPress was network activated? Though you have mentioned that it is only activated on root site, Can you please check that again for me. Also, try to save the settings at least once.

    Please let me know if it makes any difference?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Lana,
    Thank you for Reporting. Which version of Divi and BP Simple Frontend Post plugin are you using?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Janette,
    Thank you and my apologies for the delayed reply.

    We are trying to solve 2 problems here.

    1. sending local notification to all users

    2. Sending the email notification to all users

    I have some idea what might be going wrong(It is related to timeouts). I will be posting an update of the plugin in next couple of hours that will try to minimize the time. That should fix the first and then we can move to the second.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Hans,
    Thank you for updating. I was wondering what is going on since the above code does not deal with validation.

    I am glad you found the sleep and the solution 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi George,
    I wrote the code and since it became a little bit more than what could be managed in snippet,I got @ravisharma to convert that code into the plugin

    https://github.com/mediapress/mpp-global-shared-gallery

    Please activate this plugin. Once you have it activated, In Dashboard Edit gallery screen, you will notice a checkbox to allow everyone to upload.

    Once you check that for a gallery, everyone will be able to upload int it.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Janette,
    thank you.
    that makes sense.

    At the moment the hook which is used to send email is called before creating the local notification.

    For now, can you please comment out the code from the bp-custom.php and then post and update and see if all users get notified. They should. Once it is happening,I will update the code and move the hook below local activity creation. That will allow us to make it work.

    The mailing without a queuing is going to be unreliable for large volume of emails.

    Please check with the hooked code disabled in bp-custom.php and let me know.We can proceed further then.

    Thank you for your patience.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Janette,
    Thank you. I looked at it again and here is what happens, Please check and let me know if I am missing something or there is some difference you are observing

    1. When an activity update is created in the group, all members of the group are fetched and we create individual notifications for all these users. For each of these users, there goes an entry in the notifications table where

    item_id = The GroupId
    secondary_item_id = ID of the activity

    user_id = The User whom we should show the notification

    component = ‘localgroupnotifier’,
    component_action= ‘group_local_notification_’ . $activity_id,

    The notification is only deleted for the user if he/she clicks on the notification and reads the activity(On visiting single activity page).

    In normal cases, for each update,we will have multiple notification created, one for each member of the group.

    There are two cases where the php script timeout may affect us.
    a) If we have too many group members , say 5000 (which is very uncommon)
    b). Or there is some callback attached to ‘bp_group_activities_notify_members’ and the callback takes a lot of time.

    Can you please help me to understand if you think one of the above is happening?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Janette,
    My apologies for not asking it before. By going out the notification, do you mean the notification by email or just the notification on BuddyPress site(local notification).

    PS: Your data seems correct to me. The notifications entry get deleted on read.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Janette,
    Thank you for the prompt reply.
    No problem, appreciate the details. I will have an update in an hour.

    Thank you
    Brajesh