From 228b2d071b5998103d1951608d524cb64eee3e8f Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 13 Jul 2023 13:04:22 +0200 Subject: [PATCH] Add: show_if - account_mail_verify --- system/settings.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/system/settings.php b/system/settings.php index 05b8c01f..ce70caf5 100644 --- a/system/settings.php +++ b/system/settings.php @@ -422,27 +422,39 @@ Sent by MyAAC,
'desc' => 'should country of user be automatically recognized by his IP? This makes an external API call to http://ipinfo.io', 'default' => true, ], - [ + 'account_mail_confirmed_reward' => [ 'type' => 'section', - 'title' => 'Reward Users for confirming their E-Mails. Works only with Account Mail Verify enabled' + 'title' => 'Reward Users for confirming their E-Mails. Works only with Account Mail Verify enabled', + 'show_if' => [ + 'account_mail_verify', '=', 'true' + ], ], 'account_mail_confirmed_reward_premium_days' => [ 'name' => 'Reward Premium Points', 'type' => 'number', 'desc' => '0 to disable', 'default' => 0, + 'show_if' => [ + 'account_mail_verify', '=', 'true' + ], ], 'account_mail_confirmed_reward_premium_points' => [ 'name' => 'Reward Premium Points', 'type' => 'number', 'desc' => '0 to disable', 'default' => 0, + 'show_if' => [ + 'account_mail_verify', '=', 'true' + ], ], 'account_mail_confirmed_reward_coins' => [ 'name' => 'Reward Premium Points', 'type' => 'number', 'desc' => '0 to disable. Works only with servers that supports coins', 'default' => 0, + 'show_if' => [ + 'account_mail_verify', '=', 'true' + ], ], [ 'type' => 'category',