[Plugin: WordPress Video Plugin] add support for ISeeIt.TV
-
I added some code to the plugin for a new video site geared toward realtors that I’d like to get added to the plugin. It seems to work fine on the couple of installations I’ve tried it on:
// ISeeIt.TV Code define("ISEEITTV_WIDTH", 675); define("ISEEITTV_HEIGHT", 380); define("ISEEITTV_REGEXP", "/\[iseeittv (:print:+)\]/"); define("ISEEITTV_TARGET", "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"###WIDTH###\" height=\"###HEIGHT###\"><param name=\"movie\" value=\"https://www.iseeit.tv/video/###URL###\" /><param name=\"allowFullScreen\" value=\"true\" /><embed src=\"https://www.iseeit.tv/video/###URL###\" width=\"###WIDTH###\" height=\"###HEIGHT###\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" /></object>"); function iseeittv_plugin_callback( $match ) { $tag_parts = explode(" ", rtrim($match[0], "]")); $output = ISEEITTV_TARGET; $output = str_replace("###URL###", $tag_parts[1], $output); if (count($tag_parts) > 2) { if ($tag_parts[2] == 0) { $output = str_replace("###WIDTH###", ISEEITTV_WIDTH, $output); } else { $output = str_replace("###WIDTH###", $tag_parts[2], $output); } if ($tag_parts[3] == 0) { $output = str_replace("###HEIGHT###", ISEEITTV_HEIGHT, $output); } else { $output = str_replace("###HEIGHT###", $tag_parts[3], $output); } } else { $output = str_replace("###WIDTH###", ISEEITTV_WIDTH, $output); $output = str_replace("###HEIGHT###", ISEEITTV_HEIGHT, $output); } return ($output); } function iseeittv_plugin( $content ) { return (preg_replace_callback(ISEEITTV_REGEXP, 'iseeittv_plugin_callback', $content)); } add_filter('the_content', 'iseeittv_plugin'); add_filter('the_content_rss', 'iseeittv_plugin'); add_filter('comment_text', 'iseeittv_plugin'); add_filter('the_excerpt', 'iseeittv_plugin');
I basically copied the Vimeo code and replaced the parts that needed to be to work with the iseeit.tv site.
https://www.ads-software.com/extend/plugins/wordpress-video-plugin/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: WordPress Video Plugin] add support for ISeeIt.TV’ is closed to new replies.