User talk:John Stanton: Difference between revisions

Line 252: Line 252:
return $wgServer . wfImageDir( $name ) . '/' . ucfirst( $name );
return $wgServer . wfImageDir( $name ) . '/' . ucfirst( $name );
}
}
}</pre>
}
?></pre>


It would be much apreciated, If you can get that I can get some stuff working in [[Template:Wiki/3]] that couldn't before. [[User:Dantman|Dantman]] 19:50, 29 October 2006 (EST)
It would be much apreciated, If you can get that I can get some stuff working in [[Template:Wiki/3]] that couldn't before. [[User:Dantman|Dantman]] 19:50, 29 October 2006 (EST)


: This file seems to be missing the ending PHP tag and may be missing more than that, can you complete the listing??? Many thanks. [[User:John Stanton|John]] 20:19, 29 October 2006 (EST)
: This file seems to be missing the ending PHP tag and may be missing more than that, can you complete the listing??? Many thanks. [[User:John Stanton|John]] 20:19, 29 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)
56

edits