NaFanyA Posted February 21, 2022 Report Share Posted February 21, 2022 Тема создана для новичков движка VII Engine. Заходим в файл register_main.php и находим строку: $sql_country = $db->super_query("SELECT SQL_CALC_FOUND_ROWS * FROM `".PREFIX."_country` ORDER by `name` ASC", true, "country", true); ниже данной строки вставляем: $where_sql .= "WHERE user_email != ''"; $numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `".PREFIX."_users` {$where_sql}"); $tpl->set('{cnt}', $numRows['cnt']); Переходим в файл reg.tpl и в нужное вам место вставляем: {cnt} 1 Quote Link to comment Share on other sites More sharing options...
KirKMS Posted February 22, 2022 Report Share Posted February 22, 2022 Больше всего не понятно вот это $where_sql .= "WHERE user_email != ''"; Зачем выносить в отдельную переменную. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.