Attachment mod ...

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
Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Attachment mod ...

Post by Atea »

Ok, I may be stupid, but I tried almost everything and I still can't install Attachment Mod with EasyMOD ... Do I need to do any changes in files, before I can install this Mod with EasyMOD?

Oh and one more thing ... What is meaning of folder root in almost every instruction? I thought for lot of time, that it means basic folder of forum [phpBB2, phpBB3], but now I'm not so sure ... :? :?

Please help! *wants to have a complete forum before the new year :mrgreen: :mrgreen: *
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Attachment mod ...

Post by Nightrider »

Typically when you hear someone talking about the forum root or the folder root, they are talking about the folder and not any sub-folders. Occasionally MOD authors will include a folder named root in their MODs though. So you need to look how they are using it in context to what you can see...

I created an EM Friendly version of the Attachment MOD that you can use instead of the one that is provided with the MOD. Try this. Be sure to follow the DIY INSTRUCTIONS included at the end of the MOD install...

Attachment MOD 2.4.5

Code: Select all

################################################################# 
## MOD Title: File Attachment Mod v2 
## MOD Author: Acyd Burn < N/A > (Meik Sievertsen) http://www.opentools.de/
## MOD Description: 
##	This Mod adds the ability to attach files in phpBB2. 
##	This Version has been tested and works with phpBB 2.0.21.
##	This Version will NOT work with phpBB2 Modules designed for *Nuke Portals or phpBB2 Ports.
## MOD Version: 2.4.5
## 
## Installation Level: Easy when using Easymod 
## Installation Time:  1 Minute
## Files To Edit:   30
## 		 			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 
## Included Files:   many many files 
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
############################################################## 
## Author Notes: 
## 
## Complete feature list: docs/features.txt
## The user guide: docs/user_guide.html
##
## Some notes:
## - 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:
##
## 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:
##
## You are able to choose between two installation types, depending on your setup:
## 
## -> Using the pre-modified files:
##	
##	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:
##		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:
##
##	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: 
##	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: 
## 
## http://www.opentools.de/
## http://sourceforge.net/projects/acydmods
## http://www.phpbb.com/mods
## 
## Full support for this MOD can be obtained at: 
## http://www.opentools.de/
## Please Note that i am not able to contribute to the Attachment Mod topic at phpbb.com (http://www.phpbb.com/phpBB/viewtopic.php?t=74505)
## 
############################################################## 
## MOD History: 
##
##	2006-10-14 - Version 2.4.5
##		- Created EM Friendly Version by Nightrider
##
##	2006-09-06 - Version 2.4.5
##		- fixed another XSS vulnerability only occurring for users using the internet explorer - Kellanved
##		- added COPY statement for easymod
##		- some very tiny template fixes
##		- thanks to alcaeus for verifying that the XSS issues got fixed by the implemented code
##
##	2006-09-04 - Version 2.4.4
##		- fixed typo in functions_filetypes.php
##		- adjusted install.txt to follow the phpBB MOD guidelines
##		- adjusted attachment viewtopic template for calling the loop param correctly
##		- fixed XSS only occurring for users using Internet Explorer - Vovochka
##		- used constant for user id in functions_includes
##
##	2006-04-23 - Version 2.4.3
##		- fixed wrong id in posting_attachments.php
##		- fixed some wrong db calls in functions_admin.php (not changing functionality)
##
##	2006-04-18 - Version 2.4.2
##		- fixed XSS on uploading while displaying an error - Ptirhiik
##		- take user_pending status into account while checking the quota limits - Ptirhiik
##		- check the edited attachment ids if they belong to the post/pm - Ptirhiik
##		- check filename/id information for new attachments on new post/pm - Ptirhiik
##		- moved check for empty files before database check in shadow attachments - John Bigg
##		- show all forbidden extensions
##
##	2005-12-30 - Version 2.4.1
##		- fixed doubled sql_freeresult in functions_selects.php
##		- fix extension admin panel (unable to update extensions)
##		- changed tmp dir for ftp download in safe mod from temp directory in upload directory to upload directory
##
##	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
############################################################## 
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------------
#
 If you want/have another language, please visit http://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 I: Installing the Attachment Mod (Database)

 You can disregard Step I if EM successfully applied the SQL queries to your 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):

 Now we want to create the tables, therefore we run the install.php file (http://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 II: 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 anything, 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

#
#-----[ SQL ]------------------------------------------------
#
CREATE TABLE phpbb_attachments_config (
  config_name varchar(255) NOT NULL,
  config_value varchar(255) NOT NULL,
  PRIMARY KEY (config_name)
);

CREATE TABLE phpbb_forbidden_extensions (
  ext_id mediumint(8) UNSIGNED NOT NULL auto_increment, 
  extension varchar(100) NOT NULL, 
  PRIMARY KEY (ext_id)
);

CREATE TABLE phpbb_extension_groups (
  group_id mediumint(8) NOT NULL auto_increment,
  group_name char(20) NOT NULL,
  cat_id tinyint(2) DEFAULT '0' NOT NULL, 
  allow_group tinyint(1) DEFAULT '0' NOT NULL,
  download_mode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
  upload_icon varchar(100) DEFAULT '',
  max_filesize int(20) DEFAULT '0' NOT NULL,
  forum_permissions varchar(255) default '' NOT NULL,
  PRIMARY KEY (group_id)
);

CREATE TABLE phpbb_extensions (
  ext_id mediumint(8) UNSIGNED NOT NULL auto_increment,
  group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
  extension varchar(100) NOT NULL,
  comment varchar(100),
  PRIMARY KEY (ext_id)
);

CREATE TABLE phpbb_attachments_desc (
  attach_id mediumint(8) UNSIGNED NOT NULL auto_increment,
  physical_filename varchar(255) NOT NULL,
  real_filename varchar(255) NOT NULL,
  download_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
  comment varchar(255),
  extension varchar(100),
  mimetype varchar(100),
  filesize int(20) NOT NULL,
  filetime int(11) DEFAULT '0' NOT NULL,
  thumbnail tinyint(1) DEFAULT '0' NOT NULL,
  PRIMARY KEY (attach_id),
  KEY filetime (filetime),
  KEY physical_filename (physical_filename(10)),
  KEY filesize (filesize)
);

CREATE TABLE phpbb_attachments (
  attach_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, 
  post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, 
  privmsgs_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
  user_id_1 mediumint(8) NOT NULL,
  user_id_2 mediumint(8) NOT NULL,
  KEY attach_id_post_id (attach_id, post_id),
  KEY attach_id_privmsgs_id (attach_id, privmsgs_id),
  KEY post_id (post_id),
  KEY privmsgs_id (privmsgs_id)
); 

CREATE TABLE phpbb_quota_limits (
  quota_limit_id mediumint(8) unsigned NOT NULL auto_increment,
  quota_desc varchar(20) NOT NULL default '',
  quota_limit bigint(20) unsigned NOT NULL default '0',
  PRIMARY KEY (quota_limit_id)
);

CREATE TABLE phpbb_attach_quota (
  user_id mediumint(8) unsigned NOT NULL default '0',
  group_id mediumint(8) unsigned NOT NULL default '0',
  quota_type smallint(2) NOT NULL default '0',
  quota_limit_id mediumint(8) unsigned NOT NULL default '0',
  KEY quota_type (quota_type)
);

ALTER TABLE phpbb_forums ADD auth_download TINYINT(2) DEFAULT '0' NOT NULL;  
ALTER TABLE phpbb_auth_access ADD auth_download TINYINT(1) DEFAULT '0' NOT NULL;  
ALTER TABLE phpbb_posts ADD post_attachment TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_topics ADD topic_attachment TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_privmsgs ADD privmsgs_attachment TINYINT(1) DEFAULT '0' NOT NULL;

INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('upload_dir','files');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('upload_img','images/icon_clip.gif');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('topic_icon','images/icon_clip.gif');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('display_order','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('max_filesize','262144');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('attachment_quota','52428800');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('max_filesize_pm','262144');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('max_attachments','3');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('max_attachments_pm','1');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('disable_mod','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('allow_pm_attach','1');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('attachment_topic_review','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('allow_ftp_upload','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('show_apcp','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('attach_version','2.4.5');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('default_upload_quota', '0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('default_pm_quota', '0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('ftp_server','');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('ftp_path','');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('download_path','');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('ftp_user','');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('ftp_pass','');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('ftp_pasv_mode','1');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_display_inlined','1');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_max_width','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_max_height','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_link_width','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_link_height','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_create_thumbnail','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_min_thumb_filesize','12000');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_imagick', '');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('use_gd2','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('wma_autoplay','0');
INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('flash_autoplay','0');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (1,'php');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (2,'php3');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (3,'php4');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (4,'phtml');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (5,'pl');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (6,'asp');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (7,'cgi');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (8,'php5');
INSERT INTO phpbb_forbidden_extensions (ext_id, extension) VALUES (9,'php6');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (1,'Images',1,1,1,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (2,'Archives',0,1,1,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (3,'Plain Text',0,0,1,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (4,'Documents',0,0,1,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (5,'Real Media',0,0,2,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (6,'Streams',2,0,1,'',0,'');
INSERT INTO phpbb_extension_groups (group_id, group_name, cat_id, allow_group, download_mode, upload_icon, max_filesize, forum_permissions) VALUES (7,'Flash Files',3,0,1,'',0,'');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (1, 1,'gif', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (2, 1,'png', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (3, 1,'jpeg', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (4, 1,'jpg', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (5, 1,'tif', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (6, 1,'tga', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (7, 2,'gtar', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (8, 2,'gz', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (9, 2,'tar', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (10, 2,'zip', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (11, 2,'rar', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (12, 2,'ace', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (13, 3,'txt', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (14, 3,'c', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (15, 3,'h', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (16, 3,'cpp', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (17, 3,'hpp', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (18, 3,'diz', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (19, 4,'xls', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (20, 4,'doc', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (21, 4,'dot', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (22, 4,'pdf', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (23, 4,'ai', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (24, 4,'ps', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (25, 4,'ppt', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (26, 5,'rm', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (27, 6,'wma', '');
INSERT INTO phpbb_extensions (ext_id, group_id, extension, comment) VALUES (28, 7,'swf', '');
INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (1, 'Low', 262144);
INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (2, 'Medium', 2097152);
INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (3, 'High', 5242880);

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

#
#-----[ FIND ]---------------------------------------------
# around line 219
$board_config[$row['config_name']] =
}
# 
#-----[ 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_'
# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
attach_faq_include($lang_file);
# 
#-----[ OPEN ]---------------------------------------------
# 
modcp.php

# 
#-----[ FIND ]---------------------------------------------
# around line 358
remove_search_post(

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

# 
#-----[ FIND ]---------------------------------------------
# around line 1237
'TOPIC_ID' =>

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

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

# 
#-----[ FIND ]---------------------------------------------
# around line 422
$attach_sig = ( $submit
# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
execute_posting_attachment_handling();
# 
#-----[ FIND ]---------------------------------------------
# around line 580
update_post_stats(
}
# 
#-----[ AFTER, ADD ]--------------------------------------- 
# the Line have to be added AFTER the closing brace
		$attachment_mod['posting']->insert_attachment($post_id);
# 
#-----[ FIND ]---------------------------------------------
# around line 715
'preview' =>
);

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

# 
#-----[ BEFORE, ADD ]-------------------------------------- 
# 
	$attachment_mod['pm']->duplicate_attachment_pm($privmsg['privmsgs_attachment'], $privmsg['privmsgs_id'], $privmsg_sent_id);

#
#-----[ FIND ]---------------------------------------------
# around line 490
$user_id_to =

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
	init_display_pm_attachments($privmsg['privmsgs_attachment']);

#
#-----[ FIND ]---------------------------------------------
# around line 750
$mark_list[] =
}

unset(

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

#
#-----[ FIND ]---------------------------------------------
# around line 1319
if
{
//
// 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 1629
"preview" =>
);
# 
#-----[ AFTER, ADD ]--------------------------------------- 
# The Line have to be added AFTER the ');'
		$attachment_mod['pm']->preview_attachments();
#
#-----[ FIND ]---------------------------------------------
# around line 2171
'DATE' =>
# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
			'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id),
# 
#-----[ OPEN ]---------------------------------------------
# 
viewforum.php

# 
#-----[ FIND ]---------------------------------------------
# around line 370
$is_auth['auth_vote']
# 
#-----[ AFTER, ADD ]---------------------------------------
# 
attach_build_auth_levels($is_auth, $s_auth_can);

# 
#-----[ FIND ]---------------------------------------------
# around line 648
'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']
# 
#-----[ 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' =>
);
# 
#-----[ 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 =
# 
#-----[ 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
$HTTP_POST_VARS['edit']
# 
#-----[ 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
//
the profile has been modified and submitted

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

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

# 
#-----[ FIND ]---------------------------------------------
# around line 113
//
// If f_access has been passed
# 
#-----[ BEFORE, ADD ]---------------------------------------
#
	attach_setup_basic_auth($type, $auth_fields, $a_sql);

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

# 
#-----[ FIND ]---------------------------------------------
# around line 350
//
// 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 127
remove_search_post(

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
			prune_attachments($sql_post);

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

# 
#-----[ FIND ]---------------------------------------------
# around line 43
WHERE t.topic_id = $topic_id
AND

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
		$tmp = '';
		attach_setup_viewtopic_auth($tmp, $sql);

# 
#-----[ FIND ]---------------------------------------------
# around line 120
//
let's do the loop
# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
	init_display_review_attachments($is_auth);
# 
#-----[ FIND ]---------------------------------------------
# around line 203
'L_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
# 
#-----[ AFTER, ADD ]---------------------------------------
# 
display_upload_attach_box_limits($profiledata['user_id']);
# 
#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/modcp_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 27 
{topicrow.TOPIC_TYPE}
# 
#-----[ 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}
# 
#-----[ 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
{MESSAGE}
# 
#-----[ 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
{postrow.MESSAGE}</span>
# 
#-----[ 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
<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
<span class="topictitle">
# 
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 106 (directly in that line)
<span class="topictitle">
# 
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
# 
{listrow.PRIVMSG_ATTACHMENTS_IMG}
# 
#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/privmsgs_preview.tpl
# 
#-----[ FIND ]---------------------------------------------
# around line 23
{MESSAGE}
# 
#-----[ 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
{MESSAGE}
# 
#-----[ 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
{L_DELETE_MSG}
# 
#-----[ 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
{INTERESTS}
</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/viewforum_body.tpl
# 
#-----[ FIND ]---------------------------------------------
# around line 26
{topicrow.NEWEST_POST_IMG}
# 
#-----[ 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
{postrow.SIGNATURE}
# 
#-----[ 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
{L_SPECIAL_EXPLAIN}
</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
Image

Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Re: Attachment mod ...

Post by Atea »

Thank you very much!!!

I currently try to create the tables ...

Everything seems ok (Installation complete), except of this one warning ...

Code: Select all

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/www/tamayo.100webspace.net/phpBB2/db/mysql4.php on line 318
Can I ignore it? (except of this is everything OK)

Edit: I uploaded Install folder in ASCII mode ... (schema files!!) Could this be a problem? :S
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Attachment mod ...

Post by Nightrider »

When do you see this mysql_free_result error???
Atea wrote: Edit: I uploaded Install folder in ASCII mode ... (schema files!!) Could this be a problem? :S

I don't think that would be causing this problem. Were you seeing this error before installing the Attachment MOD???

Image

Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Re: Attachment mod ...

Post by Atea »

I'll try to explain it ...

1. I run install.php in my browser ...

2. I get this:

Code: Select all

Installing Attachment Mod

Checking attachment mod storage directory:
 files/  Directory found, Directory writeable

Running :: CREATE TABLE phpbb_attachments_config ( config_name varchar(255) NOT NULL, config_value varchar(255) NOT NULL, PRIMARY KEY (config_name) ) -> COMPLETED
And then ...

Code: Select all

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/www/tamayo.100webspace.net/phpBB2/db/mysql4.php on line 318
Running :: CREATE TABLE phpbb_forbidden_extensions ( ext_id mediumint(8) UNSIGNED NOT NULL auto_increment, extension varchar(100) NOT NULL, PRIMARY KEY (ext_id) ) -> COMPLETED
100 (ok, maybe more :mrgreen: ) of these messages, every with different part after Running ::, but warning is the same in every message.

And the end:

Code: Select all

COMPLETE!

Attachment Mod Tables generated successfully.

NOW REMOVE THE INSTALL AND CONTRIB DIRECTORIES
I'm REALLY confused :? :? :? I hope, that you understand, what I tried to explain ... :)
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Attachment mod ...

Post by Nightrider »

Ok, if this error is caused by running the install.php file that updates the database, then you really didn't need to do that. I included the SQL queries in the MOD script, so you were able to ignore the instructions for updating your database as long as you didn't see any SQL Processing errors in EM during the MOD install...

So if this error occured when running the install.php, you can ignore it. Just delete the install and contrib folders if you uploaded them to your phpBB forum folder. Be careful not to accidentally delete the includes folder instead. That would be a disaster...

Just make sure that you set the new files folder permissions to 777 so that your members can upload files to your server...

Image

Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Re: Attachment mod ...

Post by Atea »

Ok, I deleted install folder ... And what now? Should I upload Attachment Mod folder in admin/mods?
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Re: Attachment mod ...

Post by Atea »

Ok, I started installing with EasyMOD, but I get these errors ...

Code: Select all

Warning: ftp_put(): listen() failed: Operation not supported (95) in /home/www/tamayo.100webspace.net/phpBB2/admin/em_includes/em_ftp.php on line 1167

Warning: ftp_put(): CWD command successful. in /home/www/tamayo.100webspace.net/phpBB2/admin/em_includes/em_ftp.php on line 1167

Code: Select all

Error Detail
 
Critical Error

: complete_file_repro[1]->modio_close[2]

FTP ERROR: could not write file [admin/mods/attach_mod/processed/common.php.txt]
MOD script line #262 :: FAQ :: Report
And what should I do now? :(
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Attachment mod ...

Post by Nightrider »

Is this the first MOD that you are attempting to install after installing EM???

Try this. Go into EM Settings in your ACP MOD Center and change the PHP FTP Extensions setting to No. Then try installing the MOD again...

Image

Atea
Registered User
Posts: 41
Joined: Thu Dec 28, 2006 9:44 am

Re: Attachment mod ...

Post by Atea »

Ok, I'll try it ... *totally tired from new year celebrations* :mrgreen:
+[¨Look at me, you may think you see who I really am, but you’ll never know me. Everyday it’s as if I play a part. Now I see, if I wear a mask I can fool the world, but I cannot fool my heart.¨]+

Atea a.k.a Rea a.k.a Shadow Angel Without Wings ...

Locked