Extension talk:Include/LQT Archive 1

Highlighting
--Pndfam05 22:28, 13 June 2007 (UTC) I tried installing this extension without highlighting and had difficulties on lines 115 and 195. I eliminated the line 115 problem by commenting out line 155, since I didn't want highlighting. I gave up when things crashed at line 195 with the message that the file could not be located. Using Mediawiki v 1.10.0, PHP v5.2.1, MySql v5.0.37

This has been fixed in the latest version.


 * Has anybody tried to merge this with the highlighting provided by "SyntaxHighligh_GeSHi"? This is an excellent extension, which, no pun intended, I have extended myself to highglight other languages, and inhouse symbols (from inhouse library). --Cartoro 11:22, 7 September 2007 (UTC)


 * If someone wants to send me a patch, I'll merge it into my copy and update it here. Send to noah@noah.org and put "mediawiki" somewhere in the subject. Noahspurrier

Include other formats
Has any thought been given to adapting this extension to import and render a Microsoft Word document. I have very little experience with PHP but would imagine that an addition to the functionality to include other formats would be a neat idea. I may give it a little thought. Prevaljo 18:18, 16 August 2007 (UTC)


 * This could be possible if you don't mind converting the Word document to plain text. I could pass a word document through "antiword" and then output the results. You would have to have "antiword" installed. It's common on many Linux distro package repositories. You would loose any embedded graphics and fonts. Email me at noah@noah.org and put the word "mediawiki" somewhere in the subject. Noahspurrier

Include other wiki pages
I want to include parts of Wikipedia articles on my wiki. Can this extension be expanded to do this? If not, is there another extension that can do it? —Eep² 08:16, 20 August 2007 (UTC)


 * Did you try Extension:IncludeArticle? --Cartoro 11:22, 7 September 2007 (UTC)

Isn't there a huge security hole?
Shouldn't you be using escapeshellarg on the src parameter? Installing this and giving it a bad URL with "|| cat /etc/passwd" worked in a way that is very bad...

This has been fixed in the latest version.


 * Thanks. I feel like a dolt... Noahspurrier

Feature request: Add extraction of specified range of lines only
It would be great to get only specified context of file specified by start and count parameters or even grep search.


 * Maybe give some examples. This seems like it might be getting too tricky. I can't see that being used a lot, but maybe you have some examples to change my mind. Also show how you would like to see the arguments specified.Noahspurrier