Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding mass amounts of groups through database


  • David
    Participant

    @dlabbe

    This might seem a little confusing for what I am trying to accomplish, but I will do my best to explain. I want to create a large amount of groups within my social site created by me and not the users (so I will be disabling the “create group” button…I know how to do this). How can I insert the groups (batch style) within the data base from the back end and not one by one through the front end? I also must mention that I am not to worried about the avatars as I will be reconfiguring the group pages so I can have banners across the top of the page rather then an enlarged avatar. So I will be calling the banner image in from a new field within the data base.
    OK…so once again my question is how can I insert groups from within the database and have them register within my site? I tried playing around with the database and inserting a new record into _groups table, but does not show in the groups within the site. Thanks for any help in advance as I am in my learning stage of PHP.

Viewing 5 replies - 1 through 5 (of 5 total)

  • David
    Participant

    @dlabbe

    Ok…what is the best way to insert groups from the backend?


    David
    Participant

    @dlabbe

    can someone please spend a few moments to explain this? I am in much need for any assistance…thanks.

    if you instantiate buddypress – then look at the `function groups_create_group` in bp-groups.php


    David
    Participant

    @dlabbe

    not sure that helps. I will try to explain. I want to build a directory of the groups as such. Country—->State—>County—>store location. I would like each to be its own group as well…meaning I want people to be able to join the State, County, and store location as groups they can join. Is there anyone that can lead my in the right path to make this work?

    well, your first question was about adding batch style via a db – if you looked how it called the class, you could pick up the raw sql instead.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding mass amounts of groups through database’ is closed to new replies.
Skip to toolbar