Plugin for previewing files

Hi all

I was just wondering if anyone has had success recently with a plugin that will allow users to preview uploaded files like pdf, docx, xlsx or pptx? (Office 2013) I did see there is a plugin on github, but it failed during my tests.

I am using ELGG v2.2.3. and our users found best to use Chrome on Windows 8 when visiting our site.

So far there is a 3rd party plugin which we can use to preview pdf files, and it is a great plugin! But anything like Google docs viewers seem to fail and such plugins were last updated years ago. Not sure if it is a missing extension on Chrome or just outdated Plugins using outdated APIs.

Kind regds

Len

  • None of those services will work if your site is on a localhost. Google/MS viewer both require a publicly accessible file URL. I am 100% this works: https://github.com/hypeJunction/elgg_file_viewer

  • Hi Ismayil

    We currently have a Test Server (proper - not localhost) with ELGG installed. But it is a Windows VM  located on a proper Windows 2012 R2 Server. We are running our site on XAMPP, and everything else is working perfectly for now. But then we do not have MS Office 2013 installed on the server, nor a Visual Studio distributable setup.

    Let me test the elgg file viewer and I will let you know what the error is we get.

     

    Kind regards

    Len

  • The Logs report this error:

    [30-Jan-2017 10:49:12 UTC] PHP WARNING: 2017-01-30 10:49:12 (UTC): "opendir(C:\xampp\htdocs\elgg/vendor/bower-asset/prism,C:\xampp\htdocs\elgg/vendor/bower-asset/prism): The system cannot find the file specified. (code: 2)" in file C:\xampp\htdocs\elgg\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php (line 127)

    [30-Jan-2017 10:49:12 UTC] PHP WARNING: 2017-01-30 10:49:12 (UTC): "opendir(C:\xampp\htdocs\elgg/vendor/bower-asset/prism): failed to open dir: No such file or directory" in file C:\xampp\htdocs\elgg\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php (line 127)

    [30-Jan-2017 10:49:12 UTC] PHP WARNING: 2017-01-30 10:49:12 (UTC): "opendir(C:\xampp\htdocs\elgg/vendor/bower-asset/videojs/dist,C:\xampp\htdocs\elgg/vendor/bower-asset/videojs/dist): The system cannot find the path specified. (code: 3)" in file C:\xampp\htdocs\elgg\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php (line 127)

    [30-Jan-2017 10:49:12 UTC] PHP WARNING: 2017-01-30 10:49:12 (UTC): "opendir(C:\xampp\htdocs\elgg/vendor/bower-asset/videojs/dist): failed to open dir: No such file or directory" in file C:\xampp\htdocs\elgg\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php (line 127)

     

    The error listed in the actual Web Viewer:

    An error occurred
    We're sorry, but for some reason we can't open this for you.
  • Have you downloaded from https://github.com/hypeJunction/elgg_file_viewer/releases. If you just download the current master, you won't get all the dependencies included.