Contact Us

Contact information and feedback form

Plug-in allows to output your contact information and the feedback form. Form fields are checked without page reboot, before form sending with Ajax.
For nonregistered users it is possible to use captcha (Plug-in CAPTCHA Manager and any from captcha plugins should be installed on your site).

Plugin version: 1.5.1

Design is easily customised with .tpl - file. At first it searches for the template file in "skins/vash_skin/plugins/contactus.tpl", if this file not exists, it uses temlate from the plug-in folder.

Easy localisation with the the lang - files. Included: english, russian

Requirements: jQuery

Installation:
- copy "contactus" folder from archive into "plugins" folder on your server.
- Install and configure plugin in the administrator panel
- In language files in a folder "plugins/contactus/lang" enter meta tags "description" and "keywords" content in variables $L['plu_meta_desc'] and $L['plu_meta_keywords'] accordingly.

Not minifed JS file also included.

forum topic here

archive updated 25.06.2010
- some usability improvements.
 

Плагин позволяющий вывести контактную информацию и форму обратной связи. Поля формы проверяются без перезагрузки страницы, перед отправкой формы с применением Ajax.
Для незарегистрированных пользователей можно использовать капчу (Плагин CAPTCHA Manager и какая-нибудь из капчей должны быть установлены на Вашем сайте).

Внешний вид легко настраивается при помощи .tpl - файла. Сначала ищет шаблон по адресу skins/ваш_скин/plugins/contactus.tpl, если не находит его, то берет его из папки плагина.

Локализуется при помощи lang - файлов. Включены: русский, english

Требования: jQuery

Установка:
- Скопировать папку contactus из архива в папку plugins на сервере.
- В панели управления установить и настроить плагин
- В языковых файлах в папке "plugins/contactus/lang" прописать содержимое мета тегов description и keywords в переменные $L['plu_meta_desc'] и $L['plu_meta_keywords'] соответственно

Дополнительно в архиве есть не минифицированная версия JS файла.

Архив перезалит 22.11.2009.
- добавлена возможность прописать содержимое мета тегов description и keywords в языковые файлы
 

1. ez  2009-11-19 23:21
I will give it a go.. I need this plugin.. I was thinking about taking the seditio plugin, but now it is available here :)

Thanks
2. Alex300  2009-11-21 03:36
forum topic here
Archive updated 20.11.2009.
3. Oughtem  2010-10-21 03:43
Плуг рабочий и приятный в управлении. Для современного ПХП написан. Если не работает возможно функция json_encode() не работает. Вместо неё можно сразу после if (!defined('SED_CODE')) { die('Wrong URL.'); } в файле contactus.ajax.php втыкнуть такую шнягу:


function json_encode_string($in_str)
{
mb_internal_encoding("UTF-8");
$convmap = array(0x80, 0xFFFF, 0, 0xFFFF);
$str = "";
for($i=mb_strlen($in_str)-1; $i>=0; $i--)
{
$mb_char = mb_substr($in_str, $i, 1);
if(mb_ereg("&#(\\d+);", mb_encode_numericentity($mb_char, $convmap, "UTF-8"), $match))
{
$str = sprintf("\\u%04x", $match[1]) . $str;
}
else
{
$str = $mb_char . $str;
}
}
return $str;
}
function php_json_encode($arr)
{
$json_str = "";
if(is_array($arr))
{
$pure_array = true;
$array_length = count($arr);
for($i=0;$i<$array_length;$i++)
{
if(! isset($arr[$i]))
{
$pure_array = false;
break;
}
}
if($pure_array)
{
$json_str ="[";
$temp = array();
for($i=0;$i<$array_length;$i++)
{
$temp[] = sprintf("%s", php_json_encode($arr[$i]));
}
$json_str .= implode(",",$temp);
$json_str .="]";
}
else
{
$json_str ="{";
$temp = array();
foreach($arr as $key => $value)
{
$temp[] = sprintf("\"%s\":%s", $key, php_json_encode($value));
}
$json_str .= implode(",",$temp);
$json_str .="}";
}
}
else
{
if(is_string($arr))
{
$json_str = "\"". json_encode_string($arr) . "\"";
}
else if(is_numeric($arr))
{
$json_str = $arr;
}
else
{
$json_str = "\"". json_encode_string($arr) . "\"";
}
}
return $json_str;
}

if (!function_exists('json_encode')){
function json_encode($arr){
return php_json_encode($arr);
}
}


тогда уж точно всё ок))
4. ruben  2012-12-19 18:14

I installed both Contact Us plugin and CAPTCHA Manager plugin, but how can i intergrate the captcha in the contact us form?

Only registered users can post new comments