<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - Youtube tag.]]></title>
		<link>http://punbb.informer.com/forums/topic/21505/youtube-tag/</link>
		<description><![CDATA[The most recent posts in Youtube tag..]]></description>
		<lastBuildDate>Fri, 17 Apr 2009 08:12:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126903/#p126903</link>
			<description><![CDATA[<p>Hi Slavok,</p><p>Other than the [youtube] tag, this was added too. </p><div class="codebox"><pre><code>If you want to handle tags of this form: [item=Doombringer] then do the following:

Edit include/parser.php and change the following lines:

After this line:

&#039;#\s*\[/email\]#i&#039;,

Add this line:

&#039;#\[item=(&quot;|\&#039;|)(.*?)\\1\]\s*#i&#039;,

After this line:

&#039;[/email]&#039;,

Add this line:

&#039;[item=$2]&#039;,

After this line:

&#039;#\[email=([^\[]*?)\](.*?)\[/email\]#&#039;,

Add this line:

&#039;#\[item=([^\[]*?)\]#&#039;,

After this line:

&#039;&lt;a href=&quot;mailto:$1&quot;&gt;$2&lt;/a&gt;&#039;,

Add this line:

&#039;&lt;a href=&quot;http://www.wowhead.com/?item=$1&quot;&gt;$1&lt;/a&gt;&#039;,</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Srut)]]></author>
			<pubDate>Fri, 17 Apr 2009 08:12:05 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126903/#p126903</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126896/#p126896</link>
			<description><![CDATA[<div class="quotebox"><cite>Srut wrote:</cite><blockquote><p>Hi Slavok,</p><p>Thanks for the reply, you mean you tried it with [youtbe]full url of youtube video[/youtube] on your own setup and it works?</p></blockquote></div><p>Yes, it is. I am in Windows XP, I have tested it in IE 7, Firefox 4, Opera 9.<br /></p><div class="quotebox"><cite>Srut wrote:</cite><blockquote><p>Could it be because of my parser.php file?</p></blockquote></div><p>Have you got any others changes in parser.php?</p>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Fri, 17 Apr 2009 07:00:30 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126896/#p126896</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126891/#p126891</link>
			<description><![CDATA[<p>Hi MattF,</p><p>I&#039;m using Safari and Firefox. I&#039;m on a Mac. Anyways, on my work laptop, (Both IE7 &amp; Firefox 3.0) it still doesn&#039;t display.</p><p>Could it be because of my parser.php file?</p>]]></description>
			<author><![CDATA[dummy@example.com (Srut)]]></author>
			<pubDate>Fri, 17 Apr 2009 04:43:58 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126891/#p126891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126863/#p126863</link>
			<description><![CDATA[<div class="quotebox"><cite>Srut wrote:</cite><blockquote><p>Strange thing is that i tried that and it does work at all. I&#039;m wondering if its because the &lt;object cannot be embedded?</p></blockquote></div><p>The object tag is the correct way to embed information in a page. What browser are you testing with?</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Thu, 16 Apr 2009 16:31:35 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126863/#p126863</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126841/#p126841</link>
			<description><![CDATA[<p>Hi Slavok,</p><p>Thanks for the reply, you mean you tried it with [youtbe]full url of youtube video[/youtube] on your own setup and it works?</p><p>Strange thing is that i tried that and it does work at all. I&#039;m wondering if its because the &lt;object cannot be embedded?</p>]]></description>
			<author><![CDATA[dummy@example.com (Srut)]]></author>
			<pubDate>Thu, 16 Apr 2009 06:30:58 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126841/#p126841</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126839/#p126839</link>
			<description><![CDATA[<p>Your code works properly for me. I have tried this BBCode-tag:<br /></p><div class="codebox"><pre><code>[youtube]http://www.youtube.com/watch?v=...[/youtube]</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Thu, 16 Apr 2009 06:22:19 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126839/#p126839</guid>
		</item>
		<item>
			<title><![CDATA[Re: Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126831/#p126831</link>
			<description><![CDATA[<p>Btw I tried with [youtube]videoid[/youtube] and it&#039;s full URL and that doesn&#039;t work either. Can anyone help me with this please? This is my site. <a href="http://Http://www.rebirth-saurfang.com/forum">Http://www.rebirth-saurfang.com/forum</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Srut)]]></author>
			<pubDate>Wed, 15 Apr 2009 16:34:11 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126831/#p126831</guid>
		</item>
		<item>
			<title><![CDATA[Youtube tag.]]></title>
			<link>http://punbb.informer.com/forums/post/126822/#p126822</link>
			<description><![CDATA[<p>Hi all,</p><p>I&#039;m fairly new to Punbb and so far have only tried out Punbb 1.2.21, I&#039;m not eager to upgrade it to 1.3.x as I&#039;ve integrated the forum into my wordpress site and its already been built up.</p><p>I&#039;m however trying out the youtube tag but that somehow doesn&#039;t seem to work. </p><p>Here&#039;s my parser.php<br /></p><div class="codebox"><pre><code>$pattern = array(&#039;#\[b\](.*?)\[/b\]#s&#039;,
                     &#039;#\[i\](.*?)\[/i\]#s&#039;,
                     &#039;#\[u\](.*?)\[/u\]#s&#039;,
                     &#039;#\[url\]([^\[&lt;]*?)\[/url\]#e&#039;,
                     &#039;#\[url=([^\[&lt;]*?)\](.*?)\[/url\]#e&#039;,
                     &#039;#\[email\]([^\[&lt;]*?)\[/email\]#&#039;,
                     &#039;#\[email=([^\[&lt;]*?)\](.*?)\[/email\]#&#039;,
                     &#039;#\[item=([^\[]*?)\]#&#039;,
                     &#039;#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s&#039;,
                     &#039;#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s&#039;);

    $replace = array(&#039;&lt;strong&gt;$1&lt;/strong&gt;&#039;,
                     &#039;&lt;em&gt;$1&lt;/em&gt;&#039;,
                     &#039;&lt;span class=&quot;bbu&quot;&gt;$1&lt;/span&gt;&#039;,
                     &#039;handle_url_tag(\&#039;$1\&#039;)&#039;,
                     &#039;handle_url_tag(\&#039;$1\&#039;, \&#039;$2\&#039;)&#039;,
                     &#039;&lt;a href=&quot;mailto:$1&quot;&gt;$1&lt;/a&gt;&#039;,
                     &#039;&lt;a href=&quot;mailto:$1&quot;&gt;$2&lt;/a&gt;&#039;,
                     &#039;&lt;a href=&quot;http://www.wowhead.com/?item=$1&quot;&gt;$1&lt;/a&gt;&#039;,
                     &#039;&lt;object width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/$1&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/$1&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&#039;,
                     &#039;&lt;span style=&quot;color: $1&quot;&gt;$2&lt;/span&gt;&#039;);</code></pre></div><br /><p>Is there something wrong I&#039;m doing here?</p>]]></description>
			<author><![CDATA[dummy@example.com (Srut)]]></author>
			<pubDate>Wed, 15 Apr 2009 15:16:07 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/126822/#p126822</guid>
		</item>
	</channel>
</rss>
