I've got sample code that does just that at <a href="http://www.ethitter.com/tips-tricks/2010/11/automatically-add-new-users-to-a-buddypress-group/">http://www.ethitter.com/tips-tricks/2010/11/automatically-add-new-users-to-a-buddypress-group/</a>. In this example, the user is added automatically after activating his/her new account, but hooking the sample code to a different action that provides a user ID (such as a login action) will produce the desired result.<div>
<br></div><div>Erick<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 03:12, Pasquale Puzio <span dir="ltr"><<a href="mailto:pasquale.puzio@gmail.com">pasquale.puzio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi friends,<br>
<br>
I would know if in BuddyPress there is some function or some plugin<br>
that allow me to automatically add an user to a group. I need that<br>
because it's an important function of my work-flow.<br>
<br>
If there aren't, could someone post here a sample code to do that?<br>
<br>
Thanks<br>
<br>
--<br>
Dott. Pasquale Puzio<br>
<a href="http://www.pasqualepuzio.it" target="_blank">http://www.pasqualepuzio.it</a><br>
<a href="mailto:info@pasqualepuzio.it">info@pasqualepuzio.it</a><br>
340 5026359<br>
_______________________________________________<br>
buddypress-dev mailing list<br>
<a href="mailto:buddypress-dev@lists.automattic.com">buddypress-dev@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/buddypress-dev" target="_blank">http://lists.automattic.com/mailman/listinfo/buddypress-dev</a><br>
</blockquote></div><br></div>