- Совместимость
-
- Лицензия
Модуль с помощью которого ваши игроки смогут устанавливать себе в профиль баннер.
Данной модуль для версии 3.681 и выше. Для версий от 3.665 до 3.676 - *Кликабельно*
Данной модуль для версии 3.681 и выше. Для версий от 3.665 до 3.676 - *Кликабельно*
Для исправления данной ошибки вам нужно добавить:
В файл inc/classes/GameCMS/Models/Users.php
После строчки
И должно получиться вот так:
PHP:
public ?string $cover;
public ?int $cover_unlocked;
public ?int $cover_changes;
После строчки
PHP:
public ?int $member_online = null;
PHP:
public ?int $invited = null;
public ?int $email_notice = null;
public ?string $ip = null;
public ?string $browser = null;
public ?string $multi_account = null;
public ?int $gag = null;
public ?string $plugins_settings = null;
public ?int $game_money = null;
public ?int $member_online = null;
public ?string $cover;
public ?int $cover_unlocked;
public ?int $cover_changes;
PHP:
<?php
namespace GameCMS\Models;
class User
{
public ?int $id = null;
public ?string $login = null;
public ?string $password = null;
public ?string $email = null;
public ?string $route = null;
public ?string $regdate = null;
public ?string $avatar = null;
public ?string $rights = null;
public ?string $name = null;
public ?string $nick = null;
public ?string $discord = null;
public ?string $vk = null;
public ?string $birth = null;
public ?string $signature = null;
public ?int $answers = null;
public ?float $shilings = null;
public ?int $stickers = null;
public ?int $thanks = null;
public ?string $last_activity = null;
public ?int $dell = null;
public ?int $last_topic = null;
public ?int $reit = null;
public ?int $proc = null;
public ?string $steam_id = null;
public ?string $steam_api = null;
public ?string $vk_api = null;
public ?string $fb = '0';
public ?string $fb_api = '0';
public ?int $active = null;
public ?int $im = null;
public ?string $telegram = null;
public ?string $prefix = null;
public ?int $game_time = null;
public ?int $protect = null;
public ?int $invited = null;
public ?int $email_notice = null;
public ?string $ip = null;
public ?string $browser = null;
public ?string $multi_account = null;
public ?int $gag = null;
public ?string $plugins_settings = null;
public ?int $game_money = null;
public ?int $member_online = null;
public ?string $cover;
public ?int $cover_unlocked;
public ?int $cover_changes;
public function getRightsName(): string
{
return users_groups()[$this->rights]['name'] ?: 'Неизвестно';
}
public function getRightsColor(): string
{
return users_groups()[$this->rights]['color'] ?: '';
}
public function isOnline(): bool
{
static $onlineUsers = null;
if ($onlineUsers === null) {
$onlineUsers = pdo()
->query('SELECT users__online.user_id FROM users__online')
->fetchAll(\PDO::FETCH_COLUMN) ?? [];
}
return in_array($this->id, $onlineUsers);
}
public static function fromArray($array): self
{
$user = new self();
foreach ($array as $name => $value) {
$user->{$name} = $value;
}
return $user;
}
/**
* @return array{?string, ?string}
*/
public function getGamerParams(): array
{
$steamId = null;
$nick = null;
if (configsSecondary()->match_gamer_by_steam_id == 1 && $this->steam_id) {
$steamId = $this->steam_id;
}
if (configsSecondary()->match_gamer_by_nick == 1 && $this->nick) {
$nick = $this->nick;
}
return [$steamId, $nick];
}
}
- Установка и настройка
-
1. Устанавливает модуль *Гайд*
2. Остальная настройка указана в информации о модуле