Download & Extend

Mandatory member of an organic group upon user profile decisions

Project:Organic Groups Mandatory Group
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Hi,

I have this problem: when an user creates his profile (upon registration), he has to make some required decisions regarding that profile. E.g. he has to choose the city he lives in, which is a part ot a taxonomy tree (therefore content taxonomy is used). This taxonomy tree looks like this:

e.g.
Europe
- France
-- Paris

I want this user upon choosing Paris as the city he lives in to be then automatically a member of the OG "Paris", which has been created by me (admin) before that. He won't have to make any more choices...

How could you achieve that?

Any help is greatly appreciated! Thanks

Comments

#1

I'm trying to figure out something similar - what modules have you looked at? Maybe OG Mandatory Group would be enough?

#2

Status:active» closed (won't fix)

This is out of the scope of OGMG. I am pretty sure that Rules is capable of this.

Do something like this:

ON event User account has been created
DO:
Load Registered user's Profile
Load City Vocabulary
Load OG Content by ID (use PHP filter to transfer the city's term to the associated node ID. It's kind of dirty... but what works works.)
Subscribe user to loaded OG Node

You will probably do better by going into the code itself, but I'm almost completely sure this will work.

Either way, it's completely out of the scope of this module.