Forcing OG group membership on site registration
I have various content types that are associated with my OG 7.x-2.x groups. When a site member who is not a member of any group attempts to create content using any of the these content types they cannot create new content.
If a site member is a member of at least one OG, then they can use the content type and create content.
I want site members to be able to use these content types regardless of whether they belong to one or more organic groups. Failing that, I would like to create a generic group that all members are forced to join on registration.
What are my options?
Read moreLoop through users and/or roles
It is possible to loop through each registered user? What about user roles?
Here's a real use case.
I want to run a club; be it a book club or a night club, doesn't matter. Being a club, it must have members i.e. users with a particular user role applied ("member"). Each user membership lasts for a certain period of time ("membership period"), let it be one hour, 6 months or 20 years, doesn't matter.
[member] users have a field named "expiration" which contains the user creation timestamp with the [membership period] applied.
Read more