Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - altert

Pages: [1]
1
How To's / Re: PDF Viewing - MIME application/pdf
« on: August 13, 2011, 08:59:04 am »
It's possible to do it for at least google chrome - There was post on this in german forum:
Versionen: 1.5 - 1.7.3.1
Folgende Datei muß bearbeitet werden: /application/views/files/file_details_content.php
Nachfolgenden Code müßt ihr nach Zeile 31 (kann je nach Versionsstand von FO variieren) einfügen

Code:
<?php
   if (substr($file->getFilename(), -3) == 'pdf')
   {
       echo'<div>';
       $urlpdf=get_url('files', 'download_image', array('id' => $file->getId(), 'inline' => true, 'modtime' => $modtime));
       echo "<iframe src=".$urlpdf." width='100%' height='900px' frameborder=0 align='center'></iframe>";
       echo '</div>';
   }
?>

2
Community Contributions / Re: thumbnails generation
« on: April 29, 2011, 05:29:30 pm »
I've implemented that feature, but my solution is very much a hack. I've modified FileRepository Filesystem class to create thumbnails for images and store them along with the main files. Then I've added controller functions in files.php and finally modified filemanager.js to introduce new column with previews for images.
I can share the code if someone is interested, but it's of dubious quality.

3
Development / Re: How to add WebDAV to FO
« on: March 03, 2011, 07:43:09 pm »
Similar thing happens for me, when I try to access second level of folders, I get 405 error

4
Community Contributions / Re: thumbnails generation
« on: January 05, 2011, 12:09:33 pm »
thanks

Yes, I've checked that topic (I assume it's this one - http://forums.fengoffice.com/index.php?topic=2208.0 )

But this mod uses full url to download file to show it in widget and it won't help with large images (I'm talking about 10-100Mb), what I'm interested in is thumbnail file generated on file upload, so I can use these thumbnails in a way this mod suggested or in documents file list.


5
Community Contributions / thumbnails generation
« on: January 05, 2011, 11:59:55 am »
Hello

Some of the documents I'm trying to work with in fengoffice are quite large images. As far as I understood there is no thumbnail generated for uploaded images. I've managed to add image preview for documents list, but as it is based on full file ('download file') - it's not suitable for large images. Is there some support for thumbnails of uploaded images, or could someone point me to uploaded file processing scripts, so I could add one?

Pages: [1]