Timeline for Using D7 OG I want to force (auto) join - any ideas?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 13, 2013 at 3:13 | comment | added | Terry | Ultimately I need to know what is the difference between og-membership:0: and og-membership:1 - because I know that site:current-user:og-membership gives me a list of groups the current-logged-in user belongs to - so it SEEMS like site:current-user:og-membership:0:group means the FIRST group of the current user - but it isn't working. Of anyone has experience with these data selectors that is really where I'm at now. | |
Jan 13, 2013 at 2:47 | comment | added | Terry | I REALLY feel like this should work - site:current-user:og-membership:0:group:manager:og-membership:0:group as the data selector - but it doesn't add the current logged-in user to the group of the manager of the group triggering the rule. | |
Jan 13, 2013 at 2:36 | comment | added | Terry | I can't find where to post the php script above. I have been playing around with Rules and there is a rule with Event: User has become a group member and there is an Action: Subscribe user to group where you can define the "user who will be subscribed" as: site:current-group:manager - which essentially says the manager of the current group will be subscribed to whatever Group data selector you choose. I know I'm on the right track - I just can't figure out which data selector will equal the "current logged-in user's managed OG." site:current-user:og-membership:0:group didn't work. Ideas?? | |
Jan 11, 2013 at 12:55 | comment | added | Amarnath Ravikumar |
A rule sounds just about right although frankly I haven't worked with it before. Alternatively, if your Follow button has a menu callback, this could go in there. If your Follow button is a flag, then this could go into hook_flag() .
|
|
Jan 11, 2013 at 1:22 | comment | added | Terry | I'm trying to decide where this code should live. I'm going to explore putting it into a rule. If you have a better suggestion please let me know. Thanks again! | |
Jan 11, 2013 at 1:16 | comment | added | Terry | Amarnath - this is awesome. I've been out all day and am just now seeing this for the first time. I'm going to implement this in the morning and will provide feedback. In this particular case no other user than the owner (group manager) will have administrator privileges. Thanks again! | |
Jan 10, 2013 at 16:19 | history | answered | Amarnath Ravikumar | CC BY-SA 3.0 |