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

Including wikixml
I made small changes for including wiktext from wikixml to a page, unfortunatly it does not work properly. It only works with noesc wikitext wikixml and then such things as, and  are displayed as wikitext, maybe someone an idea how to fix it. because without noesc there is nothing shown at all. Also with nopre. Thanks for helping. DaSch 77.182.140.239 21:14, 14 January 2008 (UTC)


 * Where are you getting you wikixml? It looks like you are trying to strip the xml tags from around the wikitext and then display the wikitext. Is that corrent? I need a little more context to understand what you want. Can you email me a sample of the wikixml that you are trying to include? Include the phrase "mediawiki" in your subject to get around any spam filters and send to noah@noah.org --Noahspurrier 22:31, 16 January 2008 (UTC)


 * I'm getting the wikixml from an WikiExport Page. --DaSch 77.182.136.226 15:25, 19 January 2008 (UTC)

Included file doesnt update.
When I include a local file, it only updates when I edit and save page. How can I get it to update by just reloading the page?

88.115.199.237 06:45, 18 January 2008 (UTC)


 * This is a limitation of MediaWiki. Note that external content is only refreshed when you save the wiki page that contains the . Changing the external file WILL NOT update the wiki page until the wiki page is edited and saved (not merely refreshed in the browser). You can also instruct the server to refresh the page by adding the refresh action. See http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Server_cache
 * You can add the following to a wiki page to make it easier to clear the cache:
 * --Noahspurrier 23:28, 23 January 2008 (UTC)
 * --Noahspurrier 23:28, 23 January 2008 (UTC)

Local file timestamp?
Is it possible to inlude a local file timestamp? To keep track when the file was last modified.

88.115.199.237 10:45, 21 January 2008 (UTC)

Include content in my wiki from Wikipedia?
Hi there, I tried your extension with the goal of sucking in content from Wikipedia into my wiki. It sort of worked, but also dragged in extraneous page formatting instead of just the text. Can you please explain how do do what I'd like to accomplish? Thanks for writing the extension!

LocalSettings.php
Try using  with this installed. I tried it with my wiki installation (latest official MediaWiki release at time of writing). Great if you don't mind your passwords being revealed! I think there needs to be an option to limit the types of includes permitted - local ones are clearly not safe. 86.139.85.83 20:28, 7 March 2008 (UTC)