Topic on Project:Support desk

Help:UNC links not working

1
69.89.67.167 (talkcontribs)

-My UNC links are showing as follows:

\\ServerName\Directory\FolderName\FileName.txt ||%20}}|\|/}} The Link

-When I click on a UNC Link it takes me to page cannot be displayed.

-Here is what I have done so far:

1. Created Template:UNC and copied the following into it '[file:///{{#replace:{{#replace:{{{1}}}| |%20}}|\|/}} ]'

2. Downloaded ParserFunctions extension 1.15x matching the mediawiki version I am running and extracted the files to the parcerfunction directory that I created.

3. Added the following to the bottom of LocalSettings.php:

$wgUrlProtocols[] = "file:";

array_push($wgUrlProtocols, "file://");

$wgShowExceptionDetails = true;

require_once( "$IP/extension/ParserFUnctions/ParserFunctions.php" );

I suspect this might have something to do with the unc template.

Please advise...

Reply to "Help:UNC links not working"