S9Y oEmbed plugin demo page

All the embedded elements you see below were created automatically by simply pasting a link into the article. All the work is done by the upcoming oEmbed plugin for s9y. :-)

Dimensions

This version supports a global maxWidth and maxHeight setting, that is defined by the oEmbed specs. I've set the global maxWidth to 500. As you can see: Nearly all services suports this. Picpls ignores the setting and MyOpera even crashes, when I hand over maxWidht (so I had to add a new XML attribute to the plugins provider definitions).

Templating

You can even style the output of the oembed objects: You'll find a oembed.tpl in the plugins directory. Copy it to your template directory and style it the way you like. The oembed object handed to the templates have the attributes defined in the OEmbed specs. If no oembed.tpl was found in your template directory, the plugin will fallback to the template delivered with the plugin.

Beta Download

As there was a first Spartacus release already, the plugin used in this blog is beta stuff. If you are interested in the newest features and dare to crash your blog ;-) you may download a beta copy and tell me how it works on your site. :-) At the moment I am testing "generic oEmbed providers" like embed.ly. Tweet

Image Services

Tweet with image
CloudApp
teuxdeux.png
Flickr
Abendstimmung am Porto Madero
imgur.com instagr.am
Vorher. Drum bin ich nochmal ins Bett.
My Opera Photobucket Album
Photobucket Group
picplz.com

Berlin Ostkreuz

Berlin Ostkreuz

This picture was taken by gbrockhaus . It was originally posted to picplz.

Skitch
Evil Dr. Skit L Spytr Custom MUNNY
7-Inch
SmugMug
twitpic.com
yfrog

Video Services

blip.tv
Dailymotion
dotsub.com
Flickr Video
Giant Bomb (Video Gaming) Hulu
Qik Mobile Videos
Revision 3
Viddler
Vimeo
yfrog video (supported but doesn't understand, how this should work :-/)
http://yfrog.com/ehvid00001jz:embed
Youtube Alt
Youtube Neu

Audio Services

AudioBoo
Mixcloud official.fm Song
official.fm Playlist
Podomatic Minicasts
Soundcloud Spotify Track Spotify Album

Mixed

ASCII Art Farts
                       -   ,--_--.                            
               -           \      `.                          
                      -     "-_ _   \                         
     -                         / F   )                        
                   -     -    / / `--'                        
              -              / /                              
                   -        / /                               
            -            __/ /     THIS IS A UNICYCLE         
                        /,-pJ                                 
           -        _--"-L ||      UNICYCLES ARE RIDICULOUS   
                  ,"      "//      AND ALSO RIDICULOUS LOOKING
     -           /  ,-""".//\                                 
                /  /     // J____                             
               J  /     // L/----\                            
   .           F J     //__//^---'                            
     `     ___J  F    '----| |                                
  `       J---|  F         F F                                
`   `. `   `--J  L        J  F                                
    .   .`     L J       J  F                                 
       .  .    J  \    ,"  F                                  
         .  `.` \  "--"  ,"        YES I'M LAZY TODAY         
    hs      ` ``."-____-"
Beer Advocate ;-)
BA SCORE
79
average
-
12 Reviews
THE BROS
N/A

-
send 'em beer »
rAvg: 3.32
pDev: 23.19%
High: 4.6
Low: 2

Ratings [?]
Berliner Kindl Jubiläums Pilsener PremiumBerliner Kindl Jubiläums Pilsener Premium
Brewed by:
Berliner Kindl Brauerei visit their website
Germany

Style | ABV
German Pilsener |  5.00% ABV

Notes:
Year-round. Serving types had: bottle (10), on-tap (2)

No other notes at this time.

Write a review and rate this beer : Berliner Kindl Jubiläums Pilsener Premium Review This Beer | 
GitHub Commit

brockhaus OEmbed: Minimal performance change.

serendipity_event_oembed/OEmbedTemplater.php +2 -2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
@@ -17,8 +17,8 @@ function fetchTemplate($filename, $oembed, $url) {
         
         $inclusion = $serendipity['smarty']->security_settings[@INCLUDE_ANY];
         $serendipity['smarty']->security_settings[@INCLUDE_ANY] = true;
-        
-        if (version_compare($serendipity['version'], '1.7-alpha1','>=')) {
+
+        if (version_compare($serendipity['version'], '1.7-alpha1')>=0) {
             $serendipity['smarty']->disableSecurity();
         }
         else {
GitHub Ghist

This is a test only

testin123

1
2
Well, this is a test only..
WTF is github:gist?!
IMDB Wikipedia Unsupported URL (resolved by generic provider)

Trackbacks

*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
Ich hab' da mal was gebastelt.. #s9y #oembed grischa.scorpius.uberspace.de/blog/archives/…— Grischa Brockhaus (@gbrockhaus) Dezember 14, 2011
*

mattsches on : mattsches via Twitter

Continue reading "mattsches via Twitter"
Rockt! RT @gbrockhaus: Ich hab' da mal was gebastelt.. #s9y #oembed grischa.scorpius.uberspace.de/blog/archives/…— Matthias Gutjahr (@mattsches) Dezember 14, 2011
*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
Ich hab' da mal was gebastelt.. #s9y #oembed grischa.scorpius.uberspace.de/blog/archives/…— Grischa Brockhaus (@gbrockhaus) Dezember 14, 2011
*

mattsches on : mattsches via Twitter

Continue reading "mattsches via Twitter"
Rockt! RT @gbrockhaus: Ich hab' da mal was gebastelt.. #s9y #oembed grischa.scorpius.uberspace.de/blog/archives/…— Matthias Gutjahr (@mattsches) Dezember 14, 2011
*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
Ein paar weitere #oembed Services hinzu gefügt, templated und gefeilt. Ready for 1rst #s9y Betatest: http://t.co/UiqEO6H9
*

RobLen on : RobLen via Twitter

Continue reading "RobLen via Twitter"
RT @gbrockhaus: Ein paar weitere #oembed Services hinzu gefügt, templated und gefeilt. Ready for 1rst #s9y Betatest: http://t.co/UiqEO6H9
*

www.robertlender.info on : PingBack

Continue reading "PingBack"
*

Nur ein Blog on : Betatest von oEmbed für S9y

Continue reading "Betatest von oEmbed für S9y"
Im Moment habe ich ja den Eindruck, dass es jeden Tag etwas über Serendipity zu berichten gäbe. Mit diesem Blog teste ich gerade die erste Betaversion des oEmbed Plugins. Was ist das schon wieder. oEmbed ist ein Webstandard (Blue Beanie-... lässt grüße
*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
#s9y #OEmbed plugin updated. Instagr.am added, maxwidth/height definable globally. Examples and new beta available at: http://t.co/Q0EA2aki
*

yellowled on : yellowled via Twitter

Continue reading "yellowled via Twitter"
Einbetten, was man will. Woher man will. Simpel. Mit #s9y und dem oEmbed-Plugin von @gbrockhaus. So fuckin' cool. http://t.co/3Y6A95AR
*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
So. Knapp 30 Services, alle in den Kommentaren gewünschte dabei. Ich glaube das reicht erst mal #s9y #oembed http://t.co/UiqEO6H9
*

yellowled on : yellowled via Twitter

Continue reading "yellowled via Twitter"
Der @gbrockhaus ist total irre. http://t.co/3Y6A95AR (Und wenn ich jetzt „Slideshare?“ sage, haut er mich. Mit Recht.) #s9y #oembed
*

Hommel-Net Weblog on : Beta-Test des Oembed-Plugins

Continue reading "Beta-Test des Oembed-Plugins"
Boah, im Moment ist es echt schwierig, den vielen Neuigkeiten und Diskussionen um die hier im Blog verwendete beste Blogengine der Welt Serendipity (s9y) zu verfolgen. Es tut sich unheimlich viel, sei es im Bereich der Plugins oder beim neuen Standardtemp
*

Grischa on : Das oEmbed Plugin ist fertig

Continue reading "Das oEmbed Plugin ist fertig"
Habt ihr schon einmal Youtube Videos in einen Blog Artikel eingebunden? (Das war eine rhetorische Frage ) Sicherlich habt ihr dann ähnliche Probleme gehabt wie ich: Ihr müsst bei YouTube den Code zum Einbinden eines Videos abholen, diesen in den
*

gbrockhaus on : gbrockhaus via Twitter

Continue reading "gbrockhaus via Twitter"
@RobLen @DerMario .. es gibt auch durchaus Blödsinn zum oEmbedden.. http://t.co/18XCwtO1

Comments

Display comments as Linear | Threaded

*

Matthias Mees on :

picplz fände ich persönlich toll. Mit Hulu wäre ich *sehr* vorsichtig (Copyright) und es könnte sein, dass der eine oder andere gern Soundcloud oder AudioBoo hätte.
*

Grischa on :

PicPlz und SoundCloud habe ich mal eingebunden (siehe oben), die haben einen oembed Service.
Zu AudioBoo sehe ich diesbzgl. nichts, müsste man sich einen eigenen Provider bauen.

Hulu: Nun ja, der Content kommt von denen, somit sollte das okay sein. Und das Plugin bietet Hulu ja nur an, ist dann jedem selbst überlassen, ob er Hulu Links in seinem Blog einbindet. Wie bei dem da oben zu sehen ist: Die werden meist sowieso nicht außerhalb von den Staaten ausgeliefert.
*

Matthias Mees on :

Oh, es werden vermutlich *sehr* schnell Leute nach Instagram brüllen, fällt mir gerade noch ein. Aber: Cool, cool, cool. :-)
*

Matthias Mees on :

Oh, und Dings – TwitPic. Ist zwar ein Saustall, wird aber gewünscht werde, schätze ich.
*

Robert Lender on :

Ach Instagram... voll überbewertet ;-)

PicPlz Support ist genial.

Instagram hätte natürlich den Vorteil, dass man das jeweilige Foto aus der App heraus mailen kann und somit im S9y Blog automatisiert importieren könnte.

Ganz andere Idee. Viele Apps unterstützen Dropbox. Wie wäre ein Plugin, dass Dateien aus einem bestimmten Verzeichnis ausliest und automatisch postet :-)
*

Grischa on :

Instagramm: f#ck, stimmt! das wollte ich auch noch machen. Vergessen.. ;-)

twitpic hatte ich mir schon mal angesehen, das hatte glaube ich kein oembed. Aber ich kann da nen wrapper bauen, nicht so das Ding, denke ich. :-)

dropbox e.a.: hmm.. da bin ich mir gerade nicht sicher, ob das der korrekte Anwendungsfall ist, weil dropbox ja völlig beliebigen Inhalt liefern kann.. Wenn die kein oembed anbieten, baue ich da wohl nix, dass ist ein anderes Plugin. ;-)

Aber gerade noch was anderes gefunden: http://www.noembed.com/. Leider Perl, wenn ich das richtig sehe, aber vielleicht kann man klauen, und an sonsten so etwas als fallback einbauen. ;-)
*

Robert Lender on :

Stimmt. Das ist ganz ein anderes Plugin :-)

Wollte die Idee einfach nur mal fallenlassen ;-)

Aber schauen wir mal, dass dieses supergeniale Plugin aus der Betaphase kommt.
*

Grischa on :

Ganz vergessen: Jetzt gibt es auch einen Download der Betaversion. Wer testen will: Mitnehmen und Bescheid sagen, wie es läuft. :-D
*

Mario on :

Hallo,
wollte auch mal Beta-Tester spielen. Leider habe ich das Problem, das mein Provider (1und1, ja ich weiss...) die Funktion file_get_contents() in der OEmbedProvider.class.php für externe URLs nicht erlaubt. Ich bin kein Entwickler, habe aber mal gegoogelt, dass man die Funktion auch durch die curl-Funktion ersetzen kann:
http://blog.ppfeufer.de/alternative-zu-file_get_contents/
Habe mal selbst versucht das zu ändern aber siehe oben ;-).

Kann man da eventuell was machen?
*

Grischa on :

Habe ich gerade mal eingebaut. Kann ich das immer benutzen oder gibt es PHP Installationen ohne CURL?
*

Grischa on :

Egal. Ich schaue einfach nach, ob CURL gefunden wird. Wenn ja, wird's benutzt, sonst die alte Methode.

Ich habe mal eben das Beta Archiv ausgetauscht. Es gibt nun auch deutlich mehr Services (wie oben zu sehen), manche Services, die ziemlich mies aussehenden Code liefern, habe ich über das Template etwas gepatched. :-)
*

Mario on :

Ups, jetzt bekomme ich ein
Fatal error: Call to undefined method Smarty::disableSecurity() in /homepages/xx/xxxxxxxxx/htdocs/serendipity/plugins/serendipity_event_oembed/OEmbedTemplater.php on line 23
*

Grischa on :

Okay. Ich habe noch einmal eine Beta Version hoch geladen. Die kommt ohne die Security Einstellungen aus (wobei mich wundert, dass Dein Smarty das nicht hat? :-O)
*

Mario on :

Jetzt bekomme ich an der Stelle im Eintrag, wo der Inhalt erscheinen sollte folgende Fehler:
Warning: Smarty error: (secure mode) accessing "file:/homepages/xx/xxxxxx/htdocs/serendipity/plugins/serendipity_event_oembed/oembed.tpl" is not allowed in /homepages/xx/xxxxxxx/htdocs/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1093

Warning: Smarty error: (secure mode) accessing "file:/homepages/xx/xxxx/htdocs/serendipity/plugins/serendipity_event_oembed/oembed.tpl" is not allowed in /homepages/xx/xxxxx/htdocs/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1093
*

Grischa on :

So. Nun scheint es bei allen zu klappen.
Morgen Release! :-)

Add Comment

This blog allows you to add audio comments using audioboo.fm. Create a new boo and enter the link to the page into the boo field.
record
If you enter your twitter name, your timeline will get linked to your comment.
Promote one of your recent articles
This blog allows you to announce one of your recent blog articles with your comment. Please enter your the corresponding URL as homepage and a selection box will pop up letting you choose an article.
Standard emoticons like :-) and ;-) are converted to images.
Pavatar, Twitter, Identica, Gravatar, Favatar, Wavatars author images supported.