Перестало работать в версии форума 3.0.9
При настройке вот такая ошибка
Код: Выделить всё
Index name 'phpbb_captcha_sortables_questions_lang_iso' on table 'phpbb_captcha_sortables_questions' is too long. The maximum is 24 characters.Код: Выделить всё
Index name 'phpbb_captcha_sortables_questions_lang_iso' on table 'phpbb_captcha_sortables_questions' is too long. The maximum is 24 characters.Код: Выделить всё
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/js/jquery-{SORTABLES_JQUERY_VERSION}.min.js"></script>

Код: Выделить всё
TypeError: $(...).sortable is not a function
http://test1.ru/ucp.php?mode=register (строка 269, столбец 2)
placeholder: 'bg3'
Код: Выделить всё
$(function() {
// Javascript nubs
document.getElementById('enable_js').style.display = 'block';
$("#sortable1, #sortable2").sortable({
connectWith: '.connectedSortable',
items: 'li',
forcePlaceholderSize: true,
placeholder: 'bg3'
}).disableSelection();
$("#sortable1, #sortable2").bind('sortreceive', function(event, ui) {
// If the left or right column receive an item, put the child nodes in an array
var arrSortableListItemsLeft = $( "#sortable1" ).children();
var arrSortableListItemsRight = $( "#sortable2" ).children();
// And create hidden input fields
createdata(arrSortableListItemsLeft, 'sortables_options_left', '#sortables_options_left');
createdata(arrSortableListItemsRight, 'sortables_options_right', '#sortables_options_right');
});
});
// ]]>
</script>

sortable на момент вызова ещё не объявленаcaptcha_sortables.html подключён после jQuery?Код: Выделить всё
<!--[if lt IE 9]>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-2.0.3.min.js"></script>
<!--<![endif]-->
<script src="{T_THEME_PATH}/theme.js"></script>
Вы знаете, это первое, что мне пришло в голову. Но, когда я именно так вот сделал, капча все равно не работала (тупо не отображалась).xisp писал(а):Нужно это переместить в хедер, а подключение jquery от Sortables CAPTCHA убрать. Тогда все будут счастливы, и капча, и стиль форума.