Added ability to reset ratio (#1545)

* Minor improvements

* Update index_data.php

* Updated

* Update usercp_viewprofile.tpl

* Update mysql.sql

* Update main.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-07-19 14:25:47 +07:00 committed by GitHub
commit 0eba082d41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 61 additions and 2 deletions

View file

@ -74,6 +74,12 @@ if (bf($profiledata['user_opt'], 'user_opt', 'dis_sig')) {
$signature = bbcode2html($signature);
}
// Null ratio
if ($bb_cfg['ratio_null_enabled']) {
$btu = get_bt_userdata($profiledata['user_id']);
$template->assign_vars(array('NULLED_RATIO' => (bool)$btu['ratio_nulled']));
}
// Ban information
if ($banInfo = getBanInfo((int)$profiledata['user_id'])) {
$template->assign_block_vars('ban', [