-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.xml
More file actions
244 lines (233 loc) · 9.84 KB
/
install.xml
File metadata and controls
244 lines (233 loc) · 9.84 KB
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
<?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">User Blog Mod</title>
<description lang="en">Adds Blogs to a phpBB3 board.</description>
<author-notes lang="en">PHP versions less than 5.1.0 are NOT supported.
</author-notes>
<author-group>
<author>
<username>EXreaction</username>
<realname>Nathan Guse</realname>
</author>
</author-group>
<mod-version>1.0.16</mod-version>
<installation>
<level>intermediate</level>
<time>600</time>
<target-version>3.0.10</target-version>
</installation>
<history>
<entry>
<date>2010-03-24</date>
<rev-version>1.0.12</rev-version>
<changelog lang="en">
<change>Multiple bugs, #93, 94, 96, 99</change>
<change>Update ModX</change>
</changelog>
</entry>
<entry>
<date>2010-05-21</date>
<rev-version>1.0.13</rev-version>
<changelog lang="en">
<change>[Feature] Adding simple canonical URLs</change>
<change>[Feature] Anti-Spam ACP plugin</change>
<change>[Fix] Display poll creation errors #106</change>
<change>[Fix] Hide profile buttons that should not appear on guests #105</change>
<change>[Fix] Don't apply sid's multiple times on the non-seo urls #104</change>
<change>[Fix] Do not redirect to the item posted if it needs approval first #103</change>
<change>[Fix] Fix incorrect counting of replies when updating num_blog_replies on deleting a blog entry #92</change>
<change>[Fix] Invalid subsilver2 HTML #107</change>
<change>[Fix] Subscribe link for Coda #110</change>
<change>[Fix] Delete a user's blog replies when deleting the user</change>
<change>[Fix] Correct the update link for versions < 0.9.0</change>
<change>Update UMIL</change>
</changelog>
</entry>
<entry>
<date>2011-02-04</date>
<rev-version>1.0.14</rev-version>
<changelog lang="en">
<change>[Fix] Fix problems with language packs if the user selects a language other than the board default #134</change>
<change>[Fix] Fix error when editing blog entries/replies with attachments as a different user</change>
</changelog>
</entry>
<entry>
<date>2012-02-16</date>
<rev-version>1.0.15</rev-version>
<changelog lang="en">
<change>[Fix] Custom Profile Fields Disappear When SEO URLs are enabled</change>
<change>[Fix] Output the age with the user data</change>
<change>[Fix] Incorrect links in the Recent Comments feed</change>
<change>[Fix] Stricter checking on inputs for SQL queries (prevent duplicates in WHERE and enforce int on integers)</change>
<change>[Fix] Poll vote count problems with first poll item #174</change>
<change>[Fix] Poll time setting not stopping users from voting after expiration #141</change>
<change>[Fix] Miscellaneous Bugs</change>
<change>[Change] Remove some of the excessive caching</change>
<change>[Change] Code to display the blog links on view PM (code in blog/header.php, disabled by default because it requires adding code to view pm template)</change>
<change>Update UMIL</change>
</changelog>
</entry>
<entry>
<date>2013-07-19</date>
<rev-version>1.0.16</rev-version>
<changelog lang="en">
<change>[Fix] Fix voting on polls when Run poll for days = 0</change>
<change>Remove references to Lithium Studios</change>
</changelog>
</entry>
</history>
<link-group>
<link type="template" href="subsilver2.xml" lang="en">subsilver2</link>
<link type="template" href="acidtech_tiger.xml" lang="en">Acid Tech Tiger</link>
<link type="template" href="black_pearl.xml" lang="en">Black Pearl</link>
<link type="contrib" href="contrib/install_extended.xml" lang="en">Extended Install</link>
</link-group>
</header>
<action-group>
<copy>
<file from="root/*.*" to="*.*" />
</copy>
<open src="adm/style/acp_users_profile.html">
<edit>
<find><![CDATA[</fieldset>]]></find>
<action type="after-add"><![CDATA[<!-- INCLUDE acp_blog_users.html -->]]></action>
</edit>
</open>
<open src="includes/acp/acp_language.php">
<edit>
<find><![CDATA[, 'button_topic_reply']]></find>
<inline-edit>
<inline-find><![CDATA[, 'button_topic_reply']]></inline-find>
<inline-action type="after-add"><![CDATA[, 'button_blog_new']]></inline-action>
</inline-edit>
</edit>
</open>
<open src="includes/acp/acp_styles.php">
<edit>
<find><![CDATA[, 'button_topic_reply']]></find>
<inline-edit>
<inline-find><![CDATA[, 'button_topic_reply']]></inline-find>
<inline-action type="after-add"><![CDATA[, 'button_blog_new']]></inline-action>
</inline-edit>
</edit>
<edit>
<find> $sql = 'UPDATE ' . FORUMS_TABLE . "
SET forum_style = $new_id
WHERE forum_style = $style_id";
$db->sql_query($sql);</find>
<action type="after-add"> // Start User Blog Mod ----------------------
global $phpEx;
include("{$phpbb_root_path}blog/includes/functions_admin.$phpEx");
blog_remove_style($style_id, $new_id);
// End User Blog Mod ------------------------</action>
</edit>
</open>
<open src="includes/acp/acp_users.php">
<edit>
<find>$cp = new custom_profile();</find>
<action type="before-add"> // Start User Blog Mod ----------------------
include("{$phpbb_root_path}blog/includes/functions_admin.$phpEx");
blog_acp_profile($user_id, $submit);
// End User Blog Mod ------------------------</action>
</edit>
</open>
<open src="includes/functions.php">
<edit>
<find> // application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');</find>
<action type="before-add"> // Start User Blog Mod ----------------------
include($phpbb_root_path . 'blog/header.' . $phpEx);
// End User Blog Mod ------------------------</action>
</edit>
</open>
<open src="styles/prosilver/imageset/en/imageset.cfg">
<edit>
<comment lang="en">Do this for all prosilver based styles and all languages.</comment>
<find><![CDATA[img_button_topic_reply = button_topic_reply.gif*25*96]]></find>
<action type="after-add"><![CDATA[
# User Blog Mod
img_button_blog_new = button_blog_new.gif*25*96]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_footer.html">
<edit>
<comment lang="en">Do this for all prosilver based styles.</comment>
<find><![CDATA[<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->]]></find>
<action type="after-add"><![CDATA[ <!-- IF BLOG_CREDITS --><br />{BLOG_CREDITS}<!-- ENDIF -->]]></action>
</edit>
</open>
<open src="styles/prosilver/template/overall_header.html">
<edit>
<comment lang="en">Do this for all prosilver based styles.</comment>
<find>{U_FAQ}</find>
<action type="before-add"><![CDATA[ <!-- BEGIN blog_links -->
<li class="{blog_links.CLASS}"><a href="{blog_links.URL}">{blog_links.TEXT}</a></li>
<!-- END blog_links -->]]></action>
</edit>
</open>
<open src="styles/prosilver/theme/stylesheet.css">
<edit>
<comment lang="en">Do this for all prosilver based styles.</comment>
<find><![CDATA[@import url("colours.css");]]></find>
<action type="after-add"><![CDATA[@import url("blog.css");]]></action>
</edit>
</open>
<open src=".htaccess">
<edit>
<find><![CDATA[<Files "common.php">
Order Allow,Deny
Deny from All
</Files>]]></find>
<action type="after-add"><![CDATA[<IfModule mod_rewrite.c>
RewriteEngine on
Rewriterule ^blog/(.+)/(.+).html$ ./blog/view/blog.php?page=$1&mode=$2 [NC]
Rewriterule ^blog/(.+).html$ ./blog/blog.php?page=$1 [NC]
Rewriterule ^blog/(.+)/$ ./blog/view/blog.php?page=$1 [NC]
Rewriterule ^blog/$ ./blog/blog.php [NC]
RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^blog/(.+)/(.+)$ ./blog/view/blog.php?page=$1&mode=$2 [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^blog/(.+)$ ./blog/blog.php?page=$1 [NC]
</IfModule>]]></action>
</edit>
</open>
<open src="viewtopic.php">
<edit>
<find><![CDATA['search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",]]></find>
<action type="after-add"> 'blog_count' => ((isset($row['blog_count'])) ? $row['blog_count'] : 0),</action>
</edit>
<edit>
<find>// Load custom profile fields</find>
<action type="before-add"><![CDATA[// Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
include($phpbb_root_path . 'blog/includes/constants.' . $phpEx);
include($phpbb_root_path . 'blog/plugins/plugins.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions_view.' . $phpEx);
$user->add_lang('mods/blog/common');
new blog_plugins();
get_zebra_info($user->data['user_id'], true);
get_user_settings($id_cache);
}
// End Add User Blog Mod --------------------]]></action>
</edit>
<edit>
<find> // Dump vars into template
$template->assign_block_vars('postrow', $postrow);</find>
<action type="after-add"><![CDATA[ // Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
add_blog_links($poster_id, 'postrow.custom_fields', $user_cache[$poster_id]);
}
// End Add User Blog Mod --------------------]]></action>
</edit>
</open>
<php-installer>blog/database.php</php-installer>
<diy-instructions lang="en">Set the user/group permissions and configuration settings.</diy-instructions>
</action-group>
</mod>