Hi Bob!
I have work a little this Saturday and should like to show you the modified path, included the manual in English and in Russian (
"!README.TXT" file in archive).
There are the some additional features now.
"!README.TXT":
====================================================================
FOR USERS WHO DON'T USE THE RUSSIAN LANGUAGE
====================================================================
-------
Read the manual in "ChronoForms and MooTools 1.2.pdf" file, then copy the contents of "files" folder to the root folder of your site (/public_html usually), included files of "administrator" folder (there are not the instructions of this file in PDF manual, but you need to do that for using the additional features).
-------
Additional features:
I. Alpha and AlphaNum validate not only Latin symbols, but Cyrillic symbols too, included the letters "ё" and "Ё".
II. Usage the Digit Validation as the REALLY digit validation: real "digits only" — instead "numbers only", as the original version of Chronocontact component offers.
III. Usage the Digit Validation for the validation of international mobile phone numbers:
1. Open the file "/components/com_chronocontact/js/jsvalidation2.js";
2. Run to the line 96 under lhe line "//Digit Validation:" (95);
3. Comment the line "pattern:..." (line 96);
4. Uncomment the line 94 under the line "//Mobile Phone Numbers Validation:" (93);
5. Save the modified file "/components/com_chronocontact/js/jsvalidation2.js" using the original encoding.
6. Modify the validation message of your form using Backend of Joomla.
IV. Changing the function "validation currency" to the carrency that you need to validate in your form (if there is the carrency field in this form).
The carrency validation feature is set to "universal" by default — i.e. you don't need to include the currency symbols to the input field. For changing carrency validation to Dollar ($), Euro (€) or Rubles (" руб."):
1. Open the file "/components/com_chronocontact/js/jsvalidation2.js";
2. Run to the line "//Carrency validation" (line 167);
3. Comment the line "pattern:..." (line 184) under the line "//Universal pattern without currency indication" (line 183);
4. Uncomment the line that you need (172, 175 or 181) under the "//Carrency validation" (line 167);
5. Save the modified file "/components/com_chronocontact/js/jsvalidation2.js" using the original encoding.
-------
Patch author: Bob Janes aka GreyHead (www.GrayHead.net)
Additional features author: Kirill Svetitskiy aka T34 (swetit@gmail.com, www.Svetitskiy.com)
====================================================================
РУССКОЯЗЫЧНЫЙ МАНУАЛ
====================================================================
Данный патч позволяет использовать компонент Chronoforms для CMS Joomla! совместно с плагином "System - Mootools Upgrade".
Установка патча делает возможным одновременное использование Mootools 1.0 для Backend (что требует Chronoforms 3.1 RC5.5) и Mootools 1.2 для Frontend, что могут требовать некоторые шаблоны и иные расширения Joomla.
-------
Для установки патча:
1. В текстовом редакторе, позволяющем редактировать исходный код, откройте файл plugins/system/mtupgrade.php и перейдите к функции onAfterInitialise() в самом конце кода (строка 46). Замените эту функцию на следующую:
function onAfterInitialise()
{
global $mainframe;
if ( $mainframe->isSite() ) {
JHTML::addIncludePath(JPATH_PLUGINS.DS.'system'.DS.'mtupgrade');
}
}
2. Скопируйте содержимое папки "files" в корень вашего сайта.
-------
Патч расширен и адаптирован для России:
I. Валидация Alpha и AlphaNum теперь допускает ввод не только латиницы, но и кириллицы, включая буквы "ё" и "Ё".
II. Валидация Digit теперь действительно разрешает только цифры — и ничего, кроме них.
III. Возможно использование валидации Digit для проверки номеров мобильных телефонов как в международном, так и в российском форматах, например 8 (916) 123 45 76 или +39-098-334-7654.
Чтобы включить это расширение:
1. Откройте в текстовом редакторе, позволяющем редактировать исходный код, файл "/components/com_chronocontact/js/jsvalidation2.js";
2. Закомментируйте строку 96, расположенную под строкой "//Digit Validation:" (95);
3. Раскомментируйте строку 94, расположенную под строкой "//Mobile Phone Numbers Validation:" (93);
4. Сохраните изменённый файл "/components/com_chronocontact/js/jsvalidation2.js" в той же кодировке.
5. Измените текст об ошибке валидации, используя панель управления вашей формой в административной панели сайта.
IV. Возможна валидация ввода валюты не только в долларах США (символ "$" перед числом), но также в любой иной валюте (без её указания) или с указанием Евро (как символа "€" перед числом) и Рубля (" руб." после числа).
По умолчанию установлена валидация без указания типа валюты. Чтобы иметь возможность валидации нужного Вам типа валюты:
1. Откройте в текстовом редакторе, позволяющем редактировать исходный код, файл "/components/com_chronocontact/js/jsvalidation2.js";
2. Перейдите к строке 156 и действуйте согласно расположенной там инструкции.
3. Сохраните изменённый файл "/components/com_chronocontact/js/jsvalidation2.js" в той же кодировке.
-------
Автор патча: Bob Janes aka GreyHead (www.GreyHead.net)
Автор расширений: Кирилл Светицкий aka T34 (swetit@gmail.com, www.Svetitskiy.com)
====================================================================
May be it helps users of Chronoforms to be happy. 😀
The modified patch is:
CF_MooTools_1.2_v.2.zipThanks a lot for your real help!