-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaddon-CleanTalk.xml
126 lines (126 loc) · 9.74 KB
/
addon-CleanTalk.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="CleanTalk" title="Antispam by CleanTalk" version_string="2.6" version_id="26" url="https://cleantalk.org" install_callback_class="CleanTalk_Base_CleanTalk" install_callback_method="installHook" uninstall_callback_class="CleanTalk_Base_CleanTalk" uninstall_callback_method="uninstallHook">
<admin_navigation/>
<admin_permissions/>
<admin_style_properties/>
<admin_templates>
<template title="option_template_CleanTalk"><![CDATA[<xen:checkboxunit hint="{$preparedOption.hint}">
<xen:label>{xen:phrase cleantalk_options_title}:</xen:label>
<xen:option name="{$fieldPrefix}[{$preparedOption.option_id}][enabled]" selected="{$preparedOption.option_value.enabled}" label="{xen:phrase cleantalk_options_enabled}">
<xen:disabled>
<div>{xen:phrase cleantalk_options_apikey}:</div>
<xen:textbox name="{$fieldPrefix}[{$preparedOption.option_id}][apikey]" value="{$preparedOption.option_value.apikey}" inputclass="indented" />
<p class="hint">{xen:phrase cleantalk_options_apikey_explain}</p>
</xen:disabled>
<xen:disabled>
<xen:checkbox>
<xen:option name="{$fieldPrefix}[{$preparedOption.option_id}][enabled_reg]" selected="{$preparedOption.option_value.enabled_reg}" label="{xen:phrase cleantalk_options_enabled_reg}"></xen:option>
</xen:checkbox>
</xen:disabled>
<xen:disabled>
<xen:checkbox>
<xen:option name="{$fieldPrefix}[{$preparedOption.option_id}][enabled_comm]" selected="{$preparedOption.option_value.enabled_comm}" label="{xen:phrase cleantalk_options_enabled_comm}"></xen:option>
</xen:checkbox>
</xen:disabled>
<xen:disabled>
<xen:checkbox>
<xen:option name="{$fieldPrefix}[{$preparedOption.option_id}][enabled_sfw]" selected="{$preparedOption.option_value.enabled_sfw}" label="{xen:phrase cleantalk_options_enabled_sfw}"></xen:option>
</xen:checkbox>
</xen:disabled>
</xen:option>
<xen:option name="{$fieldPrefix}[{$preparedOption.option_id}][link]" selected="{$preparedOption.option_value.link}" label="{xen:phrase cleantalk_options_link}"><br />
</xen:option>
<xen:html>
<input type="hidden" name="{$listedFieldName}" value="{$preparedOption.option_id}" />
{xen:raw $editLink}
</xen:html>
</xen:checkboxunit>
]]></template>
</admin_templates>
<admin_template_modifications/>
<code_events/>
<code_event_listeners>
<listener event_id="load_class_controller" execute_order="10" callback_class="CleanTalk_Listener_LoadClassController" callback_method="loadClassListenerRegister" active="1" hint="XenForo_ControllerPublic_Register" description="Listens for XenForo_ControllerPublic_Register class"/>
<listener event_id="load_class_controller" execute_order="10" callback_class="CleanTalk_Listener_LoadClassController" callback_method="loadClassListenerPost" active="1" hint="XenForo_ControllerPublic_Post" description="Listens for XenForo_ControllerPublic_Post class"/>
<listener event_id="load_class_controller" execute_order="10" callback_class="CleanTalk_Listener_LoadClassController" callback_method="loadClassListenerForum" active="1" hint="XenForo_ControllerPublic_Forum" description="Listens for XenForo_ControllerPublic_Forum class"/>
<listener event_id="load_class_controller" execute_order="10" callback_class="CleanTalk_Listener_LoadClassController" callback_method="loadClassListenerThread" active="1" hint="XenForo_ControllerPublic_Thread" description="Listens for XenForo_ControllerPublic_Thread class"/>
<listener event_id="load_class_controller" execute_order="10" callback_class="CleanTalk_Listener_LoadClassController" callback_method="loadClassListenerMisc" active="1" hint="XenForo_ControllerPublic_Misc" description="Listens for XenForo_ControllerPublic_Misc class"/>
<listener event_id="load_class_model" execute_order="10" callback_class="CleanTalk_Listener_LoadClassModel" callback_method="loadClassListener" active="1" hint="XenForo_Model_SpamPrevention" description="Listens for XenForo_Model_SpamPrevention class"/>
<listener event_id="visitor_setup" execute_order="10" callback_class="CleanTalk_Base_CleanTalk" callback_method="hookAdminSettings" active="1" hint="" description="Hook settings saving"/>
</code_event_listeners>
<cron/>
<email_templates>
<template title="cleantalk_error">
<subject><![CDATA[{$xenOptions.boardTitle} - {xen:phrase cleantalk_error}]]></subject>
<body_text><![CDATA[{$xenOptions.boardTitle} - {xen:phrase cleantalk_error}
{$plainText}]]></body_text>
<body_html><![CDATA[<h1>{$xenOptions.boardTitle} - {xen:phrase cleantalk_error}</h1>
<p>
{xen:raw $htmlText}
</p>]]></body_html>
</template>
</email_templates>
<email_template_modifications/>
<optiongroups>
<group group_id="cleantalk_check_uesrs" display_order="1" debug_only="0"/>
<group group_id="cleantalk_options" display_order="2" debug_only="0"/>
<option option_id="cleantalk" edit_format="template" data_type="array" can_backup="1">
<default_value>a:1:{s:7:"enabled";s:1:"0";}</default_value>
<edit_format_params>option_template_CleanTalk</edit_format_params>
<sub_options>enabled
enabled_reg
enabled_comm
link
apikey
enabled_sfw</sub_options>
<relation group_id="cleantalk_options" display_order="1"/>
</option>
<option option_id="cleantalk_check_users_option" edit_format="callback" data_type="array" can_backup="1" validation_class="CleanTalk_Base_CleanTalk" validation_method="CheckUsersCallback">
<default_value>a:1:{s:4:"test";s:1:"0";}</default_value>
<edit_format_params>CleanTalk_Base_CleanTalk::CheckUsersOutput</edit_format_params>
<sub_options>test</sub_options>
<relation group_id="cleantalk_check_uesrs" display_order="1"/>
</option>
</optiongroups>
<permissions>
<permission_groups/>
<permissions/>
<interface_groups/>
</permissions>
<phrases>
<phrase title="cleantalk_error" version_id="1" version_string="1.0"><![CDATA[CleanTalk addon error]]></phrase>
<phrase title="cleantalk_options_enabled" version_id="1" version_string="1.0"><![CDATA[Turn on protection]]></phrase>
<phrase title="cleantalk_options_apikey" version_id="1" version_string="1.0"><![CDATA[Access key]]></phrase>
<phrase title="cleantalk_options_apikey_explain" version_id="1" version_string="1.0"><![CDATA[Click <a target="_blank" href="https://cleantalk.org/register?platform=xenforo">here</a> to get access key.]]></phrase>
<phrase title="cleantalk_options_enabled_comm" version_id="1" version_string="1.0"><![CDATA[Check users comments and threads against the CleanTalk antispam service.]]></phrase>
<phrase title="cleantalk_options_enabled_reg" version_id="1" version_string="1.0"><![CDATA[Check new registrations against the CleanTalk antispam service.]]></phrase>
<phrase title="cleantalk_options_link" version_id="1" version_string="1.0"><![CDATA[Tell others about CleanTalk]]></phrase>
<phrase title="cleantalk_options_link_explain" version_id="1" version_string="1.0"><![CDATA[Checking this box places a small link under the comment form that lets others know what anti-spam tool protects your site.]]></phrase>
<phrase title="cleantalk_options_enabled_sfw" version_id="1" version_string="1.0"><![CDATA[Enable SpamFireWall]]></phrase>
<phrase title="cleantalk_options_enabled_sfw_explain" version_id="1" version_string="1.0"><![CDATA[This option allows to filter spam bots before they access website. Also reduces CPU usage on hosting server and accelerates pages load time]]></phrase>
<phrase title="cleantalk_options_title" version_id="1" version_string="1.0"><![CDATA[Antispam by CleanTalk]]></phrase>
<phrase title="cleantalk_response" version_id="1" version_string="1.0"><![CDATA[CleanTalk: {response}]]></phrase>
<phrase title="option_cleantalk" version_id="1" version_string="1.0"><![CDATA[Cleantalk's options]]></phrase>
<phrase title="option_cleantalk_check_users_option" version_id="1" version_string="1.0"><![CDATA[Check]]></phrase>
<phrase title="option_cleantalk_check_users_option_explain" version_id="1" version_string="1.0"><![CDATA[explanation]]></phrase>
<phrase title="option_cleantalk_explain" version_id="1" version_string="1.0"><![CDATA[Cleantalk Explanation]]></phrase>
<phrase title="option_group_cleantalk_check_uesrs" version_id="1" version_string="1.0"><![CDATA[Check users for spam via CleanTalk]]></phrase>
<phrase title="option_group_cleantalk_check_uesrs_description" version_id="1" version_string="1.0"><![CDATA[<b>Use this feature carefully, it can't be rolled back!</b>
May cause high load of the webserver.]]></phrase>
<phrase title="option_group_cleantalk_options" version_id="1" version_string="1.0"><![CDATA[Antispam by CleanTalk]]></phrase>
<phrase title="option_group_cleantalk_options_description" version_id="1" version_string="1.0"><![CDATA[Max power, all-in-one, no CAPTCHA, premium antispam plugin. No comment spam, no registration spam. Formerly Antispam by CleanTalk]]></phrase>
</phrases>
<route_prefixes/>
<style_properties/>
<templates/>
<public_template_modifications>
<modification template="footer" modification_key="cleantalk_register_form" description="Adds some script to default register from template" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[/$/]]></find>
<replace><![CDATA[<!-- CleanTalk.Org addon -->
<xen:callback class="CleanTalk_Base_CleanTalk" method="getTemplateAddon"></xen:callback>
<!-- /CleanTalk.Org addon -->]]></replace>
</modification>
</public_template_modifications>
<bb_code_media_sites/>
<bb_codes/>
</addon>