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-04-29 14:48] 195.222.9.197plugin: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 113: Line 110:
  
 > Great work! Integrated it! I would've done this, but I don't currently have access to a linux box :$ Thanks for the contribution! ~Enki > Great work! Integrated it! I would've done this, but I don't currently have access to a linux box :$ Thanks for the contribution! ~Enki
 +
 +==== Windows 7 ====
 +The plugin doesn't 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.
 +
 +==== 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 147: 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 227: 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.1272545291.txt.gz · Last modified: 2010-04-29 14:48 by 195.222.9.197

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