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: 25485

    Hi Marko,
    Welcome to BuddyDev forums.

    Please use an image sharing service like

    https://prnt.sc/
    https://snipboard.io/
    https://imgur.com/

    to post the screenshot and share.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Plugin to Stop Private Groups #32980

    Please do not copy the code from email(if you have notifications enabled). Please use it form here.

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Plugin to Stop Private Groups #32979

    Hi bob13,
    The best way to delete groups will be using database.

    If you are comfortable with database, Please follow the steps below. Please note that these can not be undone.

    1. Take a complete backup of your database. In case something goes wrong, you can restore.

    2. Find the user id. I am assuming it is 2. It should be some numeric id.

    3. Find the table prefix . I am assuming it is wp_. You will need to replace the prefix and user id in all the queries below.

    4. View all groups from that user, you may run

    
    
    SELECT id FROM wp_bp_groups WHERE creator_id=2
    
    

    4. Clean Group meta

    Check meta entries count for these groups

    
    
    SELECT COUNT('*') FROM wp_bp_groups_groupmeta WHERE group_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    Delete all these meta

    
    
    DELETE FROM wp_bp_groups_groupmeta WHERE group_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    5. Clean members table

    Check the number of members in these groups.

    
    
    SELECT COUNT('*') FROM wp_bp_groups_members where group_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    Delete these entries

    
    
    DELETE FROM wp_bp_groups_members where group_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    6. Clean activity table.

    View entries count.

    
    
    SELECT COUNT('*') FROM wp_bp_activity WHERE component="groups" AND item_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    Delete entries

    
    
    DELETE FROM wp_bp_activity WHERE component="groups" AND item_id IN( SELECT id FROM wp_bp_groups WHERE creator_id=2 )
    
    

    6. Finally, Delete all groups

    
    
    DELETE FROM wp_bp_groups WHERE creator_id=2
    
    

    That’s all.
    Do not forget to take a backup before any of these command.

    Regards
    Brajesh

    PS:- In future, Please open your own topic for discussion.

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: MediaPress Gallery in BP User Profile #32974

    Hi Matteo,

    Thank you for using the plugin.

    Using the code

    
    mpp_get_template('gallery/loop-gallery');
    

    may work. We haven’t tried it though.

    Your bets bet is to either use the shortcode or the MPP_Gallery_Query to create custom list

    https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/

    https://buddydev.com/mediapress/core/mpp_gallery_query/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Interest in MEDIAPRESS – Questions #32973
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Troy,
    I am sorry for the inconvenience. The origin of error was some other plugin returning string or not returning array.
    It is expected to have array.

    I have put a check for now to make sure we do not try to add items if an array is not given to us.

    Please upgrade to 1.1.0 and let me know if that works for you or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Interest in MEDIAPRESS – Questions #32912
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi John,
    No, That won’t work.

    The example was for the code inside a function and putting it in template file will have issues rendering template when the first condition matches.

    May I ask a question:- What are your goals with these buttons. What kind of customisation you need? If you can tell me, I can make it easier in the next update.

    Is it your goal to just change the placement? or do you want to modify the markup/css?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485