Search

A new extension, “Media Resolvr” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Very cool Max. I look forward to trying it out. Thanks for posting!

@bzerangue: Heh, you’re too quick—haven’t even had a chance to say what it does yet.


Media Resolver makes it easier resolve page URIs to their embeddable media.

Flickr’s disconnect between page URIs (e.g., http://www.flickr.com/photos/makenosound/4025741494/) and the actual image URI (e.g, http://farm4.static.flickr.com/3501/4025741494_5d20396e87.jpg) was the impetus for developing this extension, though it can be useful for other services. The idea being that authors can simply enter the URI of the photo page into a field and some smart matching in XSLT can use Media Resovlr to embed the correct image.

The extension adds an extra rewrite rule to the Symphony .htaccess file that lets you construct URIs to embeddable media with the following structure:

http://domain.tld/resolvr/http://service.tld/url-to-media-page/

So in the case of the Flickr photo page noted above, you would be able to use the following code to embed a (defult to medium size) image;

<img src="http://domain.tld/resolvr/http://www.flickr.com/photos/makenosound/4025741494/"/>

So far, the following services are supported:

great! looking forward to it getting extended to vimeo, youtube etc…

Awesomes! I saw it on ‘hub but can’t see it linked on the Extension page :-(

@nickdunn: Weird, I’m positive I added it. Perhaps there’s a bug there somewhere.

I can see clearly now the rain has gone.

@Fazal: You shouldn’t actually need to use this extension for embedding videos from either YouTube or Vimeo—in both those cases the ID of the URI ties directly to the embed URI so you can simply reconstruct the embed URI in XSLT.

Where Media Resolver comes to the fore is with services like Flickr where you can’t infer the image URI from the page URI.

I can see clearly now the rain has gone.

Nick, don’t do that! Now I will be hearing this song ringing in my head for hours…

Hi,

Thanks for creating this extension but I can't seem to get it to work. In particular, I've tried putting this in the img tag but nothing happens. Also, should it not auto-redirect if I put this in the browser also?

http://smluniverse.com/resolvr/http://www.flickr.com/photos/seeminglee/5499248243/?size=4

What could I be doing wrong?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details