[Mediawiki-l] Inserting an external image

Dave Sigafoos davesigafoos at sanmar.com
Mon Nov 12 21:15:49 UTC 2007


It might be better to define a var in Localsettings.php and add that to
the extensions.  You still have to worry about updates to parser.php but
I just hate hard coding bits like that in <G>

DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos at sanmar.com 

 

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Mathieu
Malaterre
Sent: Monday, November 12, 2007 12:33
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Inserting an external image

Hi,

  Answering myself... I guess I did not send the question to the right
mailing list, but I don't see any other for those technical questions.
   The fix is pretty ugly but it just works (c):

Open includes/Parser.php, look for

EXT_IMAGE_EXTENSIONS

and change into:

define( 'EXT_IMAGE_EXTENSIONS', 'gif|png|jpg|jpeg|png\?view=co' );

HTH
-Mathieu

On Nov 12, 2007 7:01 PM, Mathieu Malaterre <mathieu.malaterre at gmail.com>
wrote:
> Hi Mark,
>
>   Indeed one cannot remove ?view=co, this is the way viewvc ( a web
> interface to cvs) handles the latest revision. I am trying to
> externalize the storing/revision of image *outside* of the wiki. I am
> guessing this is very simple task to modify the function that returns
> whether a link points to an image or not (technically the server is
> supposed to answer that via the mime/type thingy...but that a whole
> different story I suppose). The only issue is that I do not know where
> to start in the code base of mediawiki.
>
> Thanks,
> -Mathieu
>
>
> On Nov 12, 2007 6:44 PM, Wikinews Markie <newsmarkie at googlemail.com>
wrote:
> > this could be due to the ?view=co bit on the end of the url.  try to
find
> > another link for the image without that ( i note that removing this
bit
> > doesn't work). else i would suggest local upload to wiki or perhaps
host it
> > on something like photobucket etc
> >
> > mark
> >
> > On Nov 12, 2007 3:43 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com>
> > wrote:
> >
> >
> > > Hi there, I have spend a couples of hours trying to insert an
external
> > > image at:
> > >
> > > *
http://gdcm.sourceforge.net/wiki/index.php/Samples:ACR_NEMA_1.0#Gallery
> > >
> > > As far as I understand a link like this:
> > >
> > >  http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
> > >
> > > is working, but not a link like this:
> > >
> > >
> > >
http://cvs.creatis.insa-lyon.fr/viewvc/gdcmData/Baseline/MR-MONO2-12-ang
io-an1.png?view=co
> > >
> > > However this is a perfectly valid URL !
> > >
> > > Is there *anyway* to simply do a <img/> with mediawiki ?
> > >
> > > Ref: Using 1.6.10 (sourceforge requires php4)
> > >
> > > Thanks,
> > > --
> > > Mathieu
> > >
> > > _______________________________________________
> > > MediaWiki-l mailing list
> > > MediaWiki-l at lists.wikimedia.org
> > > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
>
>
>
> --
> Mathieu
>



-- 
Mathieu

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list