Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author caevan

    (@caevan)

    Sorry, this is on my todo list to add a gallery to a group that is already created. If you are confident modifying your database, you just need to add a new row in the wp_bp_gallplus_albums table. The main filed you need are
    owner_type = group
    title = group name
    description = group description or whatever you want
    privacy = 5
    group_id = the id of the group you would like it to belong to.

    Thread Starter hkcharlie

    (@hkcharlie)

    thank you

    hello, I want to make these changes, but I do not know how? and what file must be modified. thank you very much

    Plugin Author caevan

    (@caevan)

    If you have access to phpMyAdmin you can modify the wordpress MySQL database. If you are not familiar with doing this it might be better to enlist the help of someone who does. Otherwise contact me through my website and I will see what I can do.

    I had the same situation. I had a number of old groups that I needed to create galleries for. Here is the SQL I used in phpMyAdmin:

    INSERT INTO wp_bp_gallplus_albums (
                                                    owner_type,
                                                    owner_id,
                                                    date_created,
                                                    title,
                                                    description,
                                                    privacy,
                                                    group_id )
                                              VALUES
                     ( 'group', 1, '2013-03-13 15:26:34', 'You Say', 'You Say', 5,  2),
                     ( 'group', 1, '2013-03-13 15:26:34', 'Love Is Alive', 'Love Is Alive', 5,  3)

    If your database tables don’t start with “wp_” then you will need to change table name prefix after “INSERT INTO”

    You can add an additional set of values, as I have shown, by just adding a comma after the last one I have and then a new set of values in “( )”. The last one should not have a comma at the end (same as my example)

    Make sure your “owner_id” and your “group_id” are changed to be the values for your user id in WP and the id of the group you are creating a gallery for, respectively.

    Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘group album’ is closed to new replies.