<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Add YouTube BB Code support for JForum"]]></title>
		<link>https://forum.andowson.com/posts/list/7.page</link>
		<description><![CDATA[Latest messages posted in the topic "Add YouTube BB Code support for JForum"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Add YouTube BB Code support for JForum</title>
				<description><![CDATA[ add the following code at the bottom of bb_config.xml: 
<br>
[code=xml] 
<br>
 &lt;match name="youtube"&gt; 
<br>
 &lt;regex&gt;(?i)\[youtube\]http\:\/\/www.youtube.com\/watch\?v\=(.*?)\[/youtube\]&lt;/regex&gt; 
<br>
 &lt;replace&gt; 
<br>
 &lt;![CDATA[ 
<br>
 &lt;object width="425" height="350"&gt; 
<br>
 &lt;param name="movie" value="http://www.youtube.com/v/$1"&gt;&lt;/param&gt; 
<br>
 &lt;param name="wmode" value="transparent"&gt;&lt;/param&gt; 
<br>
 &lt;embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt; 
<br>
 &lt;/object&gt; 
<br>
 ]]&gt; 
<br>
 &lt;/replace&gt; 
<br>
 &lt;/match&gt;[/code] 
<br>
go to Admin Panel -&gt; Cache -&gt; Reload BB Code and it's done. 
<br>
<br>
Usage: 
<br>
[code][youtube]full URL of the YouTube Video[/youtube][/code] 
<br>
<br>
See [url]http://www.andowson.com/posts/list/109.page[/url] for live demo.]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/110/187.page</guid>
				<link>https://forum.andowson.com/posts/preList/110/187.page</link>
				<pubDate><![CDATA[Sat, 14 Jul 2007 13:16:44]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:Add YouTube BB Code support for JForum</title>
				<description><![CDATA[ The original post only supports URL in the form "www.youtube.com". However, if you change to another form, like "youtube.com" or "tw.youtube.com", it will not work. So, we need to modify the original bb_config.xml as follows: 
<br>
[code=xml] 
<br>
 &lt;!-- YouTube --&gt; 
<br>
 &lt;match name="youtube"&gt; 
<br>
 &lt;regex&gt; 
<br>
 (?i)\[youtube\]http\:\/\/(.*?)youtube.com\/watch\?v\=(.*?)\[/youtube\] 
<br>
 &lt;/regex&gt; 
<br>
 &lt;replace&gt; 
<br>
 &lt;![CDATA[ 
<br>
 &lt;object width="450" height="370"&gt; 
<br>
 &lt;param name="movie" value="http://$1youtube.com/v/$2"&gt;&lt;/param&gt; 
<br>
 &lt;param name="wmode" value="transparent"&gt;&lt;/param&gt; 
<br>
 &lt;embed src="http://$1youtube.com/v/$2" type="application/x-shockwave-flash" wmode="transparent" width="450" height="370"&gt;&lt;/embed&gt; 
<br>
 &lt;/object&gt; 
<br>
 ]]&gt; 
<br>
 &lt;/replace&gt; 
<br>
 &lt;/match&gt; 
<br>
[/code] 
<br>
Now, the new form of URL works. 
<br>
<br>
See: 
<br>
http://www.jforum.net/posts/list/4269.page]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/110/311.page</guid>
				<link>https://forum.andowson.com/posts/preList/110/311.page</link>
				<pubDate><![CDATA[Sat, 5 Jan 2008 00:49:32]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>