-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.xml
180 lines (178 loc) · 8.79 KB
/
install.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD.\nAlthough MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD.\nNo support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.phpbb.com/mods/xml/modx-1.2.6.xsd">
<header>
<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
<title lang="en"><![CDATA[MapBBCode]]></title>
<author-notes>Works on phpBB 3.0.8 and newer, disregard the version warning.</author-notes>
<github><![CDATA[https://github.com/Zverik/mapbb-phpbb3]]></github>
<author-group>
<author>
<realname><![CDATA[Ilya Zverev]]></realname>
<username><![CDATA[Zverik]]></username>
<email><![CDATA[zverik@textual.ru]]></email>
</author>
</author-group>
<mod-version>1.0.2</mod-version>
<installation>
<level>easy</level>
<time>600</time>
<target-version>3.0.12</target-version>
</installation>
<history>
<entry>
<date>2013-12-23</date>
<rev-version>1.0.2</rev-version>
<changelog lang="en">
<change><![CDATA[Update MapBBCode to 1.2.0]]></change>
<change><![CDATA[Fix bug with apostrophes in layer names]]></change>
</changelog>
</entry>
<entry>
<date>2013-11-30</date>
<rev-version>1.0.1</rev-version>
<changelog lang="en">
<change><![CDATA[Update MapBBCode to 1.1.2]]></change>
<change><![CDATA[Easier to include add-ons]]></change>
</changelog>
</entry>
<entry>
<date>2013-11-16</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change><![CDATA[Update MapBBCode to 1.1.1]]></change>
</changelog>
</entry>
<entry>
<date>2013-11-01</date>
<rev-version>0.9.0</rev-version>
<change><![CDATA[Beta version, MapBBCode 1.0.0]]></change>
<changelog lang="en">
</changelog>
</entry>
</history>
<link-group>
<link type="language" href="contrib/ru.xml" lang="en">Russian translation</link>
<link type="template" href="contrib/subsilver2.xml" lang="en">Modifications for subsilver2 theme</link>
<link type="contrib" href="contrib/board3.xml" lang="en">Modifications for Board3 Portal</link>
<link type="contrib" href="contrib/upgrade_0.9.0_to_1.0.2.xml" lang="en">Upgrade from version 0.9.0</link>
<link type="contrib" href="contrib/upgrade_1.0.0_to_1.0.2.xml" lang="en">Upgrade from version 1.0.0</link>
<link type="contrib" href="contrib/upgrade_1.0.1_to_1.0.2.xml" lang="en">Upgrade from version 1.0.1</link>
</link-group>
</header>
<action-group>
<copy>
<file from="root/adm/style/acp_mapbbcode.html" to="adm/style/acp_mapbbcode.html"/>
<file from="root/includes/acp/acp_mapbbcode.php" to="includes/acp/acp_mapbbcode.php"/>
<file from="root/includes/acp/info/acp_mapbbcode.php" to="includes/acp/info/acp_mapbbcode.php"/>
<file from="root/includes/hooks/hook_mapbbcode.php" to="includes/hooks/hook_mapbbcode.php"/>
<file from="root/includes/functions_mapbbcode.php" to="includes/functions_mapbbcode.php"/>
<file from="root/language/en/mods/info_acp_mapbbcode.php" to="language/en/mods/info_acp_mapbbcode.php"/>
<file from="root/styles/prosilver/template/mapbbcode_scripts.html" to="styles/prosilver/template/mapbbcode_scripts.html"/>
<file from="root/mapbbcode/*.*" to="mapbbcode/*.*"/>
<file from="root/install_mapbbcode.php" to="install_mapbbcode.php"/>
<file from="root/umil/*.*" to="umil/*.*"/>
</copy>
<open src="posting.php">
<edit>
<find><![CDATA[$url_status = ($config['allow_post_links']) ? true : false;]]></find>
<action type="after-add"><![CDATA[$map_status = ($config['allow_maps']) ? true : false;
$user->add_lang('mods/info_acp_mapbbcode');
if ($map_status)
{
define('MAPBBCODE', 1);
}]]></action>
</edit>
<edit>
<find><![CDATA[ 'URL_STATUS' => ($bbcode_status && $url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],]]></find>
<action type="after-add"><![CDATA[ 'MAP_STATUS' => ($bbcode_status && $map_status) ? $user->lang['MAPS_ARE_ON'] : $user->lang['MAPS_ARE_OFF'],]]></action>
</edit>
<edit>
<find><![CDATA[ 'S_LINKS_ALLOWED' => $url_status,]]></find>
<action type="after-add"><![CDATA[ 'S_MAPS_ALLOWED' => $map_status,]]></action>
</edit>
</open>
<open src="includes/bbcode.php">
<edit>
<find><![CDATA[ $str = array('search' => array(), 'replace' => array());]]></find>
<action type="before-add"><![CDATA[ // Check for map bbcode to insert required header
$mapid = 0;
if (!defined('MAPBBCODE') && preg_match('/\[map[^\]]*(?:=[0-9.,-]+)?\].*?\[\/map[^\]]*\]|\[mapid[^\]]*\][a-z]+\[\/mapid[^\]]*\]/', $message))
{
define('MAPBBCODE', 1);
}]]></action>
</edit>
</open>
<open src="includes/message_parser.php">
<edit>
<find><![CDATA[ foreach ($disallow as $bool)]]></find>
<action type="before-add"><![CDATA[ if( $mode === 'sig' )
{
$disallow[] = 'map';
}]]></action>
</edit>
</open>
<open src="includes/ucp/ucp_pm_compose.php">
<edit>
<find><![CDATA[ $url_status = ($config['allow_post_links']) ? true : false;]]></find>
<action type="after-add"><![CDATA[ $map_status = ($config['allow_maps']) ? true : false;
$user->add_lang('mods/info_acp_mapbbcode');
if ($map_status)
{
define('MAPBBCODE', 1);
}]]></action>
</edit>
<edit>
<find><![CDATA[ 'URL_STATUS' => ($url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],]]></find>
<action type="after-add"><![CDATA[ 'MAP_STATUS' => ($bbcode_status && $map_status) ? $user->lang['MAPS_ARE_ON'] : $user->lang['MAPS_ARE_OFF'],]]></action>
</edit>
<edit>
<find><![CDATA[ 'S_LINKS_ALLOWED' => $url_status,]]></find>
<action type="after-add"><![CDATA[ 'S_MAPS_ALLOWED' => $map_status,]]></action>
</edit>
</open>
<open src="styles/prosilver/template/posting_buttons.html">
<edit>
<find><![CDATA[ <!-- IF S_BBCODE_FLASH -->]]></find>
<action type="before-add"><![CDATA[ <!-- IF S_MAPS_ALLOWED -->
<input type="button" class="button2" accesskey="m" name="addbbcodemap" value="Map" style="text-decoration: underline; width: 40px" onclick="javascript:{EDITOR_WINDOW} ? mapBBcode.editorWindow(document.forms[form_name].elements[text_name]) : mapBBcode.editor('mapedit', document.forms[form_name].elements[text_name]);" title="{L_BBCODE_MAP_HELP}" />
<!-- ENDIF -->]]></action>
</edit>
</open>
<open src="styles/prosilver/template/posting_editor.html">
<edit>
<find><![CDATA[ <!-- INCLUDE posting_buttons.html -->]]></find>
<action type="before-add"><![CDATA[ <div id="mapedit"></div>]]></action>
</edit>
<edit>
<find><![CDATA[ {URL_STATUS}<br />]]></find>
<action type="after-add"><![CDATA[ {MAP_STATUS}<br />]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_header.html">
<edit>
<find><![CDATA[</head>]]></find>
<action type="before-add"><![CDATA[<!-- IF S_MAPBBCODE -->
<!-- INCLUDE mapbbcode_scripts.html -->
<!-- ENDIF -->]]></action>
</edit>
</open>
<open src="styles/prosilver/template/simple_header.html">
<edit>
<find><![CDATA[</head>]]></find>
<action type="before-add"><![CDATA[<!-- IF S_MAPBBCODE -->
<!-- INCLUDE mapbbcode_scripts.html -->
<!-- ENDIF -->]]></action>
</edit>
</open>
<php-installer><![CDATA[install_mapbbcode.php]]></php-installer>
<diy-instructions lang="en"><![CDATA[Once all the files have been modified and uploaded to your site, point your browser to the "install_mapbbcode.php" script
(or click the highlighted link above if you are using AutoMOD) and follow the instructions. Once that is complete,
you can delete the "install_mapbbcode.php" script.
You can configure MapBBCode settings in the ACP under the "POSTING" tab.]]></diy-instructions>
<diy-instructions lang="ru"><![CDATA[Когда все файлы будут отредактированы и загружены на ваш сайт, откройте страницу «install_mapbbcode.php» (или щёлкните ссылку выше, если пользуетесь AutoMOD) и следуйте указаниям. После завершения процедуры файл «install_mapbbcode.php» можно удалить.
Настройки плагина MapBBCode можно изменить в панели администрирования во вкладке «Сообщения».]]></diy-instructions>
</action-group>
</mod>