933
edits
John Stanton (talk | contribs) |
|||
Line 262: | Line 262: | ||
:: Sorry about that, I must have slipped when I copied it from my local installation. But that's all the code there is, the code works fine. I just don't have uploads on my testing because it's a local installation on my XP Home computer meaning I can't work permissions. But I did some alternative testing to it. My guess from looking at other wikis and the MediaWiki code is that MediaWiki capitalizes the first letter of every file it uploads automaticly. So I have the ucfirst function there. From everything I've tested this should work fine. The worst that could happen is that I miscalculated something on how the system works, and some of the Places where <nowiki>{{fullimage:Something.png}}</nowiki> is used create incorrect urls that I'll half to find a way to fix. But for all purposes it should work now. wfImageDir is a system function that I used to grab the directory, so that should compensate for any mistake other than how files are capitalized. I added the end tag just for reassurance. [[User:Dantman|Dantman]] 04:07, 30 October 2006 (EST) | :: Sorry about that, I must have slipped when I copied it from my local installation. But that's all the code there is, the code works fine. I just don't have uploads on my testing because it's a local installation on my XP Home computer meaning I can't work permissions. But I did some alternative testing to it. My guess from looking at other wikis and the MediaWiki code is that MediaWiki capitalizes the first letter of every file it uploads automaticly. So I have the ucfirst function there. From everything I've tested this should work fine. The worst that could happen is that I miscalculated something on how the system works, and some of the Places where <nowiki>{{fullimage:Something.png}}</nowiki> is used create incorrect urls that I'll half to find a way to fix. But for all purposes it should work now. wfImageDir is a system function that I used to grab the directory, so that should compensate for any mistake other than how files are capitalized. I added the end tag just for reassurance. [[User:Dantman|Dantman]] 04:07, 30 October 2006 (EST) | ||
: I loaded the extension using <pre>include($IP."/extensions/FullLocalImage.php");</pre> per your instructions (other options would be "Require" or "Require_Once") and it did not cause the wiki to fail :-) so I assume it is functional. Please check it out and let me know if it is functional. I would appreciate it if you would start a page called "[[FullLocalImage Extension]]" and document the uses, syntax and source code for the extension. Many thanks! [[User:John Stanton|John]] 11:41, 31 October 2006 (EST) |
edits