[Plugin: WordPress Video Plugin] Adding Zshare Player
-
Since this player is not included amongst the other 63 players, I tried adding it myself, but it did not work. Fatal error.
// Zshare code define("Zshare_WIDTH", 622); define("Zshare_HEIGHT", 440); define("Zshare_REGEXP", "/\[zshare (:print:+)\]/"); define("Zshare_TARGET", "<iframe src="http://www.zshare.net/videoplayer/player.php?SID=###URL###&iframewidth=622&iframeheight=395&width=622&height=360" border="0" frameborder="0" height="438" scrolling=\"no\" width="622"></iframe>"); function tutv_plugin_callback($match) { $output = Zshare_TARGET; $output = str_replace("###URL###", $match[1], $output); return ($output); } function zshare_plugin($content) { return (preg_replace_callback(Zshare_REGEXP, 'Zshare_plugin_callback', $content)); } add_filter('the_content', 'Zshare_plugin'); add_filter('the_content_rss', 'Zshare_plugin'); add_filter('comment_text', 'Zshare_plugin'); add_filter('the_excerpt', 'Zshare_plugin');Is there a way for this to work, or a reason for why it doesn’t?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘[Plugin: WordPress Video Plugin] Adding Zshare Player’ is closed to new replies.