Functions
This section provides prebuilt functions to fetch information from various parts of your website. These functions are designed to streamline your development process.
Users
These functions help manage and retrieve user data from your website.
getUsersWithGroup
Parameter | Type | Description |
---|---|---|
group | string/array | The name(s) or ID(s) of the group(s). |
order | string | Specifies the order, either ASC or DESC . |
limit | int | Specifies the number of user to return. Max 100. Default 100. |
Limit: 100 users
Usage:
print_r(getUsersWithGroup("admin", "ASC"));
print_r(getUsersWithGroup(["admin", "owners"], "DESC"));
getUsers
Parameter | Type | Description |
---|---|---|
order | string | Specifies the order, either ASC or DESC . |
limit | int | Specifies the number of user to return. Max 100. Default 100. |
Limit: 100 users
Usage:
print_r(getUsers("ASC", 30));
print_r(getUsers("DESC",60));
getUser
Parameter | Type | Description |
---|---|---|
id | integer | The ID of the user. |
Usage:
print_r(getUser(1));
Forum
These functions assist in retrieving forum-related data.
getForumCategories
Returns all forum categories.
Usage:
print_r(getForumCategories());
getForumCategoriesNews
Returns all categories marked as news.
Usage:
print_r(getForumCategoriesNews());
getForumCategory
Parameter | Type | Description |
---|---|---|
id | integer | The ID of the forum category. |
Usage:
print_r(getForumCategory(609));
getForumCategoriesWithParent
Parameter | Type | Description |
---|---|---|
parentId | integer | The ID of the parent category. |
Usage:
print_r(getForumCategoriesWithParent(609));
Plugin Integrations
Retrieves an array of all enabled integrations for a specified game and integration type.
integrationsGetEnabledPlugins
Parameter | Type | Description |
---|---|---|
game | string | The name of the game. |
integration | string | The name of integration. |
Usage:
print_r(integrationsGetEnabledPlugins('cs2','punishments'));