-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.xml
288 lines (282 loc) · 11 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?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="http://www.phpbb.com/mods/xml/modx-1.2.5.xsd">
<header>
<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
<title lang="en">Advertisement Management</title>
<description lang="en">Adds an easy to use Advertisement Manager to a phpBB3 forum.</description>
<author-group>
<author>
<username>EXreaction</username>
<realname>Nathan Guse</realname>
</author>
</author-group>
<mod-version>1.0.12-pl1</mod-version>
<installation>
<level>easy</level>
<time>300</time>
<target-version>3.0.9</target-version>
</installation>
<history>
<entry>
<date>2008-03-16</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change>Initial Release</change>
</changelog>
</entry>
<entry>
<date>2008-03-19</date>
<rev-version>1.0.1</rev-version>
<changelog lang="en">
<change>Adding option to count Ad Clicks.</change>
<change>Removing the option to set the Max Views (it added quite a bit of server load and I doubt it will be used often).</change>
</changelog>
</entry>
<entry>
<date>2008-06-26</date>
<rev-version>1.0.2</rev-version>
<changelog lang="en">
<change>Fixing a bug where ads would display in non-forum areas even when set to only show in a specific forum.</change>
</changelog>
</entry>
<entry>
<date>2008-07-09</date>
<rev-version>1.0.3</rev-version>
<changelog lang="en">
<change>Fixing a bug where ads would not display when they should.</change>
</changelog>
</entry>
<entry>
<date>2008-08-27</date>
<rev-version>1.0.4</rev-version>
<changelog lang="en">
<change>Updating the install instructions to be simpler and more compatible.</change>
<change>The forum selection list is now hidden by javascript if/when the all forums checkbox is checked.</change>
<change>Adding a record of when an advertisement was created viewable in the ACP (this will say N/A for ads created before updating to 1.0.4).</change>
<change>Adding the option to display ads until a certain date or for a certain number of days.</change>
<change>Adding the option to save note(s) along with the advertisement which are visible in the ACP.</change>
</changelog>
</entry>
<entry>
<date>2008-09-15</date>
<rev-version>1.0.5</rev-version>
<changelog lang="en">
<change>Fixing an issue in the ACP template with RTL languages.</change>
<change>Updating the prosilver install code to have the nicer layout for some positions.</change>
</changelog>
</entry>
<entry>
<date>2008-09-23</date>
<rev-version>1.0.6</rev-version>
<changelog lang="en">
<change>Fixing the hard codded .php in ads.js</change>
<change>Closing the db connection as what should have been done to start with in ads/view.php and ads/click.php</change>
</changelog>
</entry>
<entry>
<date>2008-11-09</date>
<rev-version>1.0.7</rev-version>
<changelog lang="en">
<change>Updating the install script and adding a remove script.</change>
<change>Moving the constants to a separate file (too many errors have come from users not editing the constants file).</change>
</changelog>
</entry>
<entry>
<date>2009-01-24</date>
<rev-version>1.0.8</rev-version>
<changelog lang="en">
<change>Updating the install scripts</change>
<change>Adding support for view/click limits</change>
</changelog>
</entry>
<entry>
<date>2009-11-18</date>
<rev-version>1.0.9</rev-version>
<changelog lang="en">
<change>ModX 1.2.3</change>
<change>Fixing minor ACP style issue with wrong colspan</change>
<change>Adding ads/database.php file for debugging install issues</change>
<change>Fix XHTML validation with accurate view count Bug #54</change>
<change>Send headers in view/click count to make sure the browser does not cache the files (and therefor does not count page refreshes/changes with the same ad, multiple clicks).</change>
<change>New Feature: My Advertisements page. Allows you to set users as owners of certain advertisements so they can visit a page to view the statistics on their advertisements. This feature is donated by olsserik.</change>
<change>Note to translators: New language entries have been added, please update the translation packages.</change>
</changelog>
</entry>
<entry>
<date>2010-06-25</date>
<rev-version>1.0.10</rev-version>
<changelog lang="en">
<change>Changing ad_views/clicks fields to big ints to prevent errors when over 16.7m (limit of medium int on mysql)</change>
<change>Prevent duplicate advertisements from showing on multiple positions on the same page if others are available</change>
<change>Ability to enable/disable advertisements from the list page #83</change>
<change>Ability to copy advertisements #81</change>
<change>Display the advertisement owner on the list page #82</change>
<change>Display the link to advertisement owners even if no ads were displayed on the page #102</change>
<change>Center the credits/My Advertisements link</change>
<change>Update ModX</change>
<change>Update UMIL</change>
</changelog>
</entry>
<entry>
<date>2011-06-18</date>
<rev-version>1.0.11</rev-version>
<changelog lang="en">
<change>Wrong modx version in contrib</change>
<change>Fix enable/disable bug</change>
<change>Prevent an SQL error when the user has no ads set to their account</change>
<change>Update UMIL</change>
</changelog>
</entry>
<entry>
<date>2011-07-06</date>
<rev-version>1.0.12</rev-version>
<changelog lang="en">
<change>Security: Only allow founders to uninstall the mod</change>
</changelog>
</entry>
<entry>
<date>2013-07-19</date>
<rev-version>1.0.12</rev-version>
<changelog lang="en">
<change>Remove references to Lithium Studios</change>
</changelog>
</entry>
</history>
<link-group>
<link type="template" href="subsilver2.xml" lang="en">subsilver2</link>
<link type="text" href="contrib/[How To] Add Positions.txt" lang="en">How to add positions tutorial</link>
</link-group>
</header>
<action-group>
<copy>
<file from="root/*.*" to="*.*"/>
</copy>
<open src="includes/functions.php">
<edit>
<find><![CDATA[ // Which timezone?
$tz = ($user->data['user_id'] != ANONYMOUS) ? strval(doubleval($user->data['user_timezone'])) : strval(doubleval($config['board_timezone']));]]></find>
<action type="after-add"><![CDATA[ // Advertisement Management
require($phpbb_root_path . 'ads/functions.' . $phpEx);
setup_ads();]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_footer.html">
<edit>
<find><![CDATA[ </div>]]></find>
<action type="after-add"><![CDATA[<!-- IF ADS_7 -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_7}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->]]></action>
</edit>
<edit>
<find><![CDATA[ <!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
</div>]]></find>
<action type="after-add"><![CDATA[ {ADS_8}]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_header.html">
<edit>
<find><![CDATA[</head>]]></find>
<action type="before-add"><![CDATA[<!-- INCLUDE ads/ads.js -->]]></action>
</edit>
<edit>
<find><![CDATA[<div id="page-header">]]></find>
<action type="after-add"><![CDATA[ {ADS_1}]]></action>
</edit>
<edit>
<find><![CDATA[<a name="start_here"></a>]]></find>
<action type="before-add"><![CDATA[ <!-- IF ADS_2 -->
<br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_2}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->]]></action>
</edit>
</open>
<open src="styles/prosilver/template/viewtopic_body.html">
<edit>
<find><![CDATA[<div class="topic-actions">]]></find>
<action type="before-add"><![CDATA[<!-- IF ADS_3 -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_3}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->]]></action>
</edit>
<edit>
<find><![CDATA[<!-- END postrow -->]]></find>
<action type="before-add"><![CDATA[ <!-- IF (ADS_5 and postrow.S_FIRST_ROW) or (ADS_6 and not postrow.S_FIRST_ROW) -->
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody" style="width: 100%;">
<h3>{L_ADVERTISEMENT}</h3>
<div style="font-size: 1.1em; margin: 0px auto; text-align: center;">
<!-- IF postrow.S_FIRST_ROW -->{ADS_5}<!-- ELSE -->{ADS_6}<!-- ENDIF -->
</div>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->]]></action>
</edit>
<edit>
<find><![CDATA[<!-- INCLUDE jumpbox.html -->]]></find>
<action type="before-add"><![CDATA[<!-- IF ADS_4 -->
<br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_4}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->]]></action>
</edit>
</open>
<php-installer>ads/database.php</php-installer>
<diy-instructions lang="en">Go to ACP -> Styles -> Template and hit refresh next to the templates you installed the modification on.</diy-instructions>
</action-group>
</mod>