Skip to main content

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

ParameterTypeDescription
groupstring/arrayThe name(s) or ID(s) of the group(s).
orderstringSpecifies the order, either ASC or DESC.
limitintSpecifies 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

ParameterTypeDescription
orderstringSpecifies the order, either ASC or DESC.
limitintSpecifies 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

ParameterTypeDescription
idintegerThe 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

ParameterTypeDescription
idintegerThe ID of the forum category.

Usage:

print_r(getForumCategory(609));

getForumCategoriesWithParent

ParameterTypeDescription
parentIdintegerThe 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

ParameterTypeDescription
gamestringThe name of the game.
integrationstringThe name of integration.

Usage:

print_r(integrationsGetEnabledPlugins('cs2','punishments'));