Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Пользовательское соглашение при регистрации #85

Closed
vlad7090 opened this issue Jan 17, 2016 · 7 comments

Comments

@vlad7090
Copy link

В связи с законом о перс.данных, некоторые проекты нуждаются в такой фишке. По сути в настройках регистрации если заполнить поле "Пользовательское соглашение", то во фронте при регистрации выводить это поле и чекбокс для подтверждения согласия.

@Maratakziaplus
Copy link

Согласен

@globator88
Copy link

В принципе нужная вещь. Но пока можно на странице регистрации написать что "Регистрируясь вы соглашаетесь..." и дать ссылку на правила сайта.

@nomad48
Copy link

nomad48 commented Feb 25, 2016

Я так сделал пока: в файле ...\templates\ваш_шаблон\controllers\auth\registration.tpl.php
`controller->options['is_reg_enabled']){ ?>

<p><?php echo $this->controller->options['reg_reason']; ?></p>
<?php return; ?>
renderForm($form, $user, array( 'action' => href_to('auth', 'register'), 'method' => 'post', 'append_html' => $captcha_html, 'submit' => array( 'title' => LANG_CONTINUE ) ), $errors); ?>

Нажимая кнопку «Продолжить», Вы принимаете условия Пользовательского соглашения

<script> ``` function toggleGroups(){ if ($('select#group_id').length == 0){ return false; } var group_id = $('select#group_id').val(); $('.groups-limit').hide(); $('.group-' + group_id).show(); $('fieldset').each(function(){ if ($('.field:visible', $(this)).length==0) { $(this).hide(); } if ($('.group-' + group_id, $(this)).length>0) { $(this).show(); } }); } $(document).ready(function(){ if ($('select#group_id').length == 0){ return false; } $('select#group_id').change(function(){ toggleGroups(); }); }); toggleGroups(); ``` </script>`

@my-instantcms
Copy link
Contributor

@nomad48
Copy link

nomad48 commented Feb 25, 2016

@my-instantcms о хорошее решение, попробую. Спасибо.

@EnotAlex
Copy link

EnotAlex commented Mar 5, 2016

поддерживаю, но это должно быть в коробке, потом просто замучаетесь изменять каждую приблуду после обновления.

@fuzegit
Copy link
Member

fuzegit commented Oct 16, 2020

#1253

@fuzegit fuzegit closed this as completed Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants