rowCount()) $HasGroups = false; else $GroupInfo = Groups::GetLastGroupUserJoined(SESSION["user"]["id"]); } if($HasGroups) { $GroupsCount = SESSION ? $MyGroups->rowCount() : 0; $Emblem = Thumbnails::GetAssetFromID($GroupInfo->emblem); $Status = Groups::GetGroupStatus($GroupInfo->id); $Ranks = Groups::GetGroupRanks($GroupInfo->id); $MyRank = Groups::GetUserRank(SESSION["user"]["id"] ?? 0, $GroupInfo->id); if(!$MyRank) throw new Exception("Groups::GetUserRank() returned false, the group roles might have updated"); PageBuilder::$Config["AppAttributes"]["data-group-id"] = $GroupInfo->id; PageBuilder::$Config["title"] = Polygon::FilterText($GroupInfo->name).", a Group by ".$GroupInfo->ownername; PageBuilder::AddMetaTag("og:description", Polygon::FilterText($GroupInfo->description)); PageBuilder::AddMetaTag("og:image", $Emblem); PageBuilder::AddResource(PageBuilder::$PolygonScripts, "/js/polygon/groups.js"); } else { PageBuilder::$Config["title"] = "My Groups"; } PageBuilder::BuildHeader(); ?>
Owned By: =Users::GetNameFromID($GroupInfo->owner)?>
Members: =$GroupInfo->MemberCount?>
Level == 0) { ?> = 20) { ?>My Rank: =Polygon::FilterText($MyRank->Name)?>
=strlen($GroupInfo->description) ? nl2br(Polygon::FilterText($GroupInfo->description)) : "No description available."?>
Permissions->CanViewGroupStatus) { ?>=$Status->username?> - =GetReadableTime($Status->timestamp, ["Threshold" => "1 day ago"])?>
Permissions->CanPostGroupStatus) { ?>Members: $MemberCount
Members: $MemberCount
Groups have the ability to create and sell official shirts, pants, and t-shirts! All revenue goes to group funds.
You are not currently in any groups. Search for some above, or create one!