forked from Aliphp/profile_comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_mod.xml
471 lines (419 loc) · 20.4 KB
/
install_mod.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<?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>
<meta name="generator" content="MODX file generated with PP MODX Creator by tumba25 (online version)"/>
<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
<title lang="en"><![CDATA[Profile comments]]></title>
<description lang="en"><![CDATA[Allows users to send comments in phpBB profiles.]]></description>
<github><![CDATA[https://github.com/Aliphp/profile_comments]]></github>
<author-group>
<author>
<realname><![CDATA[Ali Faraji]]></realname>
<username><![CDATA[Ali@php]]></username>
<homepage><![CDATA[http://www.phpbbpersian.com]]></homepage>
<email><![CDATA[[email protected]]]></email>
</author>
</author-group>
<mod-version>1.0.0</mod-version>
<installation>
<level>easy</level>
<time>300</time>
<target-version>3.0.11</target-version>
</installation>
<history>
<entry>
<date>2013-03-01</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change><![CDATA[MOD released]]></change>
</changelog>
</entry>
</history>
</header>
<action-group>
<copy>
<file from="root/adm/style/acp_profile_comments.html" to="adm/style/acp_profile_comments.html"/>
<file from="root/includes/functions_profile_comments.php" to="includes/functions_profile_comments.php"/>
<file from="root/includes/acp/acp_profile_comments.php" to="includes/acp/acp_profile_comments.php"/>
<file from="root/includes/acp/info/acp_profile_comments.php" to="includes/acp/info/acp_profile_comments.php"/>
<file from="root/language/en/mods/info_acp_profile_comments.php" to="language/en/mods/info_acp_profile_comments.php"/>
<file from="root/language/en/mods/permissions_profile_comments.php" to="language/en/mods/permissions_profile_comments.php"/>
<file from="root/language/en/mods/profile_comments.php" to="language/en/mods/profile_comments.php"/>
<file from="root/language/fa/mods/info_acp_profile_comments.php" to="language/fa/mods/info_acp_profile_comments.php"/>
<file from="root/language/fa/mods/permissions_profile_comments.php" to="language/fa/mods/permissions_profile_comments.php"/>
<file from="root/language/fa/mods/profile_comments.php" to="language/fa/mods/profile_comments.php"/>
<file from="root/umil/*.*" to="umil/*.*"/>
<file from="root/profile_comments_mod_install.php" to="profile_comments_mod_install.php"/>
</copy>
<open src="memberlist.php">
<edit>
<find><![CDATA[ // Now generate page title
$page_title = sprintf($user->lang['VIEWING_PROFILE'], $member['username']);
$template_html = 'memberlist_view.html';
]]></find>
<action type="after-add"><![CDATA[ // Begin profile comments MOD
// Include Profile comments function file and intitialize class
include($phpbb_root_path . 'includes/functions_profile_comments.' . $phpEx);
$user->setup('mods/profile_comments');
$comments = new comments();
$comments->generate_profile_smilies();
// Profile comments BBCode and smilies options
$user->add_lang('posting');
display_custom_bbcodes();
$bbcode_status = ($config['allow_bbcode'] && $auth->acl_get('u_bbcode_profile_comments')) ? true : false;
$quote_status = true;
$bbcode_status = ($config['allow_bbcode'] && $auth->acl_get('u_bbcode_profile_comments')) ? true : false;
$smilies_status = ($config['allow_smilies'] && $auth->acl_get('u_smilies_profile_comments')) ? true : false;
$img_status = ($bbcode_status && $auth->acl_get('u_img_profile_comments')) ? true : false;
$url_status = ($config['allow_post_links']) ? true : false;
$flash_status = ($bbcode_status && $auth->acl_get('u_flash_profile_comments') && $config['allow_post_flash']) ? true : false;
$template->assign_vars(array(
'S_BBCODE_ALLOWED' => ($bbcode_status) ? 1 : 0,
'S_BBCODE_QUOTE' => $quote_status,
'MAX_FONT_SIZE' => (int) $config['max_post_font_size'],
'S_BBCODE_IMG' => $img_status,
'S_BBCODE_URL' => $url_status,
'S_BBCODE_FLASH' => $flash_status,
'S_BBCODE_QUOTE' => $quote_status,
'S_SMILIES_ALLOWED' => $smilies_status,
'BBCODE_STATUS' => ($bbcode_status) ? sprintf($user->lang['BBCODE_IS_ON'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>') : sprintf($user->lang['BBCODE_IS_OFF'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>'),
'IMG_STATUS' => ($img_status) ? $user->lang['IMAGES_ARE_ON'] : $user->lang['IMAGES_ARE_OFF'],
'FLASH_STATUS' => ($flash_status) ? $user->lang['FLASH_IS_ON'] : $user->lang['FLASH_IS_OFF'],
'URL_STATUS' => ($bbcode_status && $url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
'SMILIES_STATUS' => ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'],
));
// Profile comments vars
$comment = request_var('comment', '');
$comment_submit = request_var('commentsubmit', '');
$comment_edit_submit = request_var('commenteditsubmit', '');
$comment_delete_submit = request_var('commentdelete', '');
$comment_id = request_var('cid', 0);
$comments_config_enable = ($config['enable_profile_comments'] == 1) ? true : false;
$comments_config_pmenable = ($config['enable_prvmsgs_profile_comments'] == 1) ? true : false;
$comments_acl_send = $auth->acl_get('u_send_profile_comments');
$comments_acl_see = $auth->acl_get('u_see_profile_comments');
$template->assign_vars(array(
'COMMENT_ACTION' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&comment=submit&u=' . $user_id),
'COMMENTEDIT_ACTION' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&comment=edit&cid=' . $comment_id . '&u=' . $user_id),
'COMMENTS_ACL_SEND' => $comments_acl_send,
'COMMENTS_ACL_SEE' => $comments_acl_see,
'PROFILE_COMMENTS_ENABLE' => $comments_config_enable,
'COMMENT_MODE' => $comment,
'COMMENT_ID' => $comment_id,
));
// Show comments
if ($comments_acl_see)
{
$showresult = $comments->show($user_id);
// Check $comments->show($user_id) result
if ($showresult == false)
{
$comments->error($user->lang('UNKNOWN_COMMENT_ERROR'), 'BACK_PROFILE');
}
}
switch($comment)
{
case 'submit':
// Validate submitted form
$form_key = 'send_profile_comment';
add_form_key($form_key);
if (!check_form_key($form_key))
{
$errors[] = $user->lang['FORM_INVALID'];
}
// Start generating text fot storage
$text = utf8_normalize_nfc(request_var('commentcontent', '', true));
if ((($config['max_profile_comments_char'] == 0) ? '' : mb_strlen($text) > $config['max_profile_comments_char']) ^ mb_strlen($text) < $config['min_profile_comments_char'])
{
$charerror = sprintf((mb_strlen($text) > $config['max_profile_comments_char']) ? $user->lang['CHARACHTER_LIMIT_MAX'] : $user->lang['CHARACHTER_LIMIT_MIN'], (mb_strlen($text) > $config['max_profile_comments_char']) ? $config['max_profile_comments_char'] : $config['min_profile_comments_char']);
$comments->error($charerror, 'BACK_PROFILE');
}
$uid = $bitfield = $options = '';
$comments->store($text, $uid, $bitfield, $options, $bbcode_status, $url_status, $smilies_status, $quote_status, $img_status, $url_status, $flash_status);
if($comment == 'submit' && $comment_submit)
{
if(!$comments_acl_send)
{
$comments->error($user->lang('COMMENT_SEND_PERMISSION_ERROR'), 'BACK_PROFILE');
}
$input = array(
'text' => $text,
'comment_time' => time(),
'profile_id' => $user_id,
'poster_id' => $user->data['user_id'],
'bbcode_uid' => $uid,
'bbcode_bitfield' => $bitfield,
'bbcode_options' => $options,
'enable_bbcode' => ($bbcode_status == true) ? 1 : 0,
'enable_magic_url' => ($url_status == true) ? 1 : 0,
'enable_smilies' => ($smilies_status == true) ? 1 : 0,
);
$runsubmit = $comments->submit($input);
// Check result of $comments->submit($input) and send private message if enabled
if($runsubmit == true && $comments_config_pmenable)
{
include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
$comment_pm_subject = utf8_normalize_nfc($user->lang('PROFILE_COMMENT_PM_TITLE'));
$comment_pm_text = "".sprintf($user->lang['PROFILE_COMMENT_PM'], '<a href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&&u=' . $user_id) . '">', '</a>',$user->data['username'], '<br />[quote]'.utf8_normalize_nfc(request_var('commentcontent', '', true)).'[/quote]');
$poll = $uid = $bitfield = $options = '';
$comments->store($comment_pm_text, $uid, $bitfield, $options, $bbcode_status, $url_status, $smilies_status, $quote_status, $img_status, $url_status, $flash_status);
$data = array(
'address_list' => array ('u' => array($user_id => 'to')),
'from_user_id' => $user->data['user_id'],
'from_username' => $user->data['username'],
'icon_id' => 0,
'from_user_ip' => $user->data['user_ip'],
'enable_bbcode' => ($bbcode_status == true) ? 1 : 0,
'enable_smilies' => ($smilies_status == true) ? 1 : 0,
'enable_urls' => true,
'enable_sig' => true,
'message' => $comment_pm_text,
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
);
submit_pm('post', $comment_pm_subject, $data, false);
}
// Check $comments->submit($input) result
if ($runsubmit == false) {
$comments->error($user->lang('SQL_ERROR'), 'BACK_PROFILE');
}
// Success message
else {
$comments->error($user->lang('COMMENT_SUCCESS_PROFILE'), 'BACK_PROFILE');
}
}
break;
case 'edit':
// If case is edit and comment id isset
if ($comment_id)
{
$sql = 'SELECT text, bbcode_uid
FROM ' . PROFILE_COMMENTS_TABLE . '
WHERE comment_id = ' . $comment_id . '';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
decode_message($row['text'], $row['bbcode_uid']);
$template->assign_vars(array(
'COMMENT_EDIT_TEXT' => $row['text'],
));
$db->sql_freeresult($result);
// Update comment
if ($comment_edit_submit && $comment_id)
{
$edittext = utf8_normalize_nfc(request_var('commentedit', '', true));
if ((($config['max_profile_comments_char'] == 0) ? '' : mb_strlen($edittext) > $config['max_profile_comments_char']) ^ mb_strlen($edittext) < $config['min_profile_comments_char'])
{
$charerror = sprintf((mb_strlen($edittext) > $config['max_profile_comments_char']) ? $user->lang['CHARACHTER_LIMIT_MAX'] : $user->lang['CHARACHTER_LIMIT_MIN'], (mb_strlen($edittext) > $config['max_profile_comments_char']) ? $config['max_profile_comments_char'] : $config['min_profile_comments_char']);
$comments->error($charerror, 'BACK_PROFILE');
}
$uid = $bitfield = $options = '';
$comments->store($edittext, $uid, $bitfield, $options, $bbcode_status, $url_status, $smilies_status, $quote_status, $img_status, $url_status, $flash_status);
$input = array(
'text' => $edittext,
'bbcode_uid' => $uid,
'bbcode_bitfield' => $bitfield,
'bbcode_options' => $options,
'enable_bbcode' => ($bbcode_status == true) ? 1 : 0,
'enable_magic_url' => ($url_status == true) ? 1 : 0,
'enable_smilies' => ($smilies_status == true) ? 1 : 0,
);
$runedit = $comments->edit($input, $comment_id);
// Check result of $comments->edit($input, $comment_id)
if ($runedit == false) {
$comments->error($user->lang('SQL_ERROR'), 'BACK_PROFILE');
}
// Success message
else
{
$comments->error($user->lang('COMMENT_SUCCESS_EDIT'), 'BACK_PROFILE');
}
}
}
else
{
// If comment id not isset
$comments->error($user->lang('NO_COMMENT_ID'), 'BACK_PROFILE');
}
break;
case 'delete':
// Delete selected comment
if ($comment_id)
{
// Delete if user confirms
if(confirm_box(true))
{
$rundelete = $comments->delete($comment_id);
// Check result of $comments->delete($comment_id)
if($rundelete == false)
{
$comments->error($user->lang('SQL_ERROR'), 'BACK_PROFILE');
}
else
{
// Success message
$comments->error($user->lang('COMMENT_EDIT_SUCCESS'), 'BACK_PROFILE');
}
}
else
{
// If confirm_box is not true
confirm_box(false, $user->lang('COMMENT_DELETE_CONFIRM'));
}
}
else
{
// If comment id not isset
$comments->error($user->lang('NO_COMMENT_ID'), 'BACK_PROFILE');
}
break;
}
// End profile comments MOD]]></action>
</edit>
</open>
<open src="includes/constants.php">
<edit>
<find><![CDATA[// Additional tables]]></find>
<action type="after-add"><![CDATA[define('PROFILE_COMMENTS_TABLE', $table_prefix . 'profile_comments');]]></action>
</edit>
</open>
<open src="styles/prosilver/template/memberlist_view.html">
<edit>
<find><![CDATA[ <div class="postbody"><div class="signature" style="border-top:none; margin-top: 0;">{SIGNATURE}</div></div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
</form>]]></find>
<action type="after-add"><![CDATA[<!-- IF PROFILE_COMMENTS_ENABLE --><!-- IF COMMENTS_ACL_SEE or COMMENTS_ACL_SEND -->
<div class="panel bg2">
<div class="inner"><span class="corners-top"><span></span></span>
<!-- IF COMMENTS_ACL_SEE -->
<h3>COMMENTS ({TOTAL_COMMENTS_NUMERIC})</h3>
<ul class="linklist">
<li class="rightside pagination">{TOTAL_COMMENTS} • <!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> • <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>
<!-- IF TOTAL_COMMENTS_NUMERIC eq 0 -->
<div class="panel" style="-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px; padding-top: 5px; padding-bottom: 5px;">
<strong>{L_NO_PROFILE_COMMENT}</strong>
</div>
<!-- ENDIF -->
<!-- BEGIN comment -->
<div id="c{comment.COMMENT_ID}" class="post bg1" style="-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;">
<div class="inner"><span class="corners-top" style="background-image:none;"><span style="background-image:none;"></span></span>
<div class="postbody" style="width:85%;">
<ul class="profile-icons">
<!-- IF comment.S_COMEDIT_ALLOWED --><li class="edit-icon"><a href="{comment.U_COMMENT_EDIT}" title="{L_EDIT_COMMENT}"><span>{L_EDIT_COMMENT}</span></a></li><!-- ENDIF -->
<!-- IF comment.S_COMDELETE_ALLOWED --><li class="delete-icon"><a href="{comment.U_COMMENT_DELETE}" title="{U_COMMENT_DELETE}"><span>{L_DELETE_COMMENT}</span></a></li><!-- ENDIF -->
</ul>
{comment.COMMENT_DATE}
<div class="commentcontent" style="padding-top:10px; padding-bottom: 10px;">
<div class="comtext" style="font-size:12px;">
{comment.TEXT}
</div>
</div>
</div>
<dl class="postprofile" style="width:14%;">
<dt>
<a href="{comment.U_PROFILE}">{comment.AVATAR}</a><br>
<a href="{comment.U_PROFILE}" style="color: #{comment.COLOUR};" class="username-coloured">{comment.USERNAME}</a>
<dt>{comment.RANK_TITLE}</dt>
</dt>
</dl>
<span class="corners-bottom" style="background-image:none;"><span style="background-image:none;"></span></span></div>
</div>
<!-- END comment -->
<ul class="linklist">
<li class="rightside pagination">{TOTAL_COMMENTS} • <!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> • <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>
<!-- ELSE -->
<h3>COMMENTS</h3>
<!-- ENDIF -->
<!-- IF COMMENT_MODE eq 'edit' and COMMENT_ID neq false -->
<div id="comment_box" style="font-size: 1.1em;">
<!-- INCLUDE posting_buttons.html -->
<div id="smiley-box">
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<strong>{L_SMILIES}</strong><br />
<!-- BEGIN smiley -->
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
<!-- END smiley -->
<!-- ENDIF -->
<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
<!-- ENDIF -->
<!-- IF BBCODE_STATUS -->
<!-- IF .smiley --><hr /><!-- ENDIF -->
{BBCODE_STATUS}<br />
<!-- IF S_BBCODE_ALLOWED -->
{IMG_STATUS}<br />
{FLASH_STATUS}<br />
{URL_STATUS}<br />
<!-- ENDIF -->
{SMILIES_STATUS}
<!-- ENDIF -->
</div>
<div id="message-box">
<form id="postform" method="post" action="{COMMENTEDIT_ACTION}">
<textarea name="commentedit" id="message" rows="10" cols="10">{COMMENT_EDIT_TEXT}</textarea>
<div style="text-align: center; font-size: 1.2em; padding-top: 10px; padding-bottom: 10px;"><input type="submit" accesskey="s" tabindex="6" name="commenteditsubmit" value="{L_SEND_COMMENT}" class="button1 default-submit-action"></div>
{S_FORM_TOKEN}
</form>
</div>
</div>
<!-- ELSE -->
<!-- IF COMMENTS_ACL_SEND -->
<div id="comment_box" style="font-size: 1.1em; display: none;">
<!-- INCLUDE posting_buttons.html -->
<div id="smiley-box">
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<strong>{L_SMILIES}</strong><br />
<!-- BEGIN smiley -->
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
<!-- END smiley -->
<!-- ENDIF -->
<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
<!-- ENDIF -->
<!-- IF BBCODE_STATUS -->
<!-- IF .smiley --><hr /><!-- ENDIF -->
{BBCODE_STATUS}<br />
<!-- IF S_BBCODE_ALLOWED -->
{IMG_STATUS}<br />
{FLASH_STATUS}<br />
{URL_STATUS}<br />
<!-- ENDIF -->
{SMILIES_STATUS}
<!-- ENDIF -->
</div>
<div id="message-box">
<form id="postform" method="post" action="{COMMENT_ACTION}">
<textarea name="commentcontent" id="message" rows="10" cols="10"></textarea>
<div style="text-align: center; font-size: 1.2em; padding-top: 10px;"><input type="submit" accesskey="s" tabindex="6" name="commentsubmit" value="{L_SEND_COMMENT}" class="button1 default-submit-action"></div>
{S_FORM_TOKEN}
</form>
</div>
</div>
<div style="text-align: center; font-size: 1.2em; padding-bottom: 10px;"><input type="submit" id="send_box" tabindex="1" class="button2" value="{L_SEND_COMMENT_BOX}" onclick="comment_toggle(); return false;"></div>
<script type="text/javascript">
function comment_toggle() {
var box_id = document.getElementById("comment_box");
var box_submit = document.getElementById("send_box");
box_id.style.display == "block" ? contentId.style.display = "none" :
box_id.style.display = "block";
box_submit.style.display = "none";
}
</script>
<!-- ENDIF -->
<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
<!-- ENDIF --><!-- ENDIF -->]]></action>
</edit>
</open>
<php-installer><![CDATA[profile_comments_mod_install.php]]></php-installer>
<diy-instructions lang="en"><![CDATA[Do not forget to clear template cache and set permissions if you you are not using UMIL.]]></diy-instructions>
</action-group>
</mod>