#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/common.php
#
#-----[ FIND ]---------------------------------------------
# around line 211
$board_config[$row['config_name']] = $row['config_value'];
}
#
#-----[ AFTER, ADD ]--------------------------------------
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/faq.php
#
#-----[ FIND ]---------------------------------------------
# around line 62
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_faq_include($lang_file);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/modcp.php
#
#-----[ FIND ]---------------------------------------------
# around line 338
remove_search_post($post_id_sql);
#
#-----[ AFTER, ADD ]---------------------------------------
#
delete_attachment(explode(', ', $post_id_sql));
#
#-----[ FIND ]---------------------------------------------
# around line 1184
'TOPIC_ID' => $topic_id,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($row['topic_attachment']),
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/posting.php
#
#-----[ FIND ]---------------------------------------------
# around line 412
$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 : $userdata['user_attachsig'] );
#
#-----[ AFTER, ADD ]---------------------------------------
#
execute_posting_attachment_handling();
#
#-----[ FIND ]---------------------------------------------
# around line 570
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
$attachment_mod['posting']->insert_attachment($post_id);
#
#-----[ FIND ]---------------------------------------------
# around line 704
'preview' => 'posting_preview.tpl')
);
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the ');'
$attachment_mod['posting']->preview_attachments();
#
#-----[ OPEN ]---------------------------------------------
#
modules/Private_Messages/index.php
#
#-----[ FIND ]---------------------------------------------
# around line 131
// ----------
// Start main
#
#-----[ BEFORE, ADD ]--------------------------------------
#
execute_privmsgs_attachment_handling($mode);
#
#-----[ FIND ]---------------------------------------------
# around line 350
//
// Pick a folder, any folder, so long as it's one below ...
#
#-----[ BEFORE, ADD ]--------------------------------------
#
$attachment_mod['pm']->duplicate_attachment_pm($privmsg['privmsgs_attachment'], $privmsg['privmsgs_id'], $privmsg_sent_id);
#
#-----[ FIND ]---------------------------------------------
# around line 490
$user_id_to = $privmsg['user_id_2'];
#
#-----[ AFTER, ADD ]---------------------------------------
#
init_display_pm_attachments($privmsg['privmsgs_attachment']);
#
#-----[ FIND ]---------------------------------------------
# around line 742
unset($delete_type);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
$attachment_mod['pm']->delete_all_pm_attachments($mark_list);
#
#-----[ FIND ]---------------------------------------------
# around line 1284
if ( $mode != 'edit' )
{
//
// Add to the users new pm counter
//
#
#-----[ BEFORE, ADD ]---------------------------------------
# The Line have to be added BEFORE 'if ( $mode != 'edit' )'
$attachment_mod['pm']->insert_attachment_pm($privmsg_id);
#
#-----[ FIND ]---------------------------------------------
# around line 1585
"preview" => 'privmsgs_preview.tpl')
);
#
#-----[ AFTER, ADD ]---------------------------------------
# The Line have to be added AFTER the ');'
$attachment_mod['pm']->preview_attachments();
#
#-----[ FIND ]---------------------------------------------
# around line 2127
'DATE' => $msg_date,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id),
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/viewforum.php
#
#-----[ FIND ]---------------------------------------------
# around line 370
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br />';
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_build_auth_levels($is_auth, $s_auth_can);
#
#-----[ FIND ]---------------------------------------------
# around line 648
'NEWEST_POST_IMG' => $newest_post_img,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($topic_rowset[$i]['topic_attachment']),
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/viewtopic.php
#
#-----[ FIND ]---------------------------------------------
# around line 151
AND f.forum_id = t.forum_id
$order_sql";
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_setup_viewtopic_auth($order_sql, $sql);
#
#-----[ FIND ]---------------------------------------------
# around line 585
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br />';
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_build_auth_levels($is_auth, $s_auth_can);
#
#-----[ FIND ]---------------------------------------------
# around line 815
//
// Update the topic view counter
#
#-----[ BEFORE, ADD ]---------------------------------------
#
init_display_post_attachments($forum_topic_data['topic_attachment']);
#
#-----[ FIND ]---------------------------------------------
# around line 1210
'U_POST_ID' => $postrow[$i]['post_id'])
);
#
#-----[ AFTER, ADD ]---------------------------------------
# The Line have to be added AFTER the ');'
display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_forumauth.php
#
#-----[ FIND ]---------------------------------------------
# around line 72
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_setup_forum_auth($simple_auth_ary, $forum_auth_fields, $field_names);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_forums.php
#
#-----[ FIND ]---------------------------------------------
# around line 52
//
// Mode setting
#
#-----[ BEFORE, ADD ]---------------------------------------
#
$forum_auth_ary['auth_attachments'] = AUTH_REG;
$forum_auth_ary['auth_download'] = AUTH_REG;
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_groups.php
#
#-----[ FIND ]---------------------------------------------
# around line 59
if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attachment_quota_settings('group', $HTTP_POST_VARS['group_update'], $mode);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_ug_auth.php
#
#-----[ FIND ]---------------------------------------------
# around line 91
// ---------------
// Start Functions
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attach_setup_usergroup_auth($forum_auth_fields, $auth_field_match, $field_names);
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------
# around line 62
//
// Ok, the profile has been modified and submitted, let's update
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attachment_quota_settings('user', $HTTP_POST_VARS['submit'], $mode);
#
#-----[ OPEN ]---------------------------------------------
#
includes/auth.php
#
#-----[ FIND ]---------------------------------------------
# around line 105
case AUTH_ATTACH:
break;
default:
break;
}
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
attach_setup_basic_auth($type, $auth_fields, $a_sql);
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]---------------------------------------------
# around line 256
//
// Set up style
#
#-----[ BEFORE, ADD ]---------------------------------------
#
include_attach_lang();
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]---------------------------------------------
# around line 146
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
#
#-----[ AFTER, ADD ]---------------------------------------
# After the last closing brace, before the break;
attachment_sync_topic($id);
#
#-----[ OPEN ]---------------------------------------------
#
includes/prune.php
#
#-----[ FIND ]---------------------------------------------
# around line 113
remove_search_post($sql_post);
#
#-----[ AFTER, ADD ]---------------------------------------
#
prune_attachments($sql_post);
#
#-----[ OPEN ]---------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]---------------------------------------------
# around line 43
WHERE t.topic_id = $topic_id
AND f.forum_id = t.forum_id";
#
#-----[ AFTER, ADD ]---------------------------------------
#
$tmp = '';
attach_setup_viewtopic_auth($tmp, $sql);
#
#-----[ FIND ]---------------------------------------------
# around line 120
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
#
#-----[ BEFORE, ADD ]---------------------------------------
#
init_display_review_attachments($is_auth);
#
#-----[ FIND ]---------------------------------------------
# around line 203
'L_MINI_POST_ALT' => $mini_post_alt)
);
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the ');'
display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth);
#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]---------------------------------------------
# around line 170
include('includes/page_header.'.$phpEx);
#
#-----[ AFTER, ADD ]---------------------------------------
#
display_upload_attach_box_limits($profiledata['user_id']);
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/modcp_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 27
<td class="row1"> <span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td>
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 27 (directly in that line)
{topicrow.TOPIC_TYPE}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
#
{topicrow.TOPIC_ATTACHMENT_IMG}
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/posting_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 258
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
#
#-----[ REPLACE WITH ]---------------------------------------
#
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>
#
#-----[ FIND ]---------------------------------------------
# around line 462
{POLLBOX}
#
#-----[ BEFORE, ADD ]---------------------------------------
#
{ATTACHBOX}
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/posting_preview.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 13
<span class="postbody">{MESSAGE}</span>
#
#-----[ AFTER, ADD ]---------------------------------------
#
<!-- BEGIN postrow -->
{ATTACHMENTS}
<!-- END postrow -->
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/posting_topic_review.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 26
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span></td>
#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 26 (directly in that line)
{postrow.MESSAGE}</span>
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------
#
{postrow.ATTACHMENTS}
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/privmsgs_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 15
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
#
#-----[ AFTER, ADD ]---------------------------------------
#
<td align="right">
<!-- BEGIN switch_box_size_notice -->
<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
<tr>
<td colspan="3" width="175" class="row1" nowrap="nowrap"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></td>
</tr>
<tr>
<td colspan="3" width="175" class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td bgcolor="{T_TD_COLOR2}"><img src="modules/Forums/templates/subSilver/images/spacer.gif" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="8" alt="{ATTACH_LIMIT_PERCENT}" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%" class="row1"><span class="gensmall">0%</span></td>
<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
</tr>
</table>
<!-- END switch_box_size_notice -->
</td>
#
#-----[ FIND ]---------------------------------------------
# around line 106
<td width="55%" valign="middle" class="{listrow.ROW_CLASS}"><span class="topictitle"> <a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></span></td>
#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 106 (directly in that line)
<span class="topictitle"> <a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
#
{listrow.PRIVMSG_ATTACHMENTS_IMG}
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/privmsgs_preview.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 23
<td valign="top" colspan="2" class="row1"><span class="postbody">{MESSAGE}</span></td>
#
#-----[ REPLACE WITH ]---------------------------------------
# Do not form one line out of this, a <!-- --> template statement has to be on one seperate line
<td valign="top" colspan="2" class="row1"><span class="postbody">{MESSAGE}</span>
<!-- BEGIN postrow -->
{ATTACHMENTS}
<!-- END postrow -->
</td>
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/privmsgs_read_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 47
<td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span></td>
#
#-----[ REPLACE WITH ]---------------------------------------
# Do not form one line out of this, a <!-- --> template statement has to be on one seperate line
<td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span>
<!-- BEGIN postrow -->
{ATTACHMENTS}
<!-- END postrow -->
</td>
#
#-----[ FIND ]---------------------------------------------
# around line 74
<input type="submit" name="delete" value="{L_DELETE_MSG}" class="liteoption" />
#
#-----[ AFTER, ADD ]---------------------------------------
# Do not form one line out of this, a <!-- --> template statement has to be on one seperate line
<!-- BEGIN switch_attachments -->
<input type="submit" name="pm_delete_attach" value="{L_DELETE_ATTACHMENTS}" class="liteoption" />
<!-- END switch_attachments -->
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/profile_view_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 41
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ AFTER, ADD ]---------------------------------------
#
<!-- BEGIN switch_upload_limits -->
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:</span></td>
<td>
<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
<tr>
<td colspan="3" width="100%" class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td bgcolor="{T_TD_COLOR2}"><img src="modules/Forums/templates/subSilver/images/spacer.gif" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="8" alt="{UPLOAD_LIMIT_PERCENT}" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%" class="row1"><span class="gensmall">0%</span></td>
<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
</tr>
</table>
<b><span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span> </b><br />
<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span></td>
</td>
</tr>
<!-- END switch_upload_limits -->
#
#-----[ OPEN ]---------------------------------------------
#
themes/YOUR_THEME/forums/viewforum_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 26
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 26 (directly in that line)
{topicrow.NEWEST_POST_IMG}
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------
#
{topicrow.TOPIC_ATTACHMENT_IMG}
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 39
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 39 (directly in that line)
{postrow.SIGNATURE}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
#
</span>{postrow.ATTACHMENTS}<span class="postbody">
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/templates/subSilver/admin/group_edit_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 48
<!-- END group_edit -->
#
#-----[ BEFORE, ADD ]---------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_UPLOAD_QUOTA}</span></td>
<td class="row2">{S_SELECT_UPLOAD_QUOTA}</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PM_QUOTA}</span></td>
<td class="row2">{S_SELECT_PM_QUOTA}</td>
</tr>
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 267
<td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
</tr>
#
#-----[ AFTER, ADD ]---------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_UPLOAD_QUOTA}</span></td>
<td class="row2">{S_SELECT_UPLOAD_QUOTA}</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PM_QUOTA}</span></td>
<td class="row2">{S_SELECT_PM_QUOTA}</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#