• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Wordcampnl - Embed Mobypicture using shortcodes
 

Wordcampnl - Embed Mobypicture using shortcodes

on

  • 2,159 views

Presentation I gave at #wordcampnl about a plugin I wrote for embedding Mobypicture content into a blogpost/page by using shortcodes

Presentation I gave at #wordcampnl about a plugin I wrote for embedding Mobypicture content into a blogpost/page by using shortcodes

Statistics

Views

Total Views
2,159
Views on SlideShare
2,045
Embed Views
114

Actions

Likes
0
Downloads
1
Comments
0

4 Embeds 114

http://mathys.vanabbe.com 76
http://www.mobypicture.com 33
http://mobypicture.com 3
http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Wordcampnl - Embed Mobypicture using shortcodes Wordcampnl - Embed Mobypicture using shortcodes Presentation Transcript

  • Embed Mobypicture videos using [shortcodes] a small walkthrough in building [shortcodes] into plugins
  • About me Timan Rebel Entrepreneur Social Media Consultant (Rebelic) Business Development and technical assistance for Mobypicture WordPress fanatic plugin and theme development (TheNextWeb, TechCrunch, FeedForward and my own)
  • Moby allows you to..
  • Using any phone
  • Maxime Verhagen Dutch Minister of foreign affairs
  • Ilse de Lange Dutch Singer & Songwriter
  • Sharing is part of everyday life
  • Moby can send media to Wordpress but sometimes you just want to embed an image, video or audio file
  • Wrote a plugin for that and to demonstrate [shortcodes] at #wordcampnl
  • Wrote a plugin for that You've Been Hit By
  • Wrote a plugin for that You've Been Struck By
  • Wrote a plugin for that A Smooth Criminal
  • Wrote a plugin for that and to demonstrate [shortcodes] at #wordcampnl
  • Tip: Use Google Analytics Campaign vars http://wordpress.rebelic.nl/<plugin name>? utm_source=wordpress& utm_medium=plugin& utm_campaign=<plugin name>
  • What are shortcodes?
  • Embed a Moby video
  • Embed a Moby video See my Moby video
  • Request video through Moby API Don’t use Snoopy class, it’s deprecated Don’t use curl, it might not be available
  • • postMedia • postComment • postMediaUrl • getComments • getThumb • searchPosts • getThumbUrl • getMediaInfo • createUser • checkCredentials Request API key at api.mobypicture.com
  • REST API (get/post) k (api key) t (tiny url code) action=getMediaInfo format=xml
  • <?xml version="1.0"?> <media> <type>video</type> <url_thumbnail>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_thumbnail <url_square>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_square.jpg</u <url_full>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_full.jpg</url_full> <url_video>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5.mp4</url_video <original_width>848</original_width> <original_height>480</original_height> <processing>0</processing> </media>
  • <?xml version="1.0"?> Try not to use PHP5+ only functions Hard with XML, but simple parsing can be done with regexp
  • Almost finished, let’s return
  • Custom width and height [mobyvideo width=1900 height=1080]http://moby.to/c69r6t[/mobyvideo]
  • Custom width and height
  • Done!
  • Thank you for sharing
  • Timan Rebel @timanrebel presentation and plugin code on Mobypicture.com