<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[missing Forum — punBB: HTML posting extension]]></title>
		<link>https://forum.missingno.de/topic/609/</link>
		<atom:link href="https://forum.missingno.de/feed/rss/topic/609/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in punBB: HTML posting extension.]]></description>
		<lastBuildDate>Fri, 03 Feb 2012 17:22:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: punBB: HTML posting extension]]></title>
			<link>https://forum.missingno.de/post/10888/#p10888</link>
			<description><![CDATA[<p>@punner<br />Which version of PunBB do you use? Could you give me a link to the forum where the problem occurs? If I have some spare time, I might have a look into it and maybe get it extended, although I currently don&#039;t use it. <img src="https://forum.missingno.de/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>@tombik<br />What would help you most? Configurable groups?</p>]]></description>
			<author><![CDATA[null@example.com (missingno)]]></author>
			<pubDate>Fri, 03 Feb 2012 17:22:22 +0000</pubDate>
			<guid>https://forum.missingno.de/post/10888/#p10888</guid>
		</item>
		<item>
			<title><![CDATA[Re: punBB: HTML posting extension]]></title>
			<link>https://forum.missingno.de/post/10887/#p10887</link>
			<description><![CDATA[<p>Ok I tried this ! works fine. But there is a problem that guests and users cant see the messages correct. They see something like that <br />&lt;p&gt;&lt;img rc=</p>]]></description>
			<author><![CDATA[null@example.com (punner)]]></author>
			<pubDate>Tue, 31 Jan 2012 20:47:53 +0000</pubDate>
			<guid>https://forum.missingno.de/post/10887/#p10887</guid>
		</item>
		<item>
			<title><![CDATA[Re: punBB: HTML posting extension]]></title>
			<link>https://forum.missingno.de/post/10823/#p10823</link>
			<description><![CDATA[<p>I really like it and i was looking for this. Please extend it! <img src="https://forum.missingno.de/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (tombik)]]></author>
			<pubDate>Sun, 11 Dec 2011 14:13:59 +0000</pubDate>
			<guid>https://forum.missingno.de/post/10823/#p10823</guid>
		</item>
		<item>
			<title><![CDATA[punBB: HTML posting extension]]></title>
			<link>https://forum.missingno.de/post/9927/#p9927</link>
			<description><![CDATA[<p>[code=xml]<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</p><p>&lt;!DOCTYPE extension SYSTEM &quot;ext-1.0.dtd&quot;&gt;</p><p>&lt;extension engine=&quot;1.0&quot;&gt;<br />&nbsp; &nbsp; &lt;id&gt;nan_post_html&lt;/id&gt;<br />&nbsp; &nbsp; &lt;title&gt;HTML posting&lt;/title&gt;<br />&nbsp; &nbsp; &lt;version&gt;0.1.1&lt;/version&gt;<br />&nbsp; &nbsp; &lt;description&gt;Allow HTML postings by certain user groups (currently only forum administrators)&lt;/description&gt;<br />&nbsp; &nbsp; &lt;author&gt;Michael Hanig&lt;/author&gt;<br />&nbsp; &nbsp; &lt;minversion&gt;1.3&lt;/minversion&gt;<br />&nbsp; &nbsp; &lt;maxtestedon&gt;1.3.4&lt;/maxtestedon&gt;</p><p>&lt;hooks&gt;<br />&nbsp; &nbsp; &lt;!--This hook is used to avoid censoring and conversion of HTML entities for forum administrators --&gt;<br />&nbsp; &nbsp; &lt;hook id=&quot;ps_parse_message_start&quot; priority=&quot;10&quot;&gt;&lt;![CDATA[<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($forum_user[&#039;g_id&#039;] == FORUM_ADMIN)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // censoring REMOVED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // convert HTML entities REMOVED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // If the message contains a code tag we have to split it up (text within&nbsp; shouldn&#039;t be touched)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (strpos($text, &#039;[co de]&#039;) !== false &amp;&amp; strpos($text, &#039;[/co de]&#039;) !== false)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list($inside, $outside) = split_text($text, &#039;[co de]&#039;, &#039;[/co de]&#039;, $errors);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = implode(&quot;\0&quot;, $outside);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $return = ($hook = get_hook(&#039;ps_parse_message_post_split&#039;)) ? eval($hook) : null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($return != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $return;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($forum_config[&#039;p_message_bbcode&#039;] == &#039;1&#039; &amp;&amp; strpos($text, &#039;[&#039;) !== false &amp;&amp; strpos($text, &#039;]&#039;) !== false)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = do_bbcode($text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($forum_config[&#039;o_smilies&#039;] == &#039;1&#039; &amp;&amp; $forum_user[&#039;show_smilies&#039;] == &#039;1&#039; &amp;&amp; $hide_smilies == &#039;0&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = do_smilies($text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $return = ($hook = get_hook(&#039;ps_parse_message_bbcode&#039;)) ? eval($hook) : null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($return != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $return;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Deal with newlines, tabs and multiple spaces<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pattern = array(&quot;\n&quot;, &quot;\t&quot;, &#039;&nbsp; &#039;, &#039;&nbsp; &#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $replace = array(&#039;&lt;br /&gt;&#039;, &#039;&amp;nbsp; &amp;nbsp; &#039;, &#039;&amp;nbsp; &#039;, &#039; &amp;nbsp;&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = str_replace($pattern, $replace, $text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $return = ($hook = get_hook(&#039;ps_parse_message_pre_merge&#039;)) ? eval($hook) : null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($return != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $return;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // If we split up the message before we have to concatenate it together again (code tags)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($inside))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $outside = explode(&quot;\0&quot;, $text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = &#039;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $num_tokens = count($outside);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i = 0; $i &lt; $num_tokens; ++$i)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text .= $outside[$i];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($inside[$i]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text .= &#039;&lt;/p&gt;&lt;div class=&quot;codebox&quot;&gt;&lt;pre&gt;&lt;code&gt;&#039;.forum_trim($inside[$i], &quot;\n\r&quot;).&#039;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $return = ($hook = get_hook(&#039;ps_parse_message_post_merge&#039;)) ? eval($hook) : null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($return != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $return;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Add paragraph tag around post, but make sure there are no empty paragraphs<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = preg_replace(&#039;#&lt;br /&gt;\s*?&lt;br /&gt;((\s*&lt;br /&gt;)*)#i&#039;, &quot;&lt;/p&gt;$1&lt;p&gt;&quot;, $text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = str_replace(&#039;&lt;p&gt;&lt;br /&gt;&#039;, &#039;&lt;p&gt;&#039;, $text);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text = str_replace(&#039;&lt;p&gt;&lt;/p&gt;&#039;, &#039;&#039;, &#039;&lt;p&gt;&#039;.$text.&#039;&lt;/p&gt;&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $return = ($hook = get_hook(&#039;ps_parse_message_end&#039;)) ? eval($hook) : null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($return != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $return;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $text;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return null;<br />&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;&lt;/hook&gt;</p><p>&lt;/hooks&gt;</p><p>&lt;/extension&gt;<br />[/code]<br /><em>(space in &quot;co de&quot; is only needed to avoid parsing in this post and must be removed to make this extension work - or just download the archive below)</em></p>]]></description>
			<author><![CDATA[null@example.com (missingno)]]></author>
			<pubDate>Thu, 27 Jan 2011 09:44:43 +0000</pubDate>
			<guid>https://forum.missingno.de/post/9927/#p9927</guid>
		</item>
	</channel>
</rss>
