Extension talk:Embed Document
From MediaWiki.org
Contents |
[edit] 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.
[edit] 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.
[edit] 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
[edit] 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 !
[edit] 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 <embed_document>?--212.184.19.70 14:29, 6 March 2008 (UTC)
- Ok i found a solution to my question...
- You can add a document like <embed_document>250 /path/to/document.pdf</embed_document> 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)
[edit] 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
[edit] Had to modify...
With MW 1.12 could not get this to work. Changed in embed_document.php
#if( str_replace($allowedchars, '', $input) == '' ) {
return "<iframe width=" . $w . " height=" . $h . " src=" . htmlspecialchars($input) . " frameborder=0 framebordercolor=#00000></iframe>";
#};
# else {
# return "<font color=#aa0000>Filenam: $input <br> Error: invalid character sequence between <code><embed_document>...</embed_document></code> markers, allowed
#are only<ul><li>a...z</li><li>A...Z</li><li>0...9</li><li>_</li><li>/</li><li>.</li><li>-</li><li>:</li></ul></font>";
# }
[edit] 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?
[edit] 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
[edit] 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)
[edit] Hyperlinks within embedded pfd file
I have hyper linked certain sections of the same page where the pdf document is embedded. Now these links open fine, but within the window of the embedded document and not on the original page (Do I explain myself?). This is confusing. Is there a way to avoid this?? Thanks, --Horst Salzwedel 16:51, 17 October 2009 (UTC)
Need the the embebed don't work with word files....
[edit] have prblems with word
not work for me in MW 1.15