Файл: admin/applications/core/xml/hooks/vkontakte.xml
Строк: 421
<?xml version="1.0" encoding="utf-8"?>
<hookexport>
<hookdata>
<config>
<hook_name>Формы авторизации Vkontakte</hook_name>
<hook_desc>Добавление форм Vkontakte в шаблоны</hook_desc>
<hook_author>IBResource, LTD</hook_author>
<hook_email>sales@ibresource.ru</hook_email>
<hook_website>http://www.ibresource.ru</hook_website>
<hook_update_check/>
<hook_requirements><![CDATA[a:3:{s:21:"required_applications";a:0:{}s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]></hook_requirements>
<hook_version_human>1.2.0</hook_version_human>
<hook_version_long>10200</hook_version_long>
<hook_extra_data><![CDATA[a:5:{s:7:"display";a:3:{s:9:"templates";s:81:"От skin_vkontakte: membersVkontakteConnect, vkInlineLogInService, vkServicesLim";s:8:"language";s:38:"От core_admin_js: bit_skin_vkontakte";s:8:"settings";s:73:"Группа настроек: Интеграция с Вконтакте";}s:9:"templates";a:1:{s:14:"skin_vkontakte";a:3:{s:0:"";s:23:"membersVkontakteConnect";i:1;s:20:"vkInlineLogInService";i:2;s:13:"vkServicesLim";}}s:8:"database";a:0:{}s:13:"settingGroups";a:1:{s:0:"";s:2:"vk";}s:8:"settings";a:0:{}}]]></hook_extra_data>
<hook_key>ibr_vkontakte_forms</hook_key>
<hook_global_caches/>
</config>
</hookdata>
<hookfiles>
<file>
<hook_file_real>vkontakte.php</hook_file_real>
<hook_type>templateHooks</hook_type>
<hook_classname>vk_register_form</hook_classname>
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:13:"skin_register";s:12:"skinFunction";s:12:"registerForm";s:4:"type";s:2:"if";s:2:"id";s:10:"twitterBox";s:8:"position";s:10:"post.endif";}]]></hook_data>
<hooks_source><![CDATA[<?php
class vk_register_form
{
public function getOutput()
{
if( IPSLib::loginMethod_enabled('vkontakte') === true )
{
return ipsRegistry::instance()->output->getTemplate('vkontakte')->vkInlineLogInService();
}
}
}]]></hooks_source>
</file>
<file>
<hook_file_real>vkontakte.php</hook_file_real>
<hook_type>templateHooks</hook_type>
<hook_classname>vk_lim</hook_classname>
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_global";s:12:"skinFunction";s:14:"globalTemplate";s:4:"type";s:2:"if";s:2:"id";s:10:"limTwitter";s:8:"position";s:10:"post.endif";}]]></hook_data>
<hooks_source><![CDATA[<?php
class vk_lim
{
public function getOutput()
{
if( IPSLib::loginMethod_enabled('vkontakte') === true )
{
return ipsRegistry::instance()->output->getTemplate('vkontakte')->vkServicesLim();
}
}
}]]></hooks_source>
</file>
<file>
<hook_file_real>vkontakte.php</hook_file_real>
<hook_type>templateHooks</hook_type>
<hook_classname>vk_login_form</hook_classname>
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:10:"skin_login";s:12:"skinFunction";s:13:"showLogInForm";s:4:"type";s:2:"if";s:2:"id";s:10:"twitterBox";s:8:"position";s:10:"post.endif";}]]></hook_data>
<hooks_source><![CDATA[<?php
class vk_login_form
{
public function getOutput()
{
if( IPSLib::loginMethod_enabled('vkontakte') === true )
{
return ipsRegistry::instance()->output->getTemplate('vkontakte')->vkInlineLogInService();
}
}
}]]></hooks_source>
</file>
<file>
<hook_file_real>vkontakte.php</hook_file_real>
<hook_type>templateHooks</hook_type>
<hook_classname>vk_ajax_login_form</hook_classname>
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_global";s:12:"skinFunction";s:11:"inlineLogin";s:4:"type";s:2:"if";s:2:"id";s:10:"twitterBox";s:8:"position";s:10:"post.endif";}]]></hook_data>
<hooks_source><![CDATA[<?php
class vk_ajax_login_form
{
public function getOutput()
{
if( IPSLib::loginMethod_enabled('vkontakte') === true )
{
return ipsRegistry::instance()->output->getTemplate('vkontakte')->vkInlineLogInService();
}
}
}]]></hooks_source>
</file>
</hookfiles>
<hookextras_settings>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_title>Интеграция с Вконтакте</conf_title_title>
<conf_title_desc>Настройки для соединения с Вконтакте</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
<conf_title_keyword>vk</conf_title_keyword>
<conf_title_app>core</conf_title_app>
<conf_title_tab>System</conf_title_tab>
</setting>
<setting>
<conf_id>38</conf_id>
<conf_title>ID приложения</conf_title>
<conf_description>ID выдается после создания приложения Вконтакте.</conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>vk_api_id</conf_key>
<conf_value/>
<conf_default/>
<conf_extra/>
<conf_evalphp/>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_start_group/>
<conf_add_cache>1</conf_add_cache>
<conf_keywords/>
<conf_title_keyword>vk</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>
<setting>
<conf_id>37</conf_id>
<conf_title>Включить соединение с Вконтакте?</conf_title>
<conf_description><![CDATA[Первоначально вам НЕОБХОДИМО создать приложение Вконтакте. Сделать это можно <a href="http://vkontakte.ru/apps.php?act=add&site=1">здесь</a>]]></conf_description>
<conf_group>5</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>vk_enabled</conf_key>
<conf_value/>
<conf_default>0</conf_default>
<conf_extra/>
<conf_evalphp/>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group/>
<conf_add_cache>1</conf_add_cache>
<conf_keywords>vk, vkontakte</conf_keywords>
<conf_title_keyword>vk</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>
<setting>
<conf_id>41</conf_id>
<conf_title>Пользовательская группа по умолчанию</conf_title>
<conf_description>В эту группу будут попадать все пользователи, создавшие свой аккаунт на форуме через аккаунт Вконтакте. Опция не распространяет своего действия на пользователей, которые добавили свой Вконтакте аккаунт после обычной регистрации на форуме.</conf_description>
<conf_group>5</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>vk_mgid</conf_key>
<conf_value/>
<conf_default>3</conf_default>
<conf_extra>#show_groups#</conf_extra>
<conf_evalphp/>
<conf_protected>1</conf_protected>
<conf_position>5</conf_position>
<conf_start_group/>
<conf_add_cache>1</conf_add_cache>
<conf_keywords/>
<conf_title_keyword>vk</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>
<setting>
<conf_id>40</conf_id>
<conf_title>Защищенный ключ</conf_title>
<conf_description>Защищенный ключ выдается после создания приложения Вконтакте</conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>vk_secret</conf_key>
<conf_value/>
<conf_default/>
<conf_extra/>
<conf_evalphp/>
<conf_protected>1</conf_protected>
<conf_position>4</conf_position>
<conf_start_group/>
<conf_add_cache>1</conf_add_cache>
<conf_keywords/>
<conf_title_keyword>vk</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>
</hookextras_settings>
<hookextras_language/>
<hookextras_modules/>
<hookextras_help/>
<hookextras_templates>
<templates>
<template_group>skin_vkontakte</template_group>
<template_content><![CDATA[{parse striping="usercp" classes="row1,row2"}
<if test="!$isConnected">
<div>
<p class='message'>{$this->lang->words['vk_config']}</p>
<br />
<br />
<a href="{$this->settings['_original_base_url']}/interface/vkontakte/index.php"><img src="{$this->settings['img_url']}/vkontakte_login.png" alt="" /></a>
<br />
</div>
<else />
<div>
<div class='ipsPad row2 clearfix'>
<if test="vkHasPic:|:$userData['photo']">
<img src="{$userData['photo']}" alt='' class='left ipsUserPhoto ipsUserPhoto_medium' />
<div class='ipsBox_withphoto'>
</if>
<h2 class='ipsType_subtitle'>
{$this->lang->words['vk_logged_in_as']} <strong>{$userData['first_name']} {$userData['last_name']}</strong>
</h2>
<if test="tcHasPic:|:$userData['photo']">
</div>
</if>
</div>
<br />
<div class='right row2 ipsPad clearfix' style='width: 250px'>
<input type='button' class='ipsButton_secondary' id='vk_remove_start' value='{$this->lang->words['vk_disassociate']}' />
<div id='vk_remove_popup' style='display: none'>
<h3>{$this->lang->words['vk_disassociate']}</h3>
<div class='ipsPad'>
<p>{$this->lang->words['vk_revoke']}</p>
<p class='desc'>{$this->lang->words['vk_disassociate_desc']}</p>
<br />
<input type='button' class='ipsButton' id='vk_remove' value='{$this->lang->words['tc_disassociate_now']}' />
</div>
</div>
</div>
<if test="vkPassword:|:! $this->memberData['bw_local_password_set'] AND $this->memberData['members_created_remote']">
<div class='message'>
<strong>{$this->lang->words['remote_no_password']}</strong>
<p>{$this->lang->words['remote_no_password_1']} <a href='{parse url="app=core&module=usercp&tab=core&area=password" base="public"}'>{$this->lang->words['remote_no_password_2']}</a>
</p>
</div>
<br />
</if>
</div>
<script type="text/javascript">
$('vk_remove').observe( 'click', usercp_remove );
function usercp_remove(){
window.location = ipb.vars['base_url'] + 'app=core&module=usercp&tab=core&area=vkontakteRemove&do=custom&secure_key=' + ipb.vars['secure_hash'];
}
$('vk_remove_start').on('click', function(e){
new ipb.Popup( 'sign_in_popup', { type: 'pane',
initial: $('vk_remove_popup').show(),
hideAtStart: false,
hideClose: false,
modal: true,
w: '600px' } );
});
</script>
</if>
]]></template_content>
<template_name>membersVkontakteConnect</template_name>
<template_data>$isConnected, $userData</template_data>
<template_updated>1280738657</template_updated>
<template_removable>1</template_removable>
<template_added_to>1</template_added_to>
<template_user_added>1</template_user_added>
<template_user_edited>0</template_user_edited>
<template_master_key>root</template_master_key>
</templates>
<templates>
<template_group>skin_vkontakte</template_group>
<template_content><![CDATA[<li><a href="{$this->settings['_original_base_url']}/interface/vkontakte/index.php?_reg=1"><img src="{$this->settings['img_url']}/vkontakte_login.png" alt="" /></a></li>]]></template_content>
<template_name>vkInlineLogInService</template_name>
<template_data/>
<template_updated>1311665029</template_updated>
<template_removable>1</template_removable>
<template_added_to>1</template_added_to>
<template_user_added>1</template_user_added>
<template_user_edited>0</template_user_edited>
<template_master_key>root</template_master_key>
</templates>
<templates>
<template_group>skin_vkontakte</template_group>
<template_content><![CDATA[<a href='{parse url="app=core&module=global&section=login&serviceClick=vkontakte" base="public"}'>{parse replacement="lim_vkontakte"}</a>]]></template_content>
<template_name>vkServicesLim</template_name>
<template_data/>
<template_updated>1311664820</template_updated>
<template_removable>1</template_removable>
<template_added_to>1</template_added_to>
<template_user_added>1</template_user_added>
<template_user_edited>0</template_user_edited>
<template_master_key>root</template_master_key>
</templates>
</hookextras_templates>
<hookextras_css/>
<hookextras_tasks/>
<hookextras_database_create/>
<hookextras_database_alter/>
<hookextras_database_update/>
<hookextras_database_insert/>
</hookexport>