Warning: The author of this contribution does not provide support for it anymore.

FTP addon for attachment function

Update to 3.0.9 - FTP addon for attachment function

Update to 3.0.9

by HaLoShadoW » Tue Jul 12, 2011 3:24 pm

Hello everyone,

I'm really reliant to this mod so I'm here to request an update to 3.0.9

Thank you very much.
User avatar
HaLoShadoW
Registered User
Posts: 23
Joined: Thu Apr 28, 2011 3:31 pm

Re: Update to 3.0.9

by Paul » Tue Jul 12, 2011 4:41 pm

Did you already test if it works or not? ;) Iam not submitting updates if it is still working.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28935
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: Update to 3.0.9

by Hans Henrik » Sat Oct 29, 2011 4:46 pm

i installed it on a 3.0.9 board, and when trying to go to the automod tab in ACP, i now just get:
Fatal error: Cannot redeclare download_file() in /rgt/163/37027/www/forum/includes/functions_transfer.php on line 231

help please?
Hans Henrik
Registered User
Posts: 36
Joined: Tue Jan 06, 2009 4:22 pm

Re: Update to 3.0.9

by Hans Henrik » Sat Oct 29, 2011 8:28 pm

Correction: the uninstall feature of AutoMod isn't working correctly with this mod. found this around line 231:

Code: Select all

   /**
    * Download a file from the FTP server.
    */
   function download_file($local_path, $filename)
   {
      global $phpbb_root_path;
      $path = $this->root_path . str_replace($phpbb_root_path, '', $filename);

      return $this->_get($path, $local_path);
   }
   /**
    * Download a file from the FTP server.
    */
   function download_file($local_path, $filename)
   {
      global $phpbb_root_path;
      $path = $this->root_path . str_replace($phpbb_root_path, '', $filename);

      return $this->_get($path, $local_path);
   }





and,
i tried to install the mod. first all went OK. then automod said it had a custom install script that had to run. i did not run it. then i used automod to un-install it. then i tried to install it with automod again, this time automod said it could not find some replace strings in include\functions_posting.php and include\functions_privmsgs.php - cus the uninstaller had not removed the changes from the first install.. replaced with a backup of the files, all was good again.. 3rd attempt, installed it with automod, all good. autmod said it had a custom setup file i needed to run. i ran the custom installer. now i get this error when going to autmod in the ACP:

Fatal error: Cannot redeclare download_file() in /rgt/163/37027/www/forum/includes/functions_transfer.php on line 231

(i will try to fix it tomorrow i think. and normal attachment uploads still work, tho they are not sent to any ftp server at the moment. bottom line: i still dont know if this mod work with 3.0.9 out of the box... just know the uninstall button from automod is not working out of the box.)
Hans Henrik
Registered User
Posts: 36
Joined: Tue Jan 06, 2009 4:22 pm

Re: Update to 3.0.9

by Beun de Haas » Wed Jan 25, 2012 1:44 pm

Got it working in 3.0.9 :)
Beun de Haas
Registered User
Posts: 11
Joined: Thu Feb 21, 2008 6:56 pm