How to install [2.0.18] Attachment Mod 4.0a with EasyMod?

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Nux »

Below is an installation (not an upgrade) MOD for Attach that works with EM (or should work at least).

This should be copied to a txt file and then to the admin/mods/attachment_mod directory (along with all other files and folders of the attach like the attach_rules.php).
Please read DIY (Do It Yourself) instructions carefully.

If you will get errors on the first step then either
  1. You uploaded the files in a wrong directory or didn't uploaded all of them.
    Notice: The path for attach_rules.php (before the installation) should be:
    "your forum folder"/admin/mods/attachment_mod/attach_rules.php
    Notice: The path for the saved MOD file should be like this:
    "your forum folder"/admin/mods/attachment_mod/install.txt
  2. You have some MODs that changed phpBB so the attachment MOD cannot be installed with EM
Again, this should be save to
"your forum folder"/admin/mods/attachment_mod/install.txt

Code: Select all

################################################################# 
## MOD Title&#58 File Attachment Mod v2 
## MOD Author&#58 Nux < egil -at- wp.pl > (Maciej Jaros) N/A
## MOD Author&#58 Acyd Burn < N/A > (Meik Sievertsen) http&#58//www.opentools.de/
## MOD Description&#58 
##	Notice&#58 This is for _installing_ not upgrading Attach!
##	This Mod adds the ability to attach files in phpBB2. 
##	This Version has been tested and works with phpBB 2.0.18 and EM 0.3.0 (will not work for *Nuke Portals or phpBB2 Ports).
## MOD Version&#58 2.4.0em
## 
## Installation Level&#58   Intermediate 
## Installation Time&#58   5 Minutes (with EM)
## Files To Edit (30)&#58   common.php, faq.php, modcp.php, posting.php, privmsg.php, 
##         viewforum.php, viewtopic.php, admin/admin_forumauth.php, admin/admin_ug_auth.php, admin/admin_forums.php, 
##         admin/admin_groups.php, admin/admin_users.php, includes/auth.php, includes/functions.php, includes/functions_admin.php, 
##         includes/prune.php, includes/topic_review.php, includes/usercp_viewprofile.php, modcp_body.tpl, posting_body.tpl, 
##         posting_preview.tpl, posting_topic_review.tpl, privmsgs_body.tpl, privmsgs_preview.tpl, privmsgs_read_body.tpl, 
##         profile_view_body.tpl, viewforum_body.tpl, viewtopic_body.tpl, admin/group_edit_body.tpl, admin/user_edit_body.tpl 
## Lines(!) To Add&#58   115 
## Included Files&#58   many many files 
## License&#58 http&#58//opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check&#58 http&#58//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&#58//www.phpbb.com/mods/
############################################################## 
## Author Notes&#58 
## 
## Complete feature list&#58 docs/features.txt
## The user guide&#58 docs/user_guide.html
##
## Some tips&#58
## - I suggest reading the user guide first if you haven't installed any Mods before.
## - Please note that this Mod is NOT written to be EasyMod compatible (i haven't tested it).
## - Please follow the installation instructions as strict as you can.
##
##
## UPDATING/UPGRADING&#58
##
## Please skip to the NEW INSTALLATION part if you want to install the 
## attachment mod for the first time or want to setup a new installation.
##
## Please read the docs/update.txt document for update/upgrade instructions.
## 
##
## NEW INSTALLATION&#58
##
## You are able to choose between two installation types, depending on your setup&#58
## 
## -> Using the pre-modified files&#58
##	
##	This method is recommended for those having a vanilla (plain, not modded) phpBB Installation.
##	With this method you do not need to adjust your phpBB files at all, only running the installer
##	and uploading all files - including the pre-modified files - is required.
##
##	If you think this is the correct method for you, please follow the following steps listet in&#58
##		docs/install_using_premod_files.txt
##	to install the attachment mod.
##	
##	BTW, it is save to close this file now if you use this method. ;)
##
##
##
## -> Using the mod instructions&#58
##
##	This method is recommended for those already having applied mods to their phpBB Installation.
##
##	If you think this is the correct method for you, please read further.
## 
## 
## 
## Credits&#58 
##	Thanks to all people translating this Mod into their language and offering their work.
##	Also a big thank you to those supporting this Mod and offering help to those having problems.
##
## 
## The following sites also contain the latest version of this MOD&#58 
## 
## http&#58//www.opentools.de/
## http&#58//sourceforge.net/projects/acydmods
## http&#58//www.phpbb.com/mods
## 
## Full support for this MOD can be obtained at&#58 
## http&#58//www.opentools.de/
## Please Note that i am not able to contribute to the Attachment Mod topic at phpbb.com (http&#58//www.phpbb.com/phpBB/viewtopic.php?t=74505)
## 
############################################################## 
## MOD History&#58 
##
##	2005-11-24 - Version 2.4.0a
##		- fixed a call to sql_build_array (wrong function used) in attach_mod/includes/functions_admin.php
##			this is producing a php error message within the user administration panel (editing user details)
##		- this version is a repackage, therefore the "a" at the end (nothing else changed, update path and everything else is the same)
##
##	2005-11-21 - Version 2.4.0
##		- using olympus' system of retrieving and storing values
##		- using function for sql escaping
##		- installer now checks for upload directory
##		- fixing multiple call to database in installer
##		- fixing sort_multi_array to correctly decide if sorting is based on numeric or string
##		- taking open basedir restriction into account if checking for image size
##		- making creation of temporary thumbnail file more unique if ftp upload is used (thanks to Douglas Hoffman)
##		- fixing viewing of no longer viewable/denied attachments for admins (alcaeus)
##		- display correct filename on download
##		- added optional language variables (Sync_topics, Sync_posts and Sync_thumbnails)
##
##	Please read the docs/changelog.txt document for a complete changelog.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################## 

#
# Here starts the Installation, follow the steps very closely.
#

# 
# STEP NUMBER I&#58 Uploading all new Files
#
# Copy/Upload all files to their respective Location
# The left side shows the location of the file you should have after decompressing the package,
# the right side shows the location the file must be copied to, it is always the phpBB Root path (where the config.php file is stored at).
# Alternatively just decompress/upload the contents within the attachment_mod folder directly to your phpBB folder.
# {}

# 
#-----[ DIY INSTRUCTIONS ]--------------------------------------------- 
#
------------------------------------------------------------
MOD Author
------------------------------------------------------------

	Please notice that I (Nux) only changed this file to be more friendly for EM the original author of this MOD is&#58
	Acyd Burn (Meik Sievertsen) http&#58//www.opentools.de/

------------------------------------------------------------
Installation of SQL
------------------------------------------------------------

	When you will be done with installation through EasyMOD you will have to run the installation script (see also Additional Instructions below, before you do it)
	/install/install.php

	Notice&#58 You might get a lot of Warnings when you run the installation, 
	please pay no attention to them &#58-).


------------------------------------------------------------
Additional Instructions
------------------------------------------------------------

	The standard path for your files is 'files' and the standard upload image is images/icon_clip.gif. If you want to change it, go to your Administration Panel and change it under Attachments->Management.

	If the installer told you to make the upload path writeable, you have to chmod it to 777 (or change the owner to you httpd-servers owner) to upload files if you do not use the ftp upload feature. if you only have plain ftp-access change the 'Attribute' of your files-directory to rwxrwxrwx.

	If you are using the ftp-upload feature, enter the relevant information in Attachments->Management. The password is stored in plaintext within the database. You don't have to chmod the directory (ftp-path).

	It would be wise if you put the provided index.php to this directory to prevent directory indexing if this has been enabled at your server.

	Before you make any uploads or anything like that, i suggest you go to your Administration Panel->Attachments->Management and prove that uploading is working with the Test Upload button. ;)

------------------------------------------------------------
CONFIG CACHING
------------------------------------------------------------

	If you want the Attachment Mod config table to be cached (reduce of one query on all phpBB2 Pages), you have to create a directory 'cache' within your phpBB2 root folder.This directory have to be chmodded to 777 (see above instructions on how to do this).


#
#-----[ COPY ]--------------------------------------------- 
# 
COPY download.php TO download.php
COPY uacp.php TO uacp.php
COPY attach_rules.php TO attach_rules.php
COPY admin/admin_attach_cp.php TO admin/admin_attach_cp.php
COPY admin/admin_attachments.php TO admin/admin_attachments.php
COPY admin/admin_extensions.php TO admin/admin_extensions.php
COPY attach_mod/attachment_mod.php TO attach_mod/attachment_mod.php
COPY attach_mod/displaying.php TO attach_mod/displaying.php
COPY attach_mod/index.htm TO attach_mod/index.htm
COPY attach_mod/pm_attachments.php TO attach_mod/pm_attachments.php
COPY attach_mod/posting_attachments.php TO attach_mod/posting_attachments.php
COPY attach_mod/includes/constants.php TO attach_mod/includes/constants.php
COPY attach_mod/includes/functions_admin.php TO attach_mod/includes/functions_admin.php
COPY attach_mod/includes/functions_attach.php TO attach_mod/includes/functions_attach.php
COPY attach_mod/includes/functions_delete.php TO attach_mod/includes/functions_delete.php
COPY attach_mod/includes/functions_filetypes.php TO attach_mod/includes/functions_filetypes.php
COPY attach_mod/includes/functions_includes.php TO attach_mod/includes/functions_includes.php
COPY attach_mod/includes/functions_selects.php TO attach_mod/includes/functions_selects.php
COPY attach_mod/includes/functions_thumbs.php TO attach_mod/includes/functions_thumbs.php
COPY attach_mod/includes/index.htm TO attach_mod/includes/index.htm
COPY files/index.php TO files/index.php
COPY images/icon_clip.gif TO images/icon_clip.gif
COPY images/icon_disk.gif TO images/icon_disk.gif
COPY images/icon_disk_gray.gif TO images/icon_disk_gray.gif
COPY templates/subSilver/add_attachment_body.tpl TO templates/subSilver/add_attachment_body.tpl
COPY templates/subSilver/posted_attachments_body.tpl TO templates/subSilver/posted_attachments_body.tpl
COPY templates/subSilver/posting_attach_body.tpl TO templates/subSilver/posting_attach_body.tpl
COPY templates/subSilver/posting_attach_rules.tpl TO templates/subSilver/posting_attach_rules.tpl
COPY templates/subSilver/uacp_body.tpl TO templates/subSilver/uacp_body.tpl
COPY templates/subSilver/viewtopic_attach_body.tpl TO templates/subSilver/viewtopic_attach_body.tpl
COPY templates/subSilver/admin/attach_cat_body.tpl TO templates/subSilver/admin/attach_cat_body.tpl
COPY templates/subSilver/admin/attach_cp_attachments.tpl TO templates/subSilver/admin/attach_cp_attachments.tpl
COPY templates/subSilver/admin/attach_cp_body.tpl TO templates/subSilver/admin/attach_cp_body.tpl
COPY templates/subSilver/admin/attach_cp_search.tpl TO templates/subSilver/admin/attach_cp_search.tpl
COPY templates/subSilver/admin/attach_cp_user.tpl TO templates/subSilver/admin/attach_cp_user.tpl
COPY templates/subSilver/admin/attach_extension_groups.tpl TO templates/subSilver/admin/attach_extension_groups.tpl
COPY templates/subSilver/admin/attach_extensions.tpl TO templates/subSilver/admin/attach_extensions.tpl
COPY templates/subSilver/admin/attach_forbidden_extensions.tpl TO templates/subSilver/admin/attach_forbidden_extensions.tpl
COPY templates/subSilver/admin/attach_manage_body.tpl TO templates/subSilver/admin/attach_manage_body.tpl
COPY templates/subSilver/admin/attach_quota_body.tpl TO templates/subSilver/admin/attach_quota_body.tpl
COPY templates/subSilver/admin/attach_shadow.tpl TO templates/subSilver/admin/attach_shadow.tpl
COPY templates/subSilver/admin/extension_groups_permissions.tpl TO templates/subSilver/admin/extension_groups_permissions.tpl
COPY language/lang_english/lang_admin_attach.php TO language/lang_english/lang_admin_attach.php
COPY language/lang_english/lang_faq_attach.php TO language/lang_english/lang_faq_attach.php
COPY language/lang_english/lang_main_attach.php TO language/lang_english/lang_main_attach.php
COPY install/install.php TO install/install.php
COPY install/schemas/attach_mysql_basic.sql TO install/schemas/attach_mysql_basic.sql
COPY install/schemas/attach_mysql_schema.sql TO install/schemas/attach_mysql_schema.sql
COPY install/schemas/attach_mssql_basic.sql TO install/schemas/attach_mssql_basic.sql
COPY install/schemas/attach_mssql_schema.sql TO install/schemas/attach_mssql_schema.sql
COPY install/schemas/attach_postgres_basic.sql TO install/schemas/attach_postgres_basic.sql
COPY install/schemas/attach_postgres_schema.sql TO install/schemas/attach_postgres_schema.sql

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

# 
# STEP NUMBER II&#58 Installing the Attachment Mod (Database)
#
# You should have uploaded the install folder (above), which is only needed for running the database installer.
# Make sure you uploaded the schema Files (those files ending in .sql) in ASCII Mode (This is the Layout and Data for your Database)&#58
#
#
#
# Now we want to create the tables, therefore we run the install.php file (http&#58//www.yoursite.com/phpBB2/install/install.php)
# Please be sure to enter the correct URL (replacing www.yoursite.com with your sites URL), 
# the install.php file has to be placed within the install folder. If it is not within the install folder, you WILL get errors.
#
# After the install.php file hass been executed successfully, you should remove the complete install folder.
#
#
#


#
# STEP NUMBER III&#58 Modifying existing phpBB2 Files
#
# Now you have to alter existing phpBB2 files, read the instructions carefully and make sure you find the correct lines.
# The Line Numbers are only a hint, most of the time they are not correct, especially if you have Mods installed.
#
# 

# 
#-----[ OPEN ]--------------------------------------------- 
# 
common.php

#
#-----[ FIND ]---------------------------------------------
# around line 218
	$board_config[$row['config_name']] = $row['config_value'];
}

# 
#-----[ AFTER, ADD ]-------------------------------------- 
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

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

# 
#-----[ FIND ]---------------------------------------------
# around line 348
				remove_search_post($post_id_sql);

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
				delete_attachment(explode(', ', $post_id_sql));

# 
#-----[ FIND ]---------------------------------------------
# around line 1222
				'TOPIC_ID' => $topic_id,

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
				'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($row['topic_attachment']),

# 
#-----[ OPEN ]---------------------------------------------
# 
posting.php

# 
#-----[ FIND ]---------------------------------------------
# around line 422
$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE &#58 0 ) &#58 ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 &#58 $userdata['user_attachsig'] );

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
execute_posting_attachment_handling();

# 
#-----[ FIND ]---------------------------------------------
# around line 580
			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 715
			'preview' => 'posting_preview.tpl')
		);

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# the Line have to be added AFTER the ');'
		$attachment_mod['posting']->preview_attachments();

# 
#-----[ OPEN ]---------------------------------------------
# 
privmsg.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 753
		unset($delete_type);

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
		$attachment_mod['pm']->delete_all_pm_attachments($mark_list);

#
#-----[ FIND ]---------------------------------------------
# around line 1319
		if ( $mode != 'edit' )
		{
			//
			// Add to the users new pm counter
			//

# 
#-----[ BEFORE, ADD ]--------------------------------------- 
# The Line has to be added BEFORE 'if ( $mode != 'edit' )'
		$attachment_mod['pm']->insert_attachment_pm($privmsg_id);

#
#-----[ FIND ]---------------------------------------------
# around line 1624
			"preview" => 'privmsgs_preview.tpl')
		);

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# The Line have to be added AFTER the ');'
		$attachment_mod['pm']->preview_attachments();

#
#-----[ FIND ]---------------------------------------------
# around line 2169
			'DATE' => $msg_date,

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
			'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id),

# 
#-----[ OPEN ]---------------------------------------------
# 
viewforum.php

# 
#-----[ FIND ]---------------------------------------------
# around line 370
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] &#58 $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 ]---------------------------------------------
# 
viewtopic.php

# 
#-----[ FIND ]---------------------------------------------
# around line 152
		AND f.forum_id = t.forum_id
		$order_sql";

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
attach_setup_viewtopic_auth($order_sql, $sql);

# 
#-----[ FIND ]---------------------------------------------
# around line 587
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] &#58 $lang['Rules_vote_cannot'] ) . '<br />';

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
attach_build_auth_levels($is_auth, $s_auth_can);

# 
#-----[ FIND ]---------------------------------------------
# around line 817
//
// Update the topic view counter

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
init_display_post_attachments($forum_topic_data['topic_attachment']);

# 
#-----[ FIND ]---------------------------------------------
# around line 1209
		'U_POST_ID' => $postrow[$i]['post_id'])
	);

# 
#-----[ AFTER, ADD ]---------------------------------------
# The Line have to be added AFTER the ');' and BEFORE the '}' (without single quotes)
	display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);

# 
#-----[ OPEN ]---------------------------------------------
# 
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 ]---------------------------------------------
# 
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 ]---------------------------------------------
# 
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 ]---------------------------------------------
# 
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 ]---------------------------------------------
# 
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&#58
			break;

		default&#58
			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 319
	//
	// Set up style

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
	include_attach_lang();

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

# 
#-----[ FIND ]---------------------------------------------
# around line 184
			}
			break;
	}
	
	return true;

# 
#-----[ BEFORE, ADD ]---------------------------------------
#
				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 175
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

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

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

#
#-----[ FIND ]---------------------------------------------
# around line 27 
	  <td class="row1">&nbsp;<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 ]---------------------------------------------
# 
templates/subSilver/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 ]---------------------------------------------
# 
templates/subSilver/posting_preview.tpl

# 
#-----[ FIND ]---------------------------------------------
# around line 13
					<span class="postbody">{MESSAGE}</span>

# 
#-----[ AFTER, ADD ]---------------------------------------
# Do NOT make one line out of this, a <!-- --> template statement has to be on one seperate line
					<!-- BEGIN postrow -->
					{ATTACHMENTS}
					<!-- END postrow -->

# 
#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/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 ]---------------------------------------------
# 
templates/subSilver/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="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">&nbsp;<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">&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}

# 
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
# 
{listrow.PRIVMSG_ATTACHMENTS_IMG}

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

# 
#-----[ FIND ]---------------------------------------------
# around line 23
	<td valign="top" colspan="2" class="row1"><span class="postbody">{MESSAGE}</span></td>

# 
#-----[ REPLACE WITH ]---------------------------------------
# Do NOT make 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 ]---------------------------------------------
# 
templates/subSilver/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 make 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 make one line out of this, a <!-- --> template statement has to be on one seperate line
<!-- BEGIN switch_attachments -->
		&nbsp; 
		<input type="submit" name="pm_delete_attach" value="{L_DELETE_ATTACHMENTS}" class="liteoption" />
<!-- END switch_attachments -->

# 
#-----[ 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}&#58</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/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 ]---------------------------------------------
# 
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 ]------------------------------------------ 
#
# EoM

ziviz
Registered User
Posts: 9
Joined: Tue Nov 01, 2005 12:01 pm

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by ziviz »

Tha same problem. :(

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Nux »

If you get the same error that you mentioned before then you should probably reinstall EM (instructions in the ReadMe), be sure you have the latest version of EM (0.3.0).

ziviz
Registered User
Posts: 9
Joined: Tue Nov 01, 2005 12:01 pm

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by ziviz »

I have reinstaled EM (I have latest EM version 0.3.0 twice but problem not solved. :(

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Nux »

Try to install some other MOD (some simple one) and see if it will happen again (with that MOD).

ziviz
Registered User
Posts: 9
Joined: Tue Nov 01, 2005 12:01 pm

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by ziviz »

Heh... I try install Log actions mod and have the same problem... Any ideas?

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Nux »

Please create a new topic (if you haven't already) and state your problem (include your Debug Info there), thanks.

Ero
Registered User
Posts: 1
Joined: Tue Jan 17, 2006 11:51 pm

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Ero »

damn! got this error:

Please_remove_install_contrib

http://forum.festihouse.com" target="_blank

even tho I´ve deleted admin/mods/attachment_mod/Install and admin/mods/attachment_mod/Contrib

"NOW REMOVE THE INSTALL AND CONTRIB DIRECTORIES"

didnt get any error during Install, and the mod seems to work when I configure it throu Admin.

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by Nux »

You were supposed to delete install and contrib forlder in the main (root) folder of phpBB... But I guess you've got that figured.

nadir
Registered User
Posts: 6
Joined: Wed Dec 10, 2003 11:10 pm

Re: How to install [2.0.18] Attachment Mod 4.0a with EasyMod

Post by nadir »

I have the same prob as above ... the contrib / install directories have been deleted from the root directory, yet it still claims that I have it there.

Any thoughts?

Locked