How can I allow users to upload pictures to the forum

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
Luke802
Registered User
Posts: 14
Joined: Sun Mar 11, 2007 6:23 pm

How can I allow users to upload pictures to the forum

Post by Luke802 » Mon Mar 12, 2007 9:43 pm

this is a continuation of a post located at: viewtopic.php?f=35&t=27166



okay i was able to install it once it was in the root directory... (the Attachment Mod 2.4.5 found at sourcefourge)... However, while the installation worked, everything said "Completed" and no errors were reported i still get the following errors in the phpbb control panel:

The following is returned when trying to get into the Attachment Control Panel:
Fatal error: Unknown function: include_attach_lang() in /home/rumnguns/public_html/forum/admin/admin_attach_cp.php on line 52


So here is is 10 line excerpt around line 52:
}
else
{
$upload_dir = $attach_config['download_path'];
}

include($phpbb_root_path . 'attach_mod/includes/functions_selects.' . $phpEx);
include($phpbb_root_path . 'attach_mod/includes/functions_admin.' . $phpEx);

// Check if the language got included
if (!isset($lang['Test_settings_successful']))
{
// include_once is used within the function
include_attach_lang();
}

// Init Variables
$start = get_var('start', 0);
$sort_order = get_var('order', 'ASC');
$sort_order = ($sort_order == 'ASC') ? 'ASC' : 'DESC';
$mode = get_var('mode', '');
$view = get_var('view', '');
$uid = (isset($HTTP_POST_VARS['u_id'])) ? get_var('u_id', 0) : get_var('uid', 0);

$view = (isset($HTTP_POST_VARS['search']) && $HTTP_POST_VARS['search']) ? 'attachments' : $view;

" include_attach_lang(); " is line 52



The following is returned when, under Attachment Mod, i try to access anything other than the Control Panel:
Fatal error: Unknown function: include_attach_lang() in /home/rumnguns/public_html/forum/admin/admin_attachments.php on line 58

}

include($phpbb_root_path . 'attach_mod/includes/functions_selects.' . $phpEx);
include($phpbb_root_path . 'attach_mod/includes/functions_admin.' . $phpEx);

// Check if the language got included
if (!isset($lang['Test_settings_successful']))
{
// include_once is used within the function
include_attach_lang();
}

// Init Vars
$mode = get_var('mode', '');
$e_mode = get_var('e_mode', '');
$size = get_var('size', '');
$quota_size = get_var('quota_size', '');
$pm_size = get_var('pm_size', '');


" //include_once is used within the function include_attach_lang(); is line 58"


So although the installation says its working, i still cant upload files and these errors are being returned.. anyone with any idears?? 8O

I am using phpbb2.0.22 and its a completed un-modded version except for the isntallation of this file. I even deleted the entire isntallation and began fresh just to make sure and still the errors.

User avatar
3Di
Registered User
Posts: 759
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: How can I allow users to upload pictures to the forum

Post by 3Di » Mon Mar 12, 2007 9:56 pm

Moved into the right forum. 8)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

Luke802
Registered User
Posts: 14
Joined: Sun Mar 11, 2007 6:23 pm

Re: How can I allow users to upload pictures to the forum

Post by Luke802 » Mon Mar 12, 2007 10:02 pm

From reading around i gather that there may be a common.php file or edit that i need to have or make...

Can anyone help me with this??

Neilc
Registered User
Posts: 113
Joined: Thu Jan 11, 2007 10:14 pm

Re: How can I allow users to upload pictures to the forum

Post by Neilc » Tue Mar 13, 2007 3:15 am

There's a few mods for this, I use image-shack, Nightriders version. It is very good
You could also attach a Gallery to your forum, I have this one http://coppermine-gallery.net/index.php

Luke802
Registered User
Posts: 14
Joined: Sun Mar 11, 2007 6:23 pm

Re: How can I allow users to upload pictures to the forum

Post by Luke802 » Tue Mar 13, 2007 4:09 am

Problem resolved, for anyone who may have this problem in the future:

backup your database,
remove any attachment mod files,
load the PRE_MODIFIED php files (assuming you are using a non-modified version of phpBB2) to your forum ROOT
Load the Attach_mod install files - also to forum root directory.
Run yourdomain/yourforum/install/install.php to install attach mod
Rum yourdomain/yourforum/install/update_to_latest.php to update your SQL database
remove INSTALL and CONTRIB folders and all should work well.

The all the files needed are at sourceforge.net - just search "attachment mod" and its the first in the list. Remember to download both the attach mod install files and also the PRE MODIFIED files. I needed both for my installation.


thanks for all of those who gave some input.

Locked