Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Code to URL LINK for file (PDF,IMAGES; VIDEOS .......) #63

Open
IniLerm opened this issue Oct 13, 2014 · 1 comment
Open

Code to URL LINK for file (PDF,IMAGES; VIDEOS .......) #63

IniLerm opened this issue Oct 13, 2014 · 1 comment

Comments

@IniLerm
Copy link

IniLerm commented Oct 13, 2014

I added a menu to the right click on the file, this button opens a new window and allows you to view PDF, Video, Images ... provided you have the codecs on your browser.

Add code in /js/091.menu.js in a // SINGLE FILE MENU after // DOWNLOAD (line260 in the last version 3.20test)

// DIRECTLINK change www.YOURDOMAIN.com for your domain.
        _.menu.addItem("kcact:directlink", _.label("DirectLink"), function() {

 _.alert('<a href="' + 'http:' + "//" + "www.YOURDOMAIN.com" + _.uploadURL + "/" + _.dir + "/" + $(file).data('name') + '"' + 'target="_blank">' + 'http:' + "//" + "www.YOURDOMAIN.com" + _.uploadURL + "/" + _.dir + "/" + $(file).data('name') + '</a>');

          return false;
            });

¿¿any idea to watch the videos on a popup as images??

Thank you.

great project

@IniLerm
Copy link
Author

IniLerm commented Oct 15, 2014

modified:
-fix title Warning in popup

Add code in /js/091.menu.js in a // SINGLE FILE MENU after // DOWNLOAD (line260 in the last version 3.20test)

// DIRECTLINK change www.YOURDOMAIN.com for your domain.
        _.menu.addItem("kcact:directlink", _.label("DirectLink"), function() {
          var html = '<div class="box about">' + '<div class="head"><a href="' + 'http:' + "//" + "www.YOURDOMAIN.com" + _.uploadURL + "/" + _.dir + "/" + $(file).data('name') + '"' + 'target="_blank">' + 'http:' + "//" + "www.YOURDOMAIN.com" + _.uploadURL + "/" + _.dir + "/" + $(file).data('name') + '</a></div></div>';
        var dlg = _.dialog(_.label("URL Link (Clic & open in a new window)"), html, {width: "auto"});
        return false;
        });

¿¿any idea to watch the videos on a popup as images??

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant