Помогите разобраться с phpBB
Установил новый стиль, но антиспам работает очень плохо
При попытке выбрать в качестве проверки на бота "текстовых вопросов" - они не отображаются. Висит вопрос: введите код подтверждения(без кода)
как понимаю, проблема в ucp_register.html
Привожу код
ucp_register.html
1 <?php if (!defined('IN_PHPBB')) exit; $this->_tpl_include('overall_header.html'); ?>
2
3
4 <script type="text/javascript">
5 // <![CDATA[
6 /**
7 * Change language
8 */
9 function change_language(lang_iso)
10 {
11 document.forms['register'].change_lang.value = lang_iso;
12 document.forms['register'].submit.click();
13 }
14
15 // ]]>
16 </script>
17
18 <form name="register" method="post" action="<?php echo (isset($this->_rootref['S_UCP_ACTION'])) ? $this->_rootref['S_UCP_ACTION'] : ''; ?>">
19
20 <table class="tablebg" width="100%" cellspacing="1">
21 <tr>
22 <th colspan="2" valign="middle"><?php echo ((isset($this->_rootref['L_REGISTRATION'])) ? $this->_rootref['L_REGISTRATION'] : ((isset($user->lang['REGISTRATION'])) ? $user->lang['REGISTRATION'] : '{ REGISTRATION }')); ?></th>
23 </tr>
24
25 <?php if ($this->_rootref['ERROR']) { ?>
26
27 <tr>
28 <td class="row3" colspan="2" align="center"><span class="gensmall error"><?php echo (isset($this->_rootref['ERROR'])) ? $this->_rootref['ERROR'] : ''; ?></span></td>
29 </tr>
30 <?php } if ($this->_rootref['L_REG_COND']) { ?>
31
32 <tr>
33 <td class="row2" colspan="2"><span class="gensmall"><?php echo ((isset($this->_rootref['L_REG_COND'])) ? $this->_rootref['L_REG_COND'] : ((isset($user->lang['REG_COND'])) ? $user->lang['REG_COND'] : '{ REG_COND }')); ?></span></td>
34 </tr>
35 <?php } if (sizeof($this->_tpldata['profile_fields'])) { ?>
36
37 <tr>
38 <td class="row2" colspan="2"><span class="gensmall"><?php echo ((isset($this->_rootref['L_ITEMS_REQUIRED'])) ? $this->_rootref['L_ITEMS_REQUIRED'] : ((isset($user->lang['ITEMS_REQUIRED'])) ? $user->lang['ITEMS_REQUIRED'] : '{ ITEMS_REQUIRED }')); ?></span></td>
39 </tr>
40 <?php } ?>
41
42
43 <tr>
44 <td class="row1" width="38%"><b class="genmed"><?php echo ((isset($this->_rootref['L_USERNAME'])) ? $this->_rootref['L_USERNAME'] : ((isset($user->lang['USERNAME'])) ? $user->lang['USERNAME'] : '{ USERNAME }')); ?>: </b><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_USERNAME_EXPLAIN'])) ? $this->_rootref['L_USERNAME_EXPLAIN'] : ((isset($user->lang['USERNAME_EXPLAIN'])) ? $user->lang['USERNAME_EXPLAIN'] : '{ USERNAME_EXPLAIN }')); ?></span></td>
45 <td class="row2"><input class="post" type="text" name="username" size="25" value="<?php echo (isset($this->_rootref['USERNAME'])) ? $this->_rootref['USERNAME'] : ''; ?>" /></td>
46 </tr>
47 <tr>
48 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_EMAIL_ADDRESS'])) ? $this->_rootref['L_EMAIL_ADDRESS'] : ((isset($user->lang['EMAIL_ADDRESS'])) ? $user->lang['EMAIL_ADDRESS'] : '{ EMAIL_ADDRESS }')); ?>: </b></td>
49 <td class="row2"><input class="post" type="text" name="email" size="25" maxlength="100" value="<?php echo (isset($this->_rootref['EMAIL'])) ? $this->_rootref['EMAIL'] : ''; ?>" /></td>
50 </tr>
51 <tr>
52 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_CONFIRM_EMAIL'])) ? $this->_rootref['L_CONFIRM_EMAIL'] : ((isset($user->lang['CONFIRM_EMAIL'])) ? $user->lang['CONFIRM_EMAIL'] : '{ CONFIRM_EMAIL }')); ?>: </b></td>
53 <td class="row2"><input class="post" type="text" name="email_confirm" size="25" maxlength="100" value="<?php echo (isset($this->_rootref['EMAIL_CONFIRM'])) ? $this->_rootref['EMAIL_CONFIRM'] : ''; ?>" /></td>
54 </tr>
55 <tr>
56 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_PASSWORD'])) ? $this->_rootref['L_PASSWORD'] : ((isset($user->lang['PASSWORD'])) ? $user->lang['PASSWORD'] : '{ PASSWORD }')); ?>: </b><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_PASSWORD_EXPLAIN'])) ? $this->_rootref['L_PASSWORD_EXPLAIN'] : ((isset($user->lang['PASSWORD_EXPLAIN'])) ? $user->lang['PASSWORD_EXPLAIN'] : '{ PASSWORD_EXPLAIN }')); ?></span></td>
57 <td class="row2"><input class="post" type="password" name="new_password" size="25" value="<?php echo (isset($this->_rootref['PASSWORD'])) ? $this->_rootref['PASSWORD'] : ''; ?>" /></td>
58 </tr>
59 <tr>
60 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_CONFIRM_PASSWORD'])) ? $this->_rootref['L_CONFIRM_PASSWORD'] : ((isset($user->lang['CONFIRM_PASSWORD'])) ? $user->lang['CONFIRM_PASSWORD'] : '{ CONFIRM_PASSWORD }')); ?>: </b></td>
61 <td class="row2"><input class="post" type="password" name="password_confirm" size="25" value="<?php echo (isset($this->_rootref['PASSWORD_CONFIRM'])) ? $this->_rootref['PASSWORD_CONFIRM'] : ''; ?>" /></td>
62 </tr>
63 <tr>
64 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_LANGUAGE'])) ? $this->_rootref['L_LANGUAGE'] : ((isset($user->lang['LANGUAGE'])) ? $user->lang['LANGUAGE'] : '{ LANGUAGE }')); ?>: </b></td>
65 <td class="row2"><select name="lang" onchange="change_language(this.value); return false;"><?php echo (isset($this->_rootref['S_LANG_OPTIONS'])) ? $this->_rootref['S_LANG_OPTIONS'] : ''; ?></select></td>
66 </tr>
67 <tr>
68 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_TIMEZONE'])) ? $this->_rootref['L_TIMEZONE'] : ((isset($user->lang['TIMEZONE'])) ? $user->lang['TIMEZONE'] : '{ TIMEZONE }')); ?>: </b></td>
69 <td class="row2"><select name="tz"><?php echo (isset($this->_rootref['S_TZ_OPTIONS'])) ? $this->_rootref['S_TZ_OPTIONS'] : ''; ?></select></td>
70 </tr>
71 <?php $_profile_fields_count = (isset($this->_tpldata['profile_fields'])) ? sizeof($this->_tpldata['profile_fields']) : 0;if ($_profile_fields_count) {for ($_profile_fields_i = 0; $_profile_fields_i < $_profile_fields_count; ++$_profile_fields_i){$_profile_fields_val = &$this->_tpldata['profile_fields'][$_profile_fields_i]; ?>
72
73 <tr>
74 <td class="row1" width="35%">
75 <b class="genmed"><?php echo $_profile_fields_val['LANG_NAME']; ?>: </b>
76 <?php if ($_profile_fields_val['S_REQUIRED']) { ?><b>*</b><?php } if ($_profile_fields_val['LANG_EXPLAIN']) { ?><br /><span class="gensmall"><?php echo $_profile_fields_val['LANG_EXPLAIN']; ?></span><?php } ?>
77
78 </td>
79 <td class="row2"><?php echo $_profile_fields_val['FIELD']; if ($_profile_fields_val['ERROR']) { ?><br /><span class="gensmall error"><?php echo $_profile_fields_val['ERROR']; ?></span><?php } ?></td>
80 </tr>
81 <?php }} if ($this->_rootref['S_CONFIRM_CODE']) { ?>
82
83 <tr>
84 <th colspan="2" valign="middle"><?php echo ((isset($this->_rootref['L_CONFIRMATION'])) ? $this->_rootref['L_CONFIRMATION'] : ((isset($user->lang['CONFIRMATION'])) ? $user->lang['CONFIRMATION'] : '{ CONFIRMATION }')); ?></th>
85 </tr>
86 <tr>
87 <td class="row3" colspan="2"><span class="gensmall"><?php echo ((isset($this->_rootref['L_CONFIRM_EXPLAIN'])) ? $this->_rootref['L_CONFIRM_EXPLAIN'] : ((isset($user->lang['CONFIRM_EXPLAIN'])) ? $user->lang['CONFIRM_EXPLAIN'] : '{ CONFIRM_EXPLAIN }')); ?></span></td>
88 </tr>
89 <tr>
90 <td class="row1" colspan="2" align="center"><?php echo (isset($this->_rootref['CONFIRM_IMG'])) ? $this->_rootref['CONFIRM_IMG'] : ''; ?></td>
91 </tr>
92 <tr>
93 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_CONFIRM_CODE'])) ? $this->_rootref['L_CONFIRM_CODE'] : ((isset($user->lang['CONFIRM_CODE'])) ? $user->lang['CONFIRM_CODE'] : '{ CONFIRM_CODE }')); ?>: </b><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_CONFIRM_CODE_EXPLAIN'])) ? $this->_rootref['L_CONFIRM_CODE_EXPLAIN'] : ((isset($user->lang['CONFIRM_CODE_EXPLAIN'])) ? $user->lang['CONFIRM_CODE_EXPLAIN'] : '{ CONFIRM_CODE_EXPLAIN }')); ?></span></td>
94 <td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
95 </tr>
96 <?php } if ($this->_rootref['S_COPPA']) { ?>
97
98 <tr>
99 <th colspan="2" valign="middle"><?php echo ((isset($this->_rootref['L_COPPA_COMPLIANCE'])) ? $this->_rootref['L_COPPA_COMPLIANCE'] : ((isset($user->lang['COPPA_COMPLIANCE'])) ? $user->lang['COPPA_COMPLIANCE'] : '{ COPPA_COMPLIANCE }')); ?></th>
100 </tr>
101 <tr>
102 <td class="row3" colspan="2"><span class="gensmall"><?php echo ((isset($this->_rootref['L_COPPA_EXPLAIN'])) ? $this->_rootref['L_COPPA_EXPLAIN'] : ((isset($user->lang['COPPA_EXPLAIN'])) ? $user->lang['COPPA_EXPLAIN'] : '{ COPPA_EXPLAIN }')); ?></span></td>
103 </tr>
104 <?php } ?>
105
106
107 <tr>
108 <td class="cat" colspan="2" align="center"><?php echo (isset($this->_rootref['S_HIDDEN_FIELDS'])) ? $this->_rootref['S_HIDDEN_FIELDS'] : ''; ?><input class="btnmain" type="submit" name="submit" id="submit" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" /> <input class="btnlite" type="reset" value="<?php echo ((isset($this->_rootref['L_RESET'])) ? $this->_rootref['L_RESET'] : ((isset($user->lang['RESET'])) ? $user->lang['RESET'] : '{ RESET }')); ?>" name="reset" /></td>
109 </tr>
110 </table>
111 <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
112
113 </form>
114
115 <?php $this->_tpl_include('overall_footer.html'); ?>
116
Закрыть окно
Решения найти на офф сайтах не смог, буду благодарен за помощь!
Проблему решил следующим образом - скопировал все недостающие файлы из стиля Вячеслава Трушкина (возможно можно из стандартных) и заменил файл ucp_register.html, Очистил кеш.
Текстовые вопросы заработали. Тему можно закрывать
Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.
|
Сообщение отредактировал nektoo - 7.12.2011, 0:01