Skip to:
Content
Pages
Categories
Search
Top
Bottom

"Auto Group Join" plugin added

  • Avatar of Westpointer
    westpointer
    Participant

    @westpointer

    I’ve added a new plugin at http://wordpress.org/extend/plugins/auto-join-groups/

    Automatically join a member to a group based on a profile field. For example, say you have a profile field where the person selects his state from a drop down list. If he selects, New York, he’ll be automatically added to the group New York. Or, if you have a profile field for “Favorite Animal” and the member selects “Dog”, you could automatically have him become a member of the group “Dog’s Rule” and “Best Dog Food”.

    Comments and suggestions are welcome!

Viewing 5 replies - 26 through 30 (of 30 total)
  • Avatar of zanzaboonda
    zanzaboonda
    Participant

    @zanzaboonda

    *BUMP*

    Gosh I wish I knew coding…

    Avatar of wamoma
    phos flip
    Participant

    @wamoma

    For those saying it needs the links changing to ms-admin.php I’m guessing that means the plugin only works if multisites are enabled in wordpess?

    I’ve tried playing around to get it working in buddypress without multisites enabled but no joy.

    How to make it work with WordPress Single Blog:

    Step 1
    —-
    Go into the plugin folder and open the bp-auto-group-join.php file. Line 67 should be:
    `add_submenu_page( ‘wpmu-admin.php’, __(“Link Auto Join Groups”, ‘buddypress’), __(“Auto Join Groups”, ‘buddypress’), 1, __FILE__, “auto_group_join_plugin_options” );`

    change it to this:
    `add_submenu_page( ‘options-general.php’, __(“Link Auto Join Groups”, ‘buddypress’), __(“Auto Join Groups”, ‘buddypress’), 1, __FILE__, “auto_group_join_plugin_options” );`

    That first argument just tells the action hook `add_submenu_page()` where your plugin menu item should go based on page slug. The options-general.php slug corresponds to the “Settings” menu. So you’ll get a link for the plugin settings under the Settings menu. I couldn’t figure out how to add the link to the BuddyPress menu since that menu works a little differently.

    Step 2
    —-
    Go to line 147:
    `add_action( ‘wpmu_new_user’, ‘update_auto_join_status’, 12, 2);`

    Add add this new line below it:
    `add_action( ‘user_register’, ‘update_auto_join_status’, 12, 2);`

    I figured the wpmu_new_user action hook wouldn’t work with single WP. I was right. I tested with the additional user_register hook and it works. Joy

    Hi, nice plugin, do you think it would be appropriate to use as a solution to the following:

    I am using the “More fields” plugin to add some checkboxes to posts. These checkboxes will allow a post to be associated with genre of book.

    I am also using buddypress. When a user registers I want to be able to give the user the option to choose which book genres they are most interested in, and then save it into their profile info. These genres obviously have to be the same as the genres which i am tagging my posts as (the custom field ive created in more fields).

    Can anyone think of a way I can allow users to choose which genres (multiple checkboxes) they are interested in. I could of course create a profile field containing the book genres in the “profile field setup”, but then they wouldnt be the same as the checkboxes im using to “tag” posts with and therefore id be maintaining two sets of data which are in no way linked and would be useless for reporting purposes.

    Thanks for any help, it would be much appreciated.

    There is an old plugin that auto-joins based on profile information, but this plugin is much simpler than that. All it does is add new members to selected groups automatically. That’s it. It would not be a solution for what you’re trying to do.

Viewing 5 replies - 26 through 30 (of 30 total)

You must be logged in to reply to this topic.