plugin:smblink
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:smblink [2009-02-10 19:51] – Added syntax section 74.14.228.158 | plugin:smblink [2023-10-31 00:07] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | + | ====== smblink |
- | + | ||
- | ====== smblink ====== | + | |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
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, | + | tags : samba, smb, share, |
+ | downloadurl: | ||
---- | ---- | ||
- | |||
- | ^ Download | [[http:// | ||
===== Description ===== | ===== Description ===== | ||
Line 52: | Line 49: | ||
* 2007-06-03 | * 2007-06-03 | ||
* Initial release | * Initial release | ||
- | |||
===== Issues ===== | ===== Issues ===== | ||
Line 64: | Line 60: | ||
</ | </ | ||
Obviously the warning will now not show up even if you don't have the smb url handler installed. | Obviously the warning will now not show up even if you don't have the smb url handler installed. | ||
+ | |||
+ | |||
+ | :!: The sole purpose of the // | ||
+ | <code javascript> | ||
+ | addInitEvent(function(){ | ||
+ | checkWindowsShares(); | ||
+ | }); | ||
+ | </ | ||
+ | Becomes: | ||
+ | <code javascript> | ||
+ | addInitEvent(function(){ | ||
+ | // | ||
+ | }); | ||
+ | </ | ||
+ | --- //Bering, 2009/12/02 12:43// | ||
+ | |||
+ | I was rather hacking together such hack by disabling the JavaScript value of an alert, however this also requires change in core: | ||
+ | <code javascript> | ||
+ | --- dokuwiki/ | ||
+ | +++ dokuwiki/ | ||
+ | @@ -512,7 +512,7 @@ | ||
+ | | ||
+ | var share = elems[i]; | ||
+ | | ||
+ | - if(document.all == null) { | ||
+ | + if(document.all == null && LANG[' | ||
+ | | ||
+ | } | ||
+ | }); | ||
+ | </ | ||
+ | <code javascript> | ||
+ | --- / | ||
+ | +++ dokuwiki/ | ||
+ | @@ -0,0 +1,4 @@ | ||
+ | +addInitEvent(function() { | ||
+ | + // Reset warning as we now handle the links for all OS | ||
+ | + LANG[' | ||
+ | +}); | ||
+ | </ | ||
+ | --- // | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 74: | Line 110: | ||
> Great work! Integrated it! I would' | > Great work! Integrated it! I would' | ||
+ | |||
+ | ==== Windows 7 ==== | ||
+ | The plugin doesn' | ||
+ | The errormessage is "Für die Dateierweiterung " | ||
+ | |||
+ | ==== Firefox-Addon ==== | ||
+ | If you don't want to install the smblink-hack, | ||
+ | |||
+ | ==== spaces in file path==== | ||
+ | |||
+ | Will there be support for linking to a file path that includes spaces? | ||
===== Source Code ===== | ===== Source Code ===== | ||
Line 108: | Line 155: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 189: | Line 236: | ||
</ | </ | ||
+ | |||
+ | ===== url-handlers ===== | ||
+ | |||
+ | == Support Drive Letters == | ||
+ | Extend the url-handlers to support driver letters. Modify the '' | ||
+ | |||
+ | |||
+ | Original Code in the '' | ||
+ | < | ||
+ | // rescue some non-conformant URL's eg. | ||
+ | // smb:// | ||
+ | if(arg.substr(0, | ||
+ | arg = " | ||
+ | </ | ||
+ | |||
+ | Modified Code in the '' | ||
+ | < | ||
+ | |||
+ | if ( arg.substr( 1,1 ) == ":" | ||
+ | // support drive letters | ||
+ | } | ||
+ | else { | ||
+ | |||
+ | // rescue some non-conformant URL's eg. | ||
+ | // smb:// | ||
+ | if(arg.substr(0, | ||
+ | arg = " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | == Support deeper directory structures === | ||
+ | |||
+ | A path like // | ||
+ | |||
+ | In line 79 replace | ||
+ | arg = arg.replace("/", | ||
+ | with | ||
+ | arg = arg.replace(/ | ||
+ | |||
+ | Otherwise %%// |
plugin/smblink.1234291880.txt.gz · Last modified: 2009-10-06 10:00 (external edit)