#1
12 ноября 2016 в 22:17
Доброго времени суток, уже несколько месяцев искал решение и не смог найти. Нужно вывести регистрацию как виджет 2х. Помогите ребята создаю виджет ошибка. Не получается.
Вот код registration.tpl
Но все равно не работает кто может помочь. Код авторизации легкий, но регистрации не пойму.
<?php $this->setPageTitle(LANG_REGISTRATION); ?> <?php $this->addBreadcrumb(LANG_REGISTRATION); ?> <h1><?php echo LANG_REGISTRATION; ?></h1> <?php if (!$this->controller->options['is_reg_enabled']){ ?> <p><?php echo $this->controller->options['reg_reason']; ?></p> <?php return; ?> <?php } ?> <?php 'action' => href_to('auth', 'register'), 'method' => 'post', 'append_html' => $captcha_html, '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().find('input, select, textarea').prop('required', false); $('.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>