DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:smblink

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:smblink [2010-05-06 11:06] – incompatible with windows 7 92.74.79.109plugin:smblink [2023-10-31 00:07] (current) Klap-in
Line 1: Line 1:
-~~NOTOC~~ +====== smblink Plugin ======
- +
-====== smblink ======+
  
 ---- plugin ---- ---- plugin ----
-description: A replacement for doku's default Windows Share Link feature which supports firefox.+description: A replacement for DokuWiki's default Windows Share Link feature which supports Firefox
 author     : enki author     : enki
 email      : enki1337@gmail.com email      : enki1337@gmail.com
 type       : syntax type       : syntax
 lastupdate : 2009-02-09 lastupdate : 2009-02-09
-compatible : rc2007-05-24+compatible : 2007-06-26
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
 tags       : samba, smb, share, links, Firefox tags       : samba, smb, share, links, Firefox
 +downloadurl: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/doku-smblink/smblink.zip
 ---- ----
- 
-^ Download | [[http://doku-smblink.googlecode.com/files/smblink.zip|smblink.zip]] | 
  
 ===== Description ===== ===== Description =====
Line 115: Line 112:
  
 ==== Windows 7 ==== ==== Windows 7 ====
-The plugin doesn´t work with Windows 7 Prof. german (64bit) and Firefox 3.6.3 (german).+The plugin doesn'work with Windows 7 Prof. german (64bit) and Firefox 3.6.3 (german).
 The errormessage is "Für die Dateierweiterung ".js" gibt es kein Skriptmodul." which means there is no module for .js-fileextension in wscript.exe in Windows 7 Professional - out of the box. The errormessage is "Für die Dateierweiterung ".js" gibt es kein Skriptmodul." which means there is no module for .js-fileextension in wscript.exe in Windows 7 Professional - out of the box.
 +
 +==== Firefox-Addon ====
 +If you don't want to install the smblink-hack, there is a Firefox Addon which allows to open links to local files: [[https://addons.mozilla.org/de/firefox/addon/locallink/|Localllink]]. With the Addon installed, you can right-click on links to windows shares and chose the option to open these links in a "local context"
 +
 +==== spaces in file path====
 +
 +Will there be support for linking to a file path that includes spaces?
 +
 ===== Source Code ===== ===== Source Code =====
  
Line 150: Line 155:
             'name'   => 'SMB Plugin',             'name'   => 'SMB Plugin',
             'desc'   => 'Makes filesystem links globally accessible, even through firefox.',             'desc'   => 'Makes filesystem links globally accessible, even through firefox.',
-            'url'    => 'http://www.dokuwiki.org/',+            'url'    => 'http://www.dokuwiki.org/plugin:smblink',
         );         );
     }     }
Line 230: Line 235:
 ?> ?>
 </code> </code>
 +
 +
 +===== url-handlers =====
 +
 +== Support Drive Letters ==
 +Extend the url-handlers to support driver letters. Modify the ''url_protocol_handler.js'' of the ''url-handlers.zip''
 +
 +
 +Original Code in the ''function handleUrl(rawUrl)''
 +<code>
 +   // rescue some non-conformant URL's eg.
 +   // smb://server/share
 +   if(arg.substr(0,2) != "\\\\")
 + arg = "\\\\" + arg
 +</code>
 +
 +Modified Code in the ''function handleUrl(rawUrl)'': 
 +<code>
 +
 +                if ( arg.substr( 1,1 ) == ":" ) {
 +                  // support drive letters 
 +                }
 +                else {
 +
 +   // rescue some non-conformant URL's eg.
 +   // smb://server/share
 +   if(arg.substr(0,2) != "\\\\")
 + arg = "\\\\" + arg
 +                }
 +</code>
 +
 +== Support deeper directory structures ===
 +
 +A path like //myserver/share/deeper/still is handled badly as it links to //myserver/share only under ceratin circumstances. Here is a Bugfix:
 +
 +In line 79 replace
 +  arg = arg.replace("/", "\\")
 +with
 +  arg = arg.replace(/\//g, "\\")
 +
 +Otherwise %%//%%myserver/share/deeper/still will be changed to %%\\%%myserver\share**/**share**/**deeper**/**still which the explorer can't open (look at the slashes).
plugin/smblink.1273136797.txt.gz · Last modified: 2010-05-06 11:06 by 92.74.79.109

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki