<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://assela.pathirana.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nivcorp</id>
	<title>assela Pathirana - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://assela.pathirana.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nivcorp"/>
	<link rel="alternate" type="text/html" href="https://assela.pathirana.net/index.php?title=Special:Contributions/Nivcorp"/>
	<updated>2026-05-13T16:36:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://assela.pathirana.net/index.php?title=Talk:File_Link_Extension&amp;diff=3720</id>
		<title>Talk:File Link Extension</title>
		<link rel="alternate" type="text/html" href="https://assela.pathirana.net/index.php?title=Talk:File_Link_Extension&amp;diff=3720"/>
		<updated>2007-10-08T01:29:31Z</updated>

		<summary type="html">&lt;p&gt;Nivcorp: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;the&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#settings for fileLinkExtension&lt;br /&gt;
$wgFilelinkExtensionPath = &amp;quot;extensions/FilelinkExtension&amp;quot;;&lt;br /&gt;
include(&amp;quot;$IP/$wgFilelinkExtensionPath/FilelinkExtension.php&amp;quot;);&lt;br /&gt;
#end settings for fileLinkExtension&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;should be&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#settings for fileLinkExtension&lt;br /&gt;
$wgFilelinkExtensionPath = &amp;quot;extensions/FileLinkExtension&amp;quot;;&lt;br /&gt;
include(&amp;quot;$IP/$wgFilelinkExtensionPath/FileLinkExtension.php&amp;quot;);&lt;br /&gt;
#end settings for fileLinkExtension&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;(note the uppercase &amp;quot;L&amp;quot; in &amp;quot;FileLinkExtension&amp;quot;) with the provided pathes&lt;br /&gt;
&lt;br /&gt;
also there is a minor glitch:&amp;lt;br&amp;gt;&lt;br /&gt;
the file:///-icon is showing up two times on the edit page, but showing up not at all at the &amp;quot;show preview&amp;quot; page. my skills in programming php and js are nearly zero, so any help would be highly appreciated.&lt;br /&gt;
--[[User:Mel999|Mel999]] 19:08, 4 May 2006 (JST)&lt;br /&gt;
: now it&amp;#039;s perfect, thank you very much! --[[User:Mel999|Mel999]] 01:12, 15 September 2006 (JST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
another issue had come up here:&lt;br /&gt;
I see the &amp;quot;some problem with FileLinkExtension&amp;quot;-alert very often, mainly with newly created pages,  but cannot reproduce it at 100% :-( &amp;lt;br&amp;gt; i commented out the update and the preview mode changes, but didn&amp;#039;t help. would there be a workaround to not show the annoying alert? &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
btw: you probably did mixup some of your extensions ;-) &lt;br /&gt;
imho it should be &lt;br /&gt;
 function filelinkDo (&amp;amp;$parser, &amp;amp;$text){&lt;br /&gt;
  global $wgRequest;&lt;br /&gt;
  global $wgFilelinkExtensionPath;&lt;br /&gt;
instead of &lt;br /&gt;
 function addbuttonDo (&amp;amp;$parser, &amp;amp;$text){ &lt;br /&gt;
  global $wgRequest;&lt;br /&gt;
  global $wgAddButtonExtensionPath;&lt;br /&gt;
--[[User:Mel999|Mel999]] 17:16, 18 September 2006 (JST)&lt;br /&gt;
&lt;br /&gt;
== Corrupted file for 0.2.tar.gz? ==&lt;br /&gt;
&lt;br /&gt;
When I download and untar the FileLinkExtension.0.2.tar.gz, it appears to be corrupted. Here&amp;#039;s my anonymized session transcript:&lt;br /&gt;
&lt;br /&gt;
 user@host extensions $ md5sum *.gz&lt;br /&gt;
 4480583ab11f8eff909831d2fdc6f86b  FileLinkExtension.tar.gz&lt;br /&gt;
 2a7bca5f8fdb81b261a8015b68a90a85  Image FileLinkExtension.0.2.tar.gz&lt;br /&gt;
 user@host extensions $ gzip -d Image\ FileLinkExtension.0.2.tar.gz&lt;br /&gt;
 user@host extensions $ tar -xvf Image\ FileLinkExtension.0.2.tar&lt;br /&gt;
 tar: This does not look like a tar archive&lt;br /&gt;
 tar: Skipping to next header&lt;br /&gt;
 tar: Error exit delayed from previous errors&lt;br /&gt;
 user@host extensions $&lt;br /&gt;
The FileLinkExtension.tar.gz can be untarred OK. I&amp;#039;ve also tried to untar the 0.2.tar.gz file using WinZip, but I get a similar error message.&lt;br /&gt;
&lt;br /&gt;
== some problem with FileLinkExtension ==&lt;br /&gt;
a &amp;quot;Solution&amp;quot; to the &amp;quot;Problem&amp;quot; could be to comment out the alert function ;0). I can not see any Problem with the extension in my Wiki, so i choosed to comment out the alert function.&lt;br /&gt;
&lt;br /&gt;
edit &amp;quot;mainfile.js&amp;quot; search for &amp;lt;pre&amp;gt;&lt;br /&gt;
alert(&amp;quot;some problem with FileLinkExtension&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
...replace with ...&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//alert(&amp;quot;some problem with FileLinkExtension&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
br [[User:Patrik|Patrik]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem-message only occurs when I put the button into the preview-mode. Perhaps this will help finding the cause of the problem.&lt;br /&gt;
&lt;br /&gt;
I used Patrik&amp;#039;s &amp;quot;solution&amp;quot;, so I don&amp;#039;t see the message anymore, but I&amp;#039;d like to know what caused it to appear in the first place. ;)&lt;br /&gt;
&lt;br /&gt;
--[[User:Kawo|Kawo]] 22:25, 20 July 2007 (JST)&lt;br /&gt;
&lt;br /&gt;
== extension-directory  of current version ==&lt;br /&gt;
&lt;br /&gt;
The lines for LocalSettings.php should look like this for the current version of the extension&lt;br /&gt;
&lt;br /&gt;
 #settings for fileLinkExtension&lt;br /&gt;
 $wgFilelinkExtensionPath = &amp;quot;extensions/FileLinkExtension.0.2&amp;quot;;&lt;br /&gt;
 include(&amp;quot;$IP/$wgFilelinkExtensionPath/FileLinkExtension.php&amp;quot;);&lt;br /&gt;
 #end settings for fileLinkExtension&lt;br /&gt;
&lt;br /&gt;
--[[User:Kawo|Kawo]] 22:20, 20 July 2007 (JST)&lt;br /&gt;
&lt;br /&gt;
== Extension doesn&amp;#039;t work on MediaWiki v1.9+ ==&lt;br /&gt;
&lt;br /&gt;
Howdy good folk. Thanks for this extension - i&amp;#039;m using it in an internal company Wiki. Found a bug in the code which seems to crop up for MediaWiki Version 1.9+. The extension throws an error, expecting a return value from fileLinkDo, called by ParserBeforeTidy.&lt;br /&gt;
&lt;br /&gt;
Fixed this by replacing:&lt;br /&gt;
&lt;br /&gt;
 #########new part###########&lt;br /&gt;
  static $done=0;&lt;br /&gt;
  if ( $done ) { &lt;br /&gt;
    return;&lt;br /&gt;
  }&lt;br /&gt;
  $done=1;&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
 #########new part###########&lt;br /&gt;
  static $done=0;&lt;br /&gt;
  if ( $done ) { &lt;br /&gt;
    return true;&lt;br /&gt;
  }&lt;br /&gt;
  $done=1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
... and adding a return false; (instead of return;) to the else section as below&lt;br /&gt;
&lt;br /&gt;
  }else{&lt;br /&gt;
    //Either not an edit attempt, or not logged in &lt;br /&gt;
    //Do nothing be silent without bothering innocent visitors. &lt;br /&gt;
    return false;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
Otherwise, awesome extension. This will be handy because I&amp;#039;m trying to get Wiki doco happening in a rusted-on Sharepoint shop!&lt;/div&gt;</summary>
		<author><name>Nivcorp</name></author>
	</entry>
	<entry>
		<id>https://assela.pathirana.net/index.php?title=Talk:File_Link_Extension&amp;diff=3719</id>
		<title>Talk:File Link Extension</title>
		<link rel="alternate" type="text/html" href="https://assela.pathirana.net/index.php?title=Talk:File_Link_Extension&amp;diff=3719"/>
		<updated>2007-10-08T01:26:42Z</updated>

		<summary type="html">&lt;p&gt;Nivcorp: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;the&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#settings for fileLinkExtension&lt;br /&gt;
$wgFilelinkExtensionPath = &amp;quot;extensions/FilelinkExtension&amp;quot;;&lt;br /&gt;
include(&amp;quot;$IP/$wgFilelinkExtensionPath/FilelinkExtension.php&amp;quot;);&lt;br /&gt;
#end settings for fileLinkExtension&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;should be&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#settings for fileLinkExtension&lt;br /&gt;
$wgFilelinkExtensionPath = &amp;quot;extensions/FileLinkExtension&amp;quot;;&lt;br /&gt;
include(&amp;quot;$IP/$wgFilelinkExtensionPath/FileLinkExtension.php&amp;quot;);&lt;br /&gt;
#end settings for fileLinkExtension&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;(note the uppercase &amp;quot;L&amp;quot; in &amp;quot;FileLinkExtension&amp;quot;) with the provided pathes&lt;br /&gt;
&lt;br /&gt;
also there is a minor glitch:&amp;lt;br&amp;gt;&lt;br /&gt;
the file:///-icon is showing up two times on the edit page, but showing up not at all at the &amp;quot;show preview&amp;quot; page. my skills in programming php and js are nearly zero, so any help would be highly appreciated.&lt;br /&gt;
--[[User:Mel999|Mel999]] 19:08, 4 May 2006 (JST)&lt;br /&gt;
: now it&amp;#039;s perfect, thank you very much! --[[User:Mel999|Mel999]] 01:12, 15 September 2006 (JST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
another issue had come up here:&lt;br /&gt;
I see the &amp;quot;some problem with FileLinkExtension&amp;quot;-alert very often, mainly with newly created pages,  but cannot reproduce it at 100% :-( &amp;lt;br&amp;gt; i commented out the update and the preview mode changes, but didn&amp;#039;t help. would there be a workaround to not show the annoying alert? &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
btw: you probably did mixup some of your extensions ;-) &lt;br /&gt;
imho it should be &lt;br /&gt;
 function filelinkDo (&amp;amp;$parser, &amp;amp;$text){&lt;br /&gt;
  global $wgRequest;&lt;br /&gt;
  global $wgFilelinkExtensionPath;&lt;br /&gt;
instead of &lt;br /&gt;
 function addbuttonDo (&amp;amp;$parser, &amp;amp;$text){ &lt;br /&gt;
  global $wgRequest;&lt;br /&gt;
  global $wgAddButtonExtensionPath;&lt;br /&gt;
--[[User:Mel999|Mel999]] 17:16, 18 September 2006 (JST)&lt;br /&gt;
&lt;br /&gt;
== Corrupted file for 0.2.tar.gz? ==&lt;br /&gt;
&lt;br /&gt;
When I download and untar the FileLinkExtension.0.2.tar.gz, it appears to be corrupted. Here&amp;#039;s my anonymized session transcript:&lt;br /&gt;
&lt;br /&gt;
 user@host extensions $ md5sum *.gz&lt;br /&gt;
 4480583ab11f8eff909831d2fdc6f86b  FileLinkExtension.tar.gz&lt;br /&gt;
 2a7bca5f8fdb81b261a8015b68a90a85  Image FileLinkExtension.0.2.tar.gz&lt;br /&gt;
 user@host extensions $ gzip -d Image\ FileLinkExtension.0.2.tar.gz&lt;br /&gt;
 user@host extensions $ tar -xvf Image\ FileLinkExtension.0.2.tar&lt;br /&gt;
 tar: This does not look like a tar archive&lt;br /&gt;
 tar: Skipping to next header&lt;br /&gt;
 tar: Error exit delayed from previous errors&lt;br /&gt;
 user@host extensions $&lt;br /&gt;
The FileLinkExtension.tar.gz can be untarred OK. I&amp;#039;ve also tried to untar the 0.2.tar.gz file using WinZip, but I get a similar error message.&lt;br /&gt;
&lt;br /&gt;
== some problem with FileLinkExtension ==&lt;br /&gt;
a &amp;quot;Solution&amp;quot; to the &amp;quot;Problem&amp;quot; could be to comment out the alert function ;0). I can not see any Problem with the extension in my Wiki, so i choosed to comment out the alert function.&lt;br /&gt;
&lt;br /&gt;
edit &amp;quot;mainfile.js&amp;quot; search for &amp;lt;pre&amp;gt;&lt;br /&gt;
alert(&amp;quot;some problem with FileLinkExtension&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
...replace with ...&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//alert(&amp;quot;some problem with FileLinkExtension&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
br [[User:Patrik|Patrik]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem-message only occurs when I put the button into the preview-mode. Perhaps this will help finding the cause of the problem.&lt;br /&gt;
&lt;br /&gt;
I used Patrik&amp;#039;s &amp;quot;solution&amp;quot;, so I don&amp;#039;t see the message anymore, but I&amp;#039;d like to know what caused it to appear in the first place. ;)&lt;br /&gt;
&lt;br /&gt;
--[[User:Kawo|Kawo]] 22:25, 20 July 2007 (JST)&lt;br /&gt;
&lt;br /&gt;
== extension-directory  of current version ==&lt;br /&gt;
&lt;br /&gt;
The lines for LocalSettings.php should look like this for the current version of the extension&lt;br /&gt;
&lt;br /&gt;
 #settings for fileLinkExtension&lt;br /&gt;
 $wgFilelinkExtensionPath = &amp;quot;extensions/FileLinkExtension.0.2&amp;quot;;&lt;br /&gt;
 include(&amp;quot;$IP/$wgFilelinkExtensionPath/FileLinkExtension.php&amp;quot;);&lt;br /&gt;
 #end settings for fileLinkExtension&lt;br /&gt;
&lt;br /&gt;
--[[User:Kawo|Kawo]] 22:20, 20 July 2007 (JST)&lt;br /&gt;
&lt;br /&gt;
Howdy good folk. Thanks for this extension - i&amp;#039;m using it in an internal company Wiki. Found a bug in the code which seems to crop up for MediaWiki Version 1.9+. The extension throws an error, expecting a return value from fileLinkDo, called by ParserBeforeTidy.&lt;br /&gt;
&lt;br /&gt;
Fixed this by replacing:&lt;br /&gt;
&lt;br /&gt;
 #########new part###########&lt;br /&gt;
  static $done=0;&lt;br /&gt;
  if ( $done ) { &lt;br /&gt;
    return;&lt;br /&gt;
  }&lt;br /&gt;
  $done=1;&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
 #########new part###########&lt;br /&gt;
  static $done=0;&lt;br /&gt;
  if ( $done ) { &lt;br /&gt;
    return true;&lt;br /&gt;
  }&lt;br /&gt;
  $done=1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
... and adding a return false; (instead of return;) to the else section as below&lt;br /&gt;
&lt;br /&gt;
  }else{&lt;br /&gt;
    //Either not an edit attempt, or not logged in &lt;br /&gt;
    //Do nothing be silent without bothering innocent visitors. &lt;br /&gt;
    return false;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
Otherwise, awesome extension. This will be handy because I&amp;#039;m trying to get Wiki doco happening in a rusted-on Sharepoint shop!&lt;/div&gt;</summary>
		<author><name>Nivcorp</name></author>
	</entry>
</feed>