Extension talk:UncPath

From mediawiki.org
Latest comment: 9 years ago by Pompelpilt in topic Works...

2011-02-17 by kikecf

I've had to change several things in order to this extension works:

//Declare and Set Path to the upload directory, use / slashes
$path_to_upload_directory = "//MW_IP_addr/images/";

//Upload the Icon.png file to the MW repository and paste here the URL
$path_to_icon_file = "http://MW_IP_addr/images/...hash.../Icon.png";

//Create http link in case of a file stored 
$http_path = "http:" . $path_to_upload_directory . $first_character_of_hash . "/" . $second_characters_of_hash . "/" . $input;

Not Working[edit]

I simply couldn't get this extension to work, even after applying the fixes shown above.

Davydog (talk) 22:58, 19 June 2012 (UTC)Reply

Works...[edit]

.. but messed up my other http links. I guess that's because I haven't applied the fixes above? I don't know where to apply them or what part of the original code it's supposed to replace. I really don't need any local upload directory though, and would like to omit that. Running MW 1.23.6 and PHP 5.4 on Win2008 R2. It's sad that useful extensions like this aren't maintained. I would really like to be able to put in an UNC path in my wiki and have tried everything I have come across. Any thoughts anyone? Pompelpilt (talk) 13:17, 17 April 2015 (UTC)Reply