人力検索に関する私信

id:kunitzさん
人力検索での以下の質問に関するご報告です。
http://q.hatena.ne.jp/1247298069
回答でご紹介したExtensionのSlideShareについてですが、動作確認してみた所、そのままでは動かない事が分かりました。
次の修正を加える事で動作しますので、良かったらお試しください。

ダウンロードした「SlideShare.php」の60行目にある次の行を

function renderSlideShare(&$parser, $id, $width=425, $height=348)

以下のように変更します。

function renderSlideShare(&$parser, $id, $title, $width=425, $height=355)

さらに78行目にある次の行を

$output = '<object style="margin:0px" width="'.$width.'" height="'.$height.'"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$id.'"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$id.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" height="'.$height.'"></embed></object>';

次のように変更します。

$output = '<object style="margin:0px" width="'.$width.'" height="'.$height.'"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc='.$id.'&stripped_title='.$title.'" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc='.$id.'&stripped_title='.$title.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" height="'.$height.'"></embed></object>';

具体的には、「doc='.$id.」の部分を「doc='.$id.'&stripped_title='.$title.」に変更しています。
2箇所あります。(※「&」と「=」が「%26」等に変換されて読み込みできなくなる事の対策です。)
他、動画のソースのURLが「static.slideshare.net」から「static.slidesharecdn.com」に変更になっています。
こちらも2箇所あります。

なお、引数が変更になっていますので、Wikiには「{{#slideshare:<slideshare_document_id>|<document_title>|<width>|<height>}}」で記述してください。
動画ソースの「ssplayer2.swf?doc=」以降「&stripped_title=」より前が「<slideshare_document_id>」、後ろが「<document_title>」です。
例えば、以下のように記述します。

{{#slideshare:movietitle01-0907061XXXX8-phpapp01|movietitle-01-16XXXX9}}

これで動作しますのでお試しください。