-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.xml
270 lines (239 loc) · 10.7 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No 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>http://opensource.org/licenses/MIT The MIT License (MIT)</license>
<title lang="en">EVE Online BBcode for phpBB mod, v1.0.0</title>
<description lang="en">This file contains the instructions for the installation of the EVE Online BBcode for phpBB mod</description>
<author-notes lang="en"></author-notes>
<author-group>
<author>
<realname>Jordy Wille</realname>
<username phpbbcom="no">Cyerus</username>
<homepage>http://eve-it.org/my-phpbb-mods/eve-online-bbcode/</homepage>
<contributions-group>
<contributions status="current" from="2010-07-10" position="Developer"/>
</contributions-group>
</author>
</author-group>
<mod-version>1.0.0</mod-version>
<installation>
<level>easy</level>
<time>60</time>
<target-version>3.0.12</target-version>
</installation>
<history>
<entry>
<date>2014-02-11</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change>Initial commit, split from original package for easy maintainance and a more focussed approach.</change>
</changelog>
</entry>
</history>
<link-group>
<link type="template" lang="en" href="contrib/subsilver2.xml">Edits meant for subsilver2 style</link>
</link-group>
</header>
<action-group>
<copy>
<file from="root/images/*.*" to="images/*.*" />
<file from="root/includes/*.*" to="includes/*.*" />
<file from="root/install/*.*" to="install/*.*" />
<file from="root/language/*.*" to="language/*.*" />
<file from="root/styles/prosilver/*.*" to="styles/prosilver/*.*" />
</copy>
<open src="includes/bbcode.php">
<edit>
<find><![CDATA[ case 12:
$this->bbcode_cache[$bbcode_id] = array(
'str' => array(
'[/attachment:$uid]' => $this->bbcode_tpl('inline_attachment_close', $bbcode_id)
),
'preg' => array(
'#\[attachment=([0-9]+):$uid\]#' => $this->bbcode_tpl('inline_attachment_open', $bbcode_id)
)
);
break;]]></find>
<action type="after-add"><![CDATA[ case 13:
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[eveitem:$uid\]([0-9a-z \-\'\:]{1,75})\[/eveitem:$uid\]#ise' => "\$this->bbcode_second_pass_eveitem('\$1')"
)
);
break;
case 14:
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[evesystem:$uid\]([0-9a-z \-]{1,20})\[/evesystem:$uid\]#ise' => "\$this->bbcode_second_pass_evesystem('\$1')"
)
);
break;
case 15:
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[evefit:$uid\]([a-z0-9 \-\'\n\[\]\,\#\:\(\)]{1,1500})\[/evefit:$uid\]#ise' => "\$this->bbcode_second_pass_evefit('\$1')"
)
);
break; ]]></action>
</edit>
<edit>
<find><![CDATA[ function bbcode_second_pass_quote($username, $quote)
{
// when using the /e modifier, preg_replace slashes double-quotes but does not
// seem to slash anything else
$quote = str_replace('\"', '"', $quote);
$username = str_replace('\"', '"', $username);
// remove newline at the beginning
if ($quote == "\n")
{
$quote = '';
}
$quote = (($username) ? str_replace('$1', $username, $this->bbcode_tpl('quote_username_open')) : $this->bbcode_tpl('quote_open')) . $quote;
return $quote;
}]]></find>
<action type="after-add"><![CDATA[ /**
* EVE IGB item linker
*/
function bbcode_second_pass_eveitem($itemName)
{
return EVEOnlineBBcode\Item::getItem($itemName);
}
/**
* EVE IGB system linker
*/
function bbcode_second_pass_evesystem($systemName)
{
return EVEOnlineBBcode\System::getSystem($systemName);
}
/**
* EVE Fitting
*/
function bbcode_second_pass_evefit($fittingText)
{
return EVEOnlineBBcode\Fitting::getFitting($fittingText);
}
]]></action>
</edit>
</open>
<open src="includes/constants.php">
<edit>
<find><![CDATA[define('NUM_CORE_BBCODES', 12); ]]></find>
<action type="replace-with"><![CDATA[define('NUM_CORE_BBCODES', 15);]]></action>
</edit>
</open>
<open src="includes/functions_display.php">
<edit>
<find><![CDATA[ $num_predefined_bbcodes = 22; ]]></find>
<action type="replace-with"><![CDATA[ $num_predefined_bbcodes = 28;]]></action>
</edit>
</open>
<open src="includes/message_parser.php">
<edit>
<find><![CDATA[ 'flash' => array('bbcode_id' => 11, 'regexp' => array('#\[flash=([0-9]+),([0-9]+)\](.*?)\[/flash\]#uie' => "\$this->bbcode_flash('\$1', '\$2', '\$3')")) ]]></find>
<action type="replace-with"><![CDATA[ 'flash' => array('bbcode_id' => 11, 'regexp' => array('#\[flash=([0-9]+),([0-9]+)\](.*?)\[/flash\]#uie' => "\$this->bbcode_flash('\$1', '\$2', '\$3')")),
'eveitem' => array('bbcode_id' => 13, 'regexp' => array('#\[eveitem\]([0-9a-z \-\']{1,75})\[/eveitem\]#ise' => "\$this->bbcode_eve_item('\$1')")),
'evesystem' => array('bbcode_id' => 14, 'regexp' => array('#\[evesystem\]([0-9a-z \-]{3,20})\[/evesystem\]#ise' => "\$this->bbcode_eve_system('\$1')")),
'evefit' => array('bbcode_id' => 15, 'regexp' => array('#\[evefit\]([0-9a-z \-\'\n\[\]\,\:\#\(\)]{5,1500})\[/evefit\]#ise' => "\$this->bbcode_eve_fit('\$1')"))
]]></action>
</edit>
<edit>
<find><![CDATA[ /**
* Parse inline attachments [ia]
*/
function bbcode_attachment($stx, $in)
{
if (!$this->check_bbcode('attachment', $in))
{
return $in;
}
return '[attachment=' . $stx . ':' . $this->bbcode_uid . ']<!-- ia' . $stx . ' -->' . trim($in) . '<!-- ia' . $stx . ' -->[/attachment:' . $this->bbcode_uid . ']';
}]]></find>
<action type="after-add"><![CDATA[ /**
* EVE ITEM BBcode
*/
function bbcode_eve_item($in)
{
if (!$this->check_bbcode('eveitem', $in))
{
return $in;
}
return '[eveitem:' . $this->bbcode_uid . ']' . $in . '[/eveitem:' . $this->bbcode_uid . ']';
}
/**
* EVE SYSTEM BBcode
*/
function bbcode_eve_system($in)
{
if (!$this->check_bbcode('evesystem', $in))
{
return $in;
}
return '[evesystem:' . $this->bbcode_uid . ']' . $in . '[/evesystem:' . $this->bbcode_uid . ']';
}
/**
* EVE FITTING BBcode
*/
function bbcode_eve_fit($in)
{
if (!$this->check_bbcode('evefit', $in))
{
return $in;
}
return '[evefit:' . $this->bbcode_uid . ']' . $in . '[/evefit:' . $this->bbcode_uid . ']';
} ]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_header.html">
<edit>
<find><![CDATA[<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />]]></find>
<action type="after-add"><![CDATA[<link href="{T_SUPER_TEMPLATE_PATH}/eveonline_bbcode.css" rel="stylesheet" type="text/css" />
<script src="{T_SUPER_TEMPLATE_PATH}/eveonline_bbcode.js" type="text/javascript"></script>
<script type="text/javascript">
if (typeof CCPEVE != "undefined") {
CCPEVE.requestTrust('{S_EVEAPI_TRUSTED}');
}
</script>]]></action>
</edit>
</open>
<open src="styles/prosilver/template/posting_buttons.html">
<edit>
<find><![CDATA[ var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->); ]]></find>
<action type="replace-with"><![CDATA[ var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]', '[eveitem]', '[/eveitem]', '[evesystem]', '[/evesystem]', '[evefit]', '[/evefit]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);]]></action>
</edit>
<edit>
<find><![CDATA[ <!-- IF S_BBCODE_FLASH -->
<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
<!-- ENDIF -->]]></find>
<action type="after-add"><![CDATA[ <input type="button" class="button2" accesskey="eveitem" name="addbbcode22" value="EVE Item" onclick="bbstyle(22)" title="EVE Item" />
<input type="button" class="button2" accesskey="evesystem" name="addbbcode24" value="EVE System" onclick="bbstyle(24)" title="EVE System" />
<input type="button" class="button2" accesskey="evefit" name="addbbcode26" value="EVE Fitting" onclick="bbstyle(26)" title="EVE Fitting" />
]]></action>
</edit>
</open>
<open src="common.php">
<edit>
<find><![CDATA[ foreach ($cache->obtain_hooks() as $hook)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
} ]]></find>
<action type="after-add"><![CDATA[// EVE Online BBcode MOD start
// Load classes for each BBcode
require($phpbb_root_path . "/includes/eveonline_bbcode/eveonline_bbcode_item.php");
require($phpbb_root_path . "/includes/eveonline_bbcode/eveonline_bbcode_system.php");
require($phpbb_root_path . "/includes/eveonline_bbcode/eveonline_bbcode_fitting.php");
// EVE Online BBcode MOD end ]]></action>
</edit>
</open>
<diy-instructions lang="en"><![CDATA[--------------------------------------------------------------------------------------------
Browse to install/ and run the installer
Clear your cache in the "Administration Control Panel" (ACP) > "General" > "Purge the cache"
Refresh your Styles:
"Administration Control Panel" (ACP) > "Styles" > "Templates" > each > "refresh"
"Administration Control Panel" (ACP) > "Styles" > "Themes" > each > "refresh"
"Administration Control Panel" (ACP) > "Styles" > "Imagesets" > each > "refresh"
--------------------------------------------------------------------------------------------]]></diy-instructions>
</action-group>
</mod>