Jump to content
CMSTOOLS.org - форум поддержки и развития CMS

[VII]Счетчик пользователей на страницу регистрации

Recommended Posts

Тема создана для новичков движка 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 и в нужное вам место вставляем:



  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...