From: <dj...@us...> - 2012-06-12 14:47:57
|
Revision: 9638 http://xoops.svn.sourceforge.net/xoops/?rev=9638&view=rev Author: djculex Date: 2012-06-12 14:47:46 +0000 (Tue, 12 Jun 2012) Log Message: ----------- - Change: Wrote to new plugins for oembed so xoops news and mp3 files are automatic embedded in updates Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/js/jquery.oembed.js Modified: XoopsModules/smallworld/trunk/smallworld/js/jquery.oembed.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/jquery.oembed.js 2012-06-12 14:46:29 UTC (rev 9637) +++ XoopsModules/smallworld/trunk/smallworld/js/jquery.oembed.js 2012-06-12 14:47:46 UTC (rev 9638) @@ -614,8 +614,21 @@ } } }), + + // Culex added pages + // Xoops news + new xoops_smallworld.fn.oembed.OEmbedProvider("xoopsnews", "rich", ["xoops.org/modules/news/article.php.storyid.\\d+"], null, + {yql:{xpath:'//div[@class="wox_news_item wox_news_single_item"]', from: 'htmlstring' + , datareturn:function(results){ + if(!results.result) return false; + return "<div class='xo-content'>"+results.result+"</div>"; + } + } + }), - + // Audio files to yahoo player + //.+/([0-9]+)([a-zA-Z]+)(.wav|.mp3|.mp4) + //<script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script> //Use Open Graph Where applicable new xoops_smallworld.fn.oembed.OEmbedProvider("opengraph", "rich", [".*"], null, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |