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: owner)?>

Members: MemberCount?>

Level == 0) { ?> = 20) { ?>

My Rank: Name)?>

name)?>

description) ? nl2br(Polygon::FilterText($GroupInfo->description)) : "No description available."?>

Permissions->CanViewGroupStatus) { ?>
text)?>

username?> - timestamp, ["Threshold" => "1 day ago"])?>

Permissions->CanPostGroupStatus) { ?>

Groups have the ability to create and sell official shirts, pants, and t-shirts! All revenue goes to group funds.

Permissions->CanViewGroupWall) { ?>
Wall
Permissions->CanPostOnGroupWall) { ?>

"data-src="$avatar" class="img-fluid">

$content

$time by $usernamePermissions->CanDeleteGroupWallPosts) { ?> | Delete
Level != 0) { ?>
Controls
Permissions->CanManageGroupAdmin) { ?>Group Admin owner != SESSION["user"]["id"]) { ?> Permissions->CanViewAuditLog) { ?>Audit Log

You are not currently in any groups. Search for some above, or create one!