<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Javascript in post]]></title>
		<link>https://punbb.informer.com/forums/topic/13142/javascript-in-post/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/13142/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Javascript in post.]]></description>
		<lastBuildDate>Tue, 10 Oct 2006 16:38:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/79113/#p79113</link>
			<description><![CDATA[<p>Ok removed the &#039;g&#039; no error , but nothing appear in the post !</p><p>Fixed working great now.</p><p>Thank you very much master Elbekko</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Tue, 10 Oct 2006 16:38:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/79113/#p79113</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/79106/#p79106</link>
			<description><![CDATA[<p>Replace [\/ariegenews\]/gi with [\/ariegenews\]/i then.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Tue, 10 Oct 2006 16:17:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/79106/#p79106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/79103/#p79103</link>
			<description><![CDATA[<p>I have this error :</p><div class="codebox"><pre><code>Warning: preg_replace() [function.preg-replace]: Unknown modifier &#039;g&#039; in /include/parser.php on line 394</code></pre></div><p>Some lines before the line 394 in include/parser.php :</p><div class="codebox"><pre><code>// This thing takes a while! :)
    $text = preg_replace($pattern, $replace, $text);
    $text = preg_replace(&#039;/\[ariegenews\]([^\[]+)\[\/ariegenews\]/gi&#039;, &#039;&lt;script type=&quot;text/javascript&quot;
src=&quot;http://www.ariegenews.com/data/rss/video-$1.html&quot;&gt;&lt;/script&gt;&#039;, $text);
    return $text;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Tue, 10 Oct 2006 15:48:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/79103/#p79103</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/79093/#p79093</link>
			<description><![CDATA[<p>In the function do_bbcode() in parser.php, add this code:<br /></p><div class="codebox"><pre><code>$text = preg_replace(&#039;/\[ariegenews\]([^\[]+)\[\/ariegenews\]/gi&#039;, &#039;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.ariegenews.com/data/rss/video-$1.html&quot;&gt;&lt;/script&gt;&#039;, $text);</code></pre></div><p>before this line<br /></p><div class="codebox"><pre><code>return $text;</code></pre></div><p>Should work <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Tue, 10 Oct 2006 15:05:50 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/79093/#p79093</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/79082/#p79082</link>
			<description><![CDATA[<p>The Webmaster gives to me the solution :</p><div class="codebox"><pre><code>[ariegenews]video-1375.html[/ariegenews]</code></pre></div><p>But i have to include this function :<br /></p><div class="codebox"><pre><code>preg_replace(
  &#039;/\[ariegenews\]([^\[]+)\[\/ariegenews\]/gi&#039;,
  &#039;&lt;script type=&quot;text/javascript&quot;
src=&quot;http://www.ariegenews.com/data/rss/video-$1.html&quot;&gt;&lt;/script&gt;&#039;,
  $post
);</code></pre></div><p>Where and how do i have to include this function ,including it in parser.php as is give me a lot of errors.</p><p>My first idea was to include it after the youtube bbcode&nbsp; in parser.php here is the modifications already done :<br /></p><div class="codebox"><pre><code>#
#---------[ 1. OPEN ]---------------------------------------------------------
#
include/parser.php
#
#---------[ 2. FIND (line: 316) ]---------------------------------------------
#
                    &#039;#\[u\](.*?)\[/u\]#s&#039;,

#
#---------[ 3. AFTER, ADD ]---------------------------------------------------
#
                     &#039;#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s&#039;,

#
#---------[ 4. FIND (line: 326) ]---------------------------------------------
#
                     &#039;&lt;span class=&quot;bbu&quot;&gt;$1&lt;/span&gt;&#039;,

#
#---------[ 5. AFTER, ADD ]---------------------------------------------------
#
                     &#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;,
#
#---------[ 6. SAVE/UPLOAD ]-------------------------------------------------
#</code></pre></div><p>Any advice ?</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Tue, 10 Oct 2006 12:57:33 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/79082/#p79082</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77323/#p77323</link>
			<description><![CDATA[<div class="quotebox"><cite>elbekko wrote:</cite><blockquote><p>You could always make a more safe BBCode:<br /></p><div class="codebox"><pre><code>[vid=video150.html]Video[/vid]</code></pre></div></blockquote></div><p>Yes Elbekko would be better to not use javascript but how ?<br />If you could have a look to the code inside the videoxxx.html file i&#039;m just discovering Punbb and Php (3months) here is the french site i was talking about :<br /><a href="http://www.ariegenews.com/index.html">http://www.ariegenews.com/index.html</a><br />and here is a link where there is a vidéo :<br /><a href="http://www.ariegenews.com/news/news-1-17-1359.html">http://www.ariegenews.com/news/news-1-17-1359.html</a><br />The opportunity to retrieve the vidéo is given near footer under the line <br /></p><div class="codebox"><pre><code>Pour intégrer cette vidéo dans votre site internet ou votre blog, copiez/collez simplement le code ci-dessous:
&lt;script language=&quot;javascript&quot; src=&quot;http://www.ariegenews.com/data/rss/video-1359.html&quot;&gt;&lt;/script&gt;</code></pre></div><p>Any advice ?</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sat, 16 Sep 2006 15:06:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77323/#p77323</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77318/#p77318</link>
			<description><![CDATA[<p>You could always make a more safe BBCode:<br /></p><div class="codebox"><pre><code>[vid=video150.html]Video[/vid]</code></pre></div><p>Or something like that.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sat, 16 Sep 2006 13:04:33 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77318/#p77318</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77317/#p77317</link>
			<description><![CDATA[<p>Because if you see the first post the only way to have the vidéo if the site i was talkin about have this form<br /></p><div class="codebox"><pre><code>&lt;script language=&quot;javascript&quot; src=&quot;http://www............/video150.html&quot;&gt;&lt;/script&gt;</code></pre></div><p>if the webmaster of this site gives the direct link in another way i would not ask for this ;-)<br />Inside the video150.html file there is the direct link for the flv file but too much manipulations to retrieve the link.<br />I was searching for a solution to directly input the code above inside a new bbcode.</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sat, 16 Sep 2006 13:02:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77317/#p77317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77316/#p77316</link>
			<description><![CDATA[<p>Why would you allow JS in posts? &gt;=/</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sat, 16 Sep 2006 11:41:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77316/#p77316</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77315/#p77315</link>
			<description><![CDATA[<div class="quotebox"><cite>deadram wrote:</cite><blockquote><p>Type this (with the url bbcode) on a forum</p><p><a href="http://www............/video150.html">http://www............/video150.html</a></p><p>Press &quot;preview&quot;</p><p>Right click the link and select &quot;save target as...&quot; or the likes</p><p>Upload videoXXX.html to you webserver, or review the jscript and figure out how to do it with less work next time <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p></blockquote></div><p>Thanks for the answer but doesn&#039;t help so much</p><p>Less work ????</p><p>I was asking if it&#039;s possible to create a javascript bbcode to handle this king of link like this :<br /></p><div class="codebox"><pre><code>[js]&lt;script language=&quot;javascript&quot; src=&quot;http://www............/video150.html&quot;&gt;&lt;/script&gt;[/js]</code></pre></div><p>I know that it&#039;s complicated and there will be probably a vulnerability problem but is there any way to do that.</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Sat, 16 Sep 2006 11:30:38 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77315/#p77315</guid>
		</item>
		<item>
			<title><![CDATA[Re: Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77290/#p77290</link>
			<description><![CDATA[<p>Type this (with the url bbcode) on a forum</p><p><a href="http://www............/video150.html">http://www............/video150.html</a></p><p>Press &quot;preview&quot;</p><p>Right click the link and select &quot;save target as...&quot; or the likes</p><p>Upload videoXXX.html to you webserver, or review the jscript and figure out how to do it with less work next time <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (deadram)]]></author>
			<pubDate>Fri, 15 Sep 2006 20:40:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77290/#p77290</guid>
		</item>
		<item>
			<title><![CDATA[Javascript in post]]></title>
			<link>https://punbb.informer.com/forums/post/77286/#p77286</link>
			<description><![CDATA[<p>Hello punbb users.</p><p>I&#039;ve put DailyMotion,Youtube,GoogleVidéo and SwfReader bbcodes in my Forum.A local site give the opportunity to user to take the link of their vidéos directly like this : <br /></p><div class="codebox"><pre><code>&lt;script language=&quot;javascript&quot; src=&quot;http://www............/video150.html&quot;&gt;&lt;/script&gt;</code></pre></div><p>I&#039;ve had a look at http://www............/video.html the vidéo inside have an Flv extension,no problem to read it inside SwfReader bbcode but to simplify manipulation for the users (open the link,view the source,localize the link of flv file) i would like to use directly the code listed above inside a new bbcode.</p><p>Is it possible ?</p><p>Any idea ?</p><p>Thanks for your answer.</p>]]></description>
			<author><![CDATA[null@example.com (glucarelli)]]></author>
			<pubDate>Fri, 15 Sep 2006 18:30:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/77286/#p77286</guid>
		</item>
	</channel>
</rss>
