#---------- Things to do, to upgrade from 2.3.x to 2.3.9 ----------#

Please be careful to not overwrite your existing images or uploaded files.

---

Upload the Updater:

attach_mod/root/install/attach_update_23x_to_latest.php -> install/attach_update_23x_to_latest.php

Maybe you have to create the install folder, since the attach_update_23x_to_latest.php file have to be placed
within the install folder under your phpBB2 Directory.

---

Now run the Updater: http://www.yourdomain.com/phpBB2/install/attach_update_23x_to_latest.php
If you have problems or questions on this, please read the Attachment Mod User Guide first.

---

Upload all files to their respective Location (the directory structure is in the folder root)

 attach_mod/root/download.php							-> download.php
 attach_mod/root/uacp.php							-> uacp.php
 attach_mod/root/attach_rules.php						-> attach_rules.php
 attach_mod/root/admin/admin_attach_cp.php					-> admin/admin_attach_cp.php
 attach_mod/root/admin/admin_attachments.php					-> admin/admin_attachments.php
 attach_mod/root/admin/admin_extensions.php					-> admin/admin_extensions.php
 attach_mod/root/attach_mod/attachment_mod.php					-> attach_mod/attachment_mod.php
 attach_mod/root/attach_mod/displaying.php					-> attach_mod/displaying.php
 attach_mod/root/attach_mod/pm_attachments.php					-> attach_mod/pm_attachments.php
 attach_mod/root/attach_mod/posting_attachments.php				-> attach_mod/posting_attachments.php
 attach_mod/root/attach_mod/includes/constants.php				-> attach_mod/includes/constants.php
 attach_mod/root/attach_mod/includes/functions_admin.php			-> attach_mod/includes/functions_admin.php
 attach_mod/root/attach_mod/includes/functions_attach.php			-> attach_mod/includes/functions_attach.php
 attach_mod/root/attach_mod/includes/functions_delete.php			-> attach_mod/includes/functions_delete.php
 attach_mod/root/attach_mod/includes/functions_filetypes.php			-> attach_mod/includes/functions_filetypes.php
 attach_mod/root/attach_mod/includes/functions_includes.php			-> attach_mod/includes/functions_includes.php
 attach_mod/root/attach_mod/includes/functions_selects.php			-> attach_mod/includes/functions_selects.php
 attach_mod/root/attach_mod/includes/functions_thumbs.php			-> attach_mod/includes/functions_thumbs.php
 attach_mod/root/templates/subSilver/add_attachment_body.tpl			-> templates/subSilver/add_attachment_body.tpl
 attach_mod/root/templates/subSilver/posted_attachments_body.tpl		-> templates/subSilver/posted_attachments_body.tpl
 attach_mod/root/templates/subSilver/posting_attach_body.tpl			-> templates/subSilver/posting_attach_body.tpl
 attach_mod/root/templates/subSilver/posting_attach_rules.tpl			-> templates/subSilver/posting_attach_rules.tpl
 attach_mod/root/templates/subSilver/uacp_body.tpl				-> templates/subSilver/uacp_body.tpl
 attach_mod/root/templates/subSilver/viewtopic_attach_body.tpl			-> templates/subSilver/viewtopic_attach_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_cat_body.tpl			-> templates/subSilver/admin/attach_cat_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_attachments.tpl		-> templates/subSilver/admin/attach_cp_attachments.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_body.tpl			-> templates/subSilver/admin/attach_cp_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_search.tpl			-> templates/subSilver/admin/attach_cp_search.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_user.tpl			-> templates/subSilver/admin/attach_cp_user.tpl
 attach_mod/root/templates/subSilver/admin/attach_extension_groups.tpl		-> templates/subSilver/admin/attach_extension_groups.tpl
 attach_mod/root/templates/subSilver/admin/attach_extensions.tpl		-> templates/subSilver/admin/attach_extensions.tpl
 attach_mod/root/templates/subSilver/admin/attach_forbidden_extensions.tpl	-> templates/subSilver/admin/attach_forbidden_extensions.tpl
 attach_mod/root/templates/subSilver/admin/attach_manage_body.tpl		-> templates/subSilver/admin/attach_manage_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_quota_body.tpl		-> templates/subSilver/admin/attach_quota_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_shadow.tpl			-> templates/subSilver/admin/attach_shadow.tpl
 attach_mod/root/templates/subSilver/admin/extension_groups_permissions.tpl	-> templates/subSilver/admin/extension_groups_permissions.tpl

---

Upload the Language Files (English (German is optional)) provided with the Attachment Mod, located in attach_mod/root/language)
to your language Directory.

If you want/have another language, please visit http://www.opentools.de/attach_mod/ , and download your
Language if it is available. If you have a multi-national board you may want to upload all language files.
Please make sure you download the Language Pack for Version 2.3.9 of the Attachment Mod.

---

Now we are making the content changes to already existing Files, please choose the appropiate Section in order to change the 
correct files.
Only those changed in their content for the Attachment Mod are listed, for a complete List see the install.txt.

If you don't want to edit the Files, please have a look into the contrib-directory and read the readme.txt located there.
You will find pre-edited files for phpBB 2.0.6 in the contrib directory.

--- You do not need to do the following Step if you use the pre-edited Files

How to read those Upgrade Instructions:
For example, if you are upgrading from Version 2.3.2, you have to follow the following steps:
'UPGRADE FROM 2.3.1/2.3.2/2.3.3 to 2.3.9' and 'UPGRADE FROM 2.3.1/2.3.2/2.3.3/2.3.4 to 2.3.9'
you can read the / as an OR. ;) So it reads:
'UPGRADE FROM 2.3.1 or 2.3.2 or 2.3.3 to 2.3.9' and 'UPGRADE FROM 2.3.1 or 2.3.2 or 2.3.3 or 2.3.4 to 2.3.9'
You have to follow both steps, because your Version 2.3.2 is listed in both of them. ;)

#################################################
# UPGRADE FROM 2.3.1 to 2.3.9			#
#################################################

Changed Files: includes/functions_admin

# 
#-----[ OPEN ]---------------------------------------------
# 
includes/functions_admin.php

# 
#-----[ FIND ]---------------------------------------------
# around line 145
					message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
				}
			}

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
			attachment_sync_topic($id);

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 


#################################################
# UPGRADE FROM 2.3.1/2.3.2/2.3.3 to 2.3.9	#
#################################################

Changed Files: privmsg.php

# 
#-----[ OPEN ]---------------------------------------------
# 
privmsg.php

#
#-----[ FIND ]---------------------------------------------
# around line 1436
		$attachment_mod['posting']->preview_attachments(PAGE_PRIVMSGS);

# 
#-----[ REPLACE WITH ]--------------------------------------- 
#
		$attachment_mod['pm']->preview_attachments();

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

#################################################
# UPGRADE FROM 2.3.1/2.3.2/2.3.3/2.3.4 to 2.3.9	#
#################################################

Changed Files:	includes/usercp_viewprofile.php, admin/admin_forums.php, admin/admin_groups.php, admin/admin_users.php,
		privmsgs_body.tpl, profile_view_body.tpl, viewtopic_body.tpl, admin/group_edit_body.tpl, admin/user_edit_body.tpl

# 
#-----[ OPEN ]---------------------------------------------
# 
includes/usercp_viewprofile.php

# 
#-----[ FIND ]---------------------------------------------
# around line 169
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
display_upload_attach_box_limits($profiledata['user_id']);

# 
#-----[ OPEN ]---------------------------------------------
# 
admin/admin_forums.php

# 
#-----[ FIND ]---------------------------------------------
# around line 55
//
// Mode setting

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
$forum_auth_ary['auth_attachments'] = AUTH_REG;
$forum_auth_ary['auth_download'] = AUTH_REG;

# 
#-----[ OPEN ]---------------------------------------------
# 
admin/admin_groups.php

# 
#-----[ FIND ]---------------------------------------------
# around line 60
if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
attachment_quota_settings('group', $HTTP_POST_VARS['group_update'], $mode);

# 
#-----[ OPEN ]---------------------------------------------
# 
admin/admin_users.php

# 
#-----[ FIND ]---------------------------------------------
# around line 60
	//
	// Ok, the profile has been modified and submitted, let's update

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
	attachment_quota_settings('user', $HTTP_POST_VARS['submit'], $mode);

# 
#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/privmsgs_body.tpl

# 
#-----[ FIND ]---------------------------------------------
# around line 14
<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="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>

# 
#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/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="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 ]---------------------------------------------
# 
templates/subSilver/viewtopic_body.tpl

# 
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 39 (directly in that line)
{postrow.SIGNATURE}</span>{postrow.ATTACHMENTS}

# 
#-----[ IN-LINE REPLACE WITH ]---------------------------------------
# 
</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span>

# 
#-----[ OPEN ]---------------------------------------------
# 
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 ]---------------------------------------------
# 
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 ]------------------------------------------ 
# 

Upload all modified Files and have a look at the Administration Panel, you will see some new Functions/Features.

#################################################
# UPGRADE FROM 2.3.5/2.3.6/2.3.7/2.3.8 to 2.3.9	#
#################################################

Nothing major to do. :)


Please be sure to upload ALL Attachment Mod related files, those are:

 attach_mod/root/download.php							-> download.php
 attach_mod/root/uacp.php							-> uacp.php
 attach_mod/root/attach_rules.php						-> attach_rules.php

 attach_mod/root/admin/admin_attach_cp.php					-> admin/admin_attach_cp.php
 attach_mod/root/admin/admin_attachments.php					-> admin/admin_attachments.php
 attach_mod/root/admin/admin_extensions.php					-> admin/admin_extensions.php

 attach_mod/root/attach_mod/attachment_mod.php					-> attach_mod/attachment_mod.php
 attach_mod/root/attach_mod/displaying.php					-> attach_mod/displaying.php
 attach_mod/root/attach_mod/pm_attachments.php					-> attach_mod/pm_attachments.php
 attach_mod/root/attach_mod/posting_attachments.php				-> attach_mod/posting_attachments.php

 attach_mod/root/attach_mod/includes/constants.php				-> attach_mod/includes/constants.php
 attach_mod/root/attach_mod/includes/functions_admin.php			-> attach_mod/includes/functions_admin.php
 attach_mod/root/attach_mod/includes/functions_attach.php			-> attach_mod/includes/functions_attach.php
 attach_mod/root/attach_mod/includes/functions_delete.php			-> attach_mod/includes/functions_delete.php
 attach_mod/root/attach_mod/includes/functions_filetypes.php			-> attach_mod/includes/functions_filetypes.php
 attach_mod/root/attach_mod/includes/functions_includes.php			-> attach_mod/includes/functions_includes.php
 attach_mod/root/attach_mod/includes/functions_selects.php			-> attach_mod/includes/functions_selects.php
 attach_mod/root/attach_mod/includes/functions_thumbs.php			-> attach_mod/includes/functions_thumbs.php

 attach_mod/root/templates/subSilver/add_attachment_body.tpl			-> templates/subSilver/add_attachment_body.tpl
 attach_mod/root/templates/subSilver/posted_attachments_body.tpl		-> templates/subSilver/posted_attachments_body.tpl
 attach_mod/root/templates/subSilver/posting_attach_body.tpl			-> templates/subSilver/posting_attach_body.tpl
 attach_mod/root/templates/subSilver/posting_attach_rules.tpl			-> templates/subSilver/posting_attach_rules.tpl
 attach_mod/root/templates/subSilver/uacp_body.tpl				-> templates/subSilver/uacp_body.tpl
 attach_mod/root/templates/subSilver/viewtopic_attach_body.tpl			-> templates/subSilver/viewtopic_attach_body.tpl

 attach_mod/root/templates/subSilver/admin/attach_cat_body.tpl			-> templates/subSilver/admin/attach_cat_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_attachments.tpl		-> templates/subSilver/admin/attach_cp_attachments.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_body.tpl			-> templates/subSilver/admin/attach_cp_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_search.tpl			-> templates/subSilver/admin/attach_cp_search.tpl
 attach_mod/root/templates/subSilver/admin/attach_cp_user.tpl			-> templates/subSilver/admin/attach_cp_user.tpl
 attach_mod/root/templates/subSilver/admin/attach_extension_groups.tpl		-> templates/subSilver/admin/attach_extension_groups.tpl
 attach_mod/root/templates/subSilver/admin/attach_extensions.tpl		-> templates/subSilver/admin/attach_extensions.tpl
 attach_mod/root/templates/subSilver/admin/attach_forbidden_extensions.tpl	-> templates/subSilver/admin/attach_forbidden_extensions.tpl
 attach_mod/root/templates/subSilver/admin/attach_manage_body.tpl		-> templates/subSilver/admin/attach_manage_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_quota_body.tpl		-> templates/subSilver/admin/attach_quota_body.tpl
 attach_mod/root/templates/subSilver/admin/attach_shadow.tpl			-> templates/subSilver/admin/attach_shadow.tpl
 attach_mod/root/templates/subSilver/admin/extension_groups_permissions.tpl	-> templates/subSilver/admin/extension_groups_permissions.tpl
