Group Mods

  • Profile picture of r-a-y
  • Profile picture of Hugo
  • Profile picture of @mercime

Support: Miscellaneous

Everything else.

Adding mass amounts of groups through database (6 posts)

Started 1 year, 7 months ago by: David R Labbe

  • Profile picture of David R Labbe David said 1 year, 7 months ago:

    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.

  • Profile picture of David R Labbe David said 1 year, 7 months ago:

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

  • Profile picture of David R Labbe David said 1 year, 7 months ago:

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

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 7 months ago:

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

  • Profile picture of David R Labbe David said 1 year, 6 months ago:

    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?

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 6 months ago:

    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.