Extension talk:Embed Document

Error with Large Files & FCKEditor
When using this extension along with the FCKEditor extension, I receive a php timeout error. This is understandable as it does take longer to load these files.

Changing the settings to allow PHP to execute longer, would probably fix the error. However, It removes the safeguard to prevent problems.

I don't know that there is a reasonable solution to this dilemma. I guess you cant just have it all.

Conflict with thumb
Using this script, I got a conflict with the display of thumbs - "thumbs.php" didn't work anymore.

Right now I haven't got a clue to fix this problem. Only solution so far is to remove the extension.

Firefox behavior
Working AWESOME for me on Safari. On Firefox it wants to Launch the PDF in a new browser window. Check it out

- caseyk 1-3-2008

Modification request
Hello. It is simple to tweak this so that is complains if you are no logged in - I am using it for my PDF articles and I want people to log in to be able to read the PDF files.

www.extremeboatsmag.com casey@extremeboatsmag.com

Thanks !

height/width as variable
Hi, i use your extension to embed pdf documents... but the documents differs a lot in their height/ width... is it possible to send a variable with ?--212.184.19.70 14:29, 6 March 2008 (UTC)
 * Ok i found a solution to my question...
 * You can add a document like 250 /path/to/document.pdf and then you have to explode the $input in two parts $data = explode(" ", $input) before you look for allowed chars. then replace all $input with $data[1] and ...height=" . $data[0] . "px... --212.184.19.70 15:11, 6 March 2008 (UTC)
 * It is also solved with version 0.12 - I had the same impression, width and height should be changable! --DrTrigon 16:56, 12 July 2008 (UTC)

Word file embeded dont work
Hi This extension work well for PDF file but not for other especially for the .doc files

Is it a bug or a configuration or use problem ?

Thanks to reply CGT 04/06/08

Had to modify...
With MW 1.12 could not get this to work. Changed in embed_document.php

#if( str_replace($allowedchars, , $input) ==  ) { return " "; #};
 * 1) else {
 * 2)       return "Filenam: $input Error: invalid character sequence between    markers, allowed
 * 3) are onlya...zA...Z0...9_/.</li>-</li>:</li></ul> ";
 * 4)   }

Still Not working
Hi I changed embed_document.php But still am not able to embed word files. is it a bug or something else should be configured?

Correction
Hi,

i had the same problem with 1.13. I have traced the problem back to the used Filepath funktion. It returns the needed file path with [] and because of those the php extension throws an error.

So if you extend the embed_document.php by

$input = str_replace(']', '', $input); $input = str_replace('[', '', $input); just before

if( str_replace......

This way it worked fine for me.

Regards Dirk

Excel
Hi - does this extension work with Excel (either as XLS or saved as HTM)? Or is there another extension / way of working that does this? We really want to be able to see the contents of an Excel table in MediaWiki without a manual action. --Robinson Weijman 13:50, 7 April 2009 (UTC)