Download Now
Screenshots
autoplayer.jpg (68.6 KB, 0 views)
Show Your Support
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="youtubeplayer" active="1"> <title>Auto youtube embed</title> <description>replace youtube link with player</description> <version>1</version> <url>http://www.lebch.com</url> <versioncheckurl>http://www.lebch.com</versioncheckurl> <dependencies> </dependencies> <codes> </codes> <templates> </templates> <plugins> <plugin active="1" executionorder="5"> <title>embed player</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[$embed_player = ' <table widht="640" align="center" class="tborder" > <tr><td class="alt1"> <object width="640" height="390"> <param name="movie" value="http://www.youtube.com/v/\\4&hl=en_US&fs=1&rel=0&version=3"> </param> <param name="allowFullScreen" value="true"> </param> <param name="allowscriptaccess"value="always"></param> <embed src="http://www.youtube.com/v/\\4&hl=en_US&fs=1&rel=0&version=3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"></embed> </object> </td> </tr> </table> '; $post['message'] = preg_replace('#(<a href="http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)">(http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)<\/a>#i', $embed_player, $post['message']);]]></phpcode> </plugin> </plugins> <phrases> </phrases> <options> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> </product>