Hi,
I'm trying to do something that requires me to grab the users joined groups.
I see the function ossngetuser_groups which then calls getMyGroups. However that grabs both of the users owned and member of. Is there a way to distinct the two groups?
Thank you for the response. I decided to filter out the groups with the condition
if(ossnloggedinuser()->guid !== $group->owner_guid){
//Add to the array
}
So far it seems to work okay. If I run into any errors, I will use what you suggested. Once again, thank you.
You can use following code to get groups of user that he is memberof (not his own group), please replace id with user id
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)