<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: HTML in Messages</title>
        <description>This module allows message authors to use HTML markup code in their messages.

It uses [url=http://htmlpurifier.org]HTML Purifier[/url] for filtering the code. The filtering is done for both creating clean HTML output (so invalid HTML code entered by the author won&#039;t break your page layout) and protecting against XSS attacks.

This package is a replacement for the HTML module that was shipped with Phorum until version 5.2.12. From 5.2.13 on, the HTML module is no longer part of the core distribution, because the very basic anti-XSS algorithms that it had implemented were not good enough for protecting against every kind of XSS attack out there.

[color=#000099]The Phorum developers would like to stress that, even though HTML Purifier does a fantastic job at filtering the HTML code, it is in general a bad idea to allow HTML input by end users on your system. If you are running a Phorum installation for which you already have an HTML module enabled, then you do not really have a choice. However, if you are considering to install this module on a fresh Phorum installation, we ask you to reconsider.[/color]

[code]
Changelog:
----------

2009-08-16 v2.0.0

   - Implemented HTML Purifier (http://htmlpurifier.org) as the HTML
     filter for the Phorum HTML module.
[/code]</description>
        <link>https://www.phorum.org/support/read.php?62,140066,140066#msg-140066</link>
        <lastBuildDate>Sun, 13 Sep 2026 15:22:15 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,155733#msg-155733</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,155733#msg-155733</link>
            <description><![CDATA[ Does this module allow for Iframe embedding?  It is working with simple photos and html code but it doesn&#039;t work with html embedding code from Soundcloud or Mixcloud.<br />
<br />
For example posting this code gets me nothing in the preview.<br />
<br />
[code=&quot;html4strict&quot;]<br />
<br />
&lt;iframe src=&quot;[<a href="https://www.mixcloud.com/widget/iframe/?embed_type=widget_standard&amp;amp;embed_uuid=700552ba-25c8-4c1f-b418-f60bb884d568&amp;amp;feed=https%3A%2F%2Fwww.mixcloud.com%2Fjohndigweed%2Ftransitions-with-john-digweed-and-nick-warren-2015%2F&amp;amp;hide_cover=1&amp;amp;hide_tracklist=1&amp;amp;replace=0&quot" target="_blank"  rel="nofollow">www.mixcloud.com</a>]; frameborder=&quot;0&quot; height=&quot;180&quot; width=&quot;660&quot;&gt;&lt;/iframe&gt;&lt;div style=&quot;clear: both; height: 3px; width: 652px;&quot;&gt;&lt;/div&gt;&lt;p style=&quot;display: block; font-size: 11px; font-family: &amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; margin: 0px; padding: 3px 4px; color: rgb(153, 153, 153); width: 652px;&quot;&gt;&lt;a href=&quot;[<a href="https://www.mixcloud.com/johndigweed/transitions-with-john-digweed-and-nick-warren-2015/?utm_source=widget&amp;amp;utm_medium=web&amp;amp;utm_campaign=base_links&amp;amp;utm_term=resource_link&quot" target="_blank"  rel="nofollow">www.mixcloud.com</a>]; target=&quot;_blank&quot; style=&quot;color:#808080; font-weight:bold;&quot;&gt;Transitions with John Digweed and Nick Warren (2015)&lt;/a&gt;&lt;span&gt; by &lt;/span&gt;&lt;a href=&quot;[<a href="https://www.mixcloud.com/johndigweed/?utm_source=widget&amp;amp;utm_medium=web&amp;amp;utm_campaign=base_links&amp;amp;utm_term=profile_link&quot" target="_blank"  rel="nofollow">www.mixcloud.com</a>]; target=&quot;_blank&quot; style=&quot;color:#808080; font-weight:bold;&quot;&gt;John Digweed&lt;/a&gt;&lt;span&gt; on &lt;/span&gt;&lt;a href=&quot;[<a href="https://www.mixcloud.com/?utm_source=widget&amp;amp;utm_medium=web&amp;amp;utm_campaign=base_links&amp;amp;utm_term=homepage_link&quot" target="_blank"  rel="nofollow">www.mixcloud.com</a>]; target=&quot;_blank&quot; style=&quot;color:#808080; font-weight:bold;&quot;&gt; Mixcloud&lt;/a&gt;&lt;/p&gt;&lt;div style=&quot;clear: both; height: 3px; width: 652px;&quot;&gt;&lt;/div&gt;<br />
[/code]]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 21 Apr 2015 12:56:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147252#msg-147252</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147252#msg-147252</link>
            <description><![CDATA[ thanks guys. <br />
<br />
Just for others to know.<br />
<br />
I went to admin panel&gt;under global settings I clicked on cache settings and made the change there.]]></description>
            <dc:creator>amnesia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 30 Dec 2010 04:41:33 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147240#msg-147240</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147240#msg-147240</link>
            <description><![CDATA[ Preferably in reverse order ;-) (first create the writable directory and then change the admin interface setting)]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 29 Dec 2010 07:12:00 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147239#msg-147239</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147239#msg-147239</link>
            <description><![CDATA[ like maurice said:<br />
&quot;If this is the case, then you could change the cache directory path for your Phorum install to a different directory to prevent the collision.&quot;<br />
<br />
Go to the admin area, general settings and change the cache path there. e.g. to &quot;./cache&quot; (yes, with the . in the beginning) and make the cache directory in your phorum install writable, e.g. by using your ftp client and its chmod function.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 29 Dec 2010 05:44:05 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147238#msg-147238</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147238#msg-147238</link>
            <description><![CDATA[ Hi there,<br />
It&#039;s a shared server on dreamhost, so it could be.  I wouldn&#039;t be able to change that though. I went into my own root and don&#039;t have a /tmp folder<br />
<br />
Is there any way around this? This is the only mod that doesn&#039;t work after the I updated everything to the latest versions.]]></description>
            <dc:creator>amnesia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 29 Dec 2010 05:41:27 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147228#msg-147228</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147228#msg-147228</link>
            <description><![CDATA[ The error specifically complains about the directory /tmp/html_purifier not being writable. Looking at the HTML purifier code, it seems you can get this message in case /tmp/html_purifier does exist, but isn&#039;t writable for the web user.<br />
<br />
Are there other websites running on the same server and using this module in Phorum? What could be the case, is that some other server already created the directory using a different user, making it inaccessible for your site&#039;s user (just a big guess) If this is the case, then you could change the cache directory path for your Phorum install to a different directory to prevent the collision.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 28 Dec 2010 14:20:24 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,147225#msg-147225</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,147225#msg-147225</link>
            <description><![CDATA[ hey there guys, <br />
so I finally got around to upgrading to 3.0 but I keep getting this error<br />
<br />
Warning: Directory /tmp/html_purifier not writable, please chmod to 777 in /xxx/xxx/iloveqatar.net/forum/mods/html/htmlpurifier-4.0.0-standalone/HTMLPurifier.standalone.php on line 11159<br />
<br />
I&#039;m probably being thick, but the read-me didn&#039;t say much about changing permissions and I tried changing everything in the folder to 777 but no luck.]]></description>
            <dc:creator>amnesia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 28 Dec 2010 12:23:10 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,146255#msg-146255</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,146255#msg-146255</link>
            <description><![CDATA[ My Phorum version is 5.2.15a<br />
I have the modules:<br />
HTML in Messages (version 2.0.0)<br />
BBcode Video (version 1.0.10)<br />
BBcode Flash (version 1.0.0)<br />
BBcode (version 2.0.10<br />
<br />
If I copy this html codes (from this page : [<a href="http://www.26in.fr/videos/bzh-cup-st-goueno-1.html" target="_blank"  rel="nofollow">www.26in.fr</a>] ), it doesn&#039;t work :<br />
<br />
&lt;div style=&quot;font-size:80%; text-align : center;&quot;&gt;<br />
&lt;object width=&quot;649&quot; height=&quot;405&quot;&gt;<br />
&lt;param name=&quot;movie&quot; value=&quot;[<a href="http://www.zapiks.fr/share/26in.swf?file=42179&amp;amp;lang=fr&quot;&gt;&lt;/param&gt" target="_blank"  rel="nofollow">www.zapiks.fr</a>];<br />
&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;<br />
&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;<br />
&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;<br />
&lt;embed src=&quot;[<a href="http://www.zapiks.fr/share/26in.swf?file=42179&amp;amp;lang=fr&quot" target="_blank"  rel="nofollow">www.zapiks.fr</a>]; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;649&quot; height=&quot;405&quot; allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot; &gt;&lt;/embed&gt;<br />
&lt;/object&gt;&lt;br /&gt;&lt;!-- Merci de soutenir notre projet en laissant ce petit lien! --&gt;&lt;a href=&quot;[<a href="http://www.26in.fr/videos/bzh-cup-st-goueno-1.html&quot" target="_blank"  rel="nofollow">www.26in.fr</a>]; title=&quot;BZH Cup : St Gou&amp;eacute;no&quot;&gt;BZH Cup : St Gou&amp;eacute;no&lt;/a&gt;&lt;/div&gt;]]></description>
            <dc:creator>victoria</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Oct 2010 09:06:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,145823#msg-145823</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,145823#msg-145823</link>
            <description><![CDATA[ Use the search: [<a href="http://www.phorum.org/phorum5/search.php?0,search=wysiwyg,author=,page=1,match_type=ALL,match_dates=0,match_forum=ALL,match_threads=0" target="_blank" >www.phorum.org</a>]<br />
<br />
And yes, thats the wrong place.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 21 Sep 2010 14:39:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,145822#msg-145822</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,145822#msg-145822</link>
            <description><![CDATA[ Hi, <br />
  This module seems to be so powerful and friendly that I am wondering, how can I start using some WYSIWYG Editor along with it.  Is it possible? How can I do it? (May be this is a wrong place to post such a query or may be the right place.) With this module the fear of ill-formed html would be gone, and with a WYSIWYG HTML Editor editing will also become easy and clutter free! <br />
Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 21 Sep 2010 14:34:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,145800#msg-145800</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,145800#msg-145800</link>
            <description><![CDATA[ Phil, I overlooked this message in the list. Thanks for the updates that you did. They surely sound useful to me and I am very willing to incorporate those into the repository for this module.<br />
<br />
The legacy messages don&#039;t sound like an issue to me. Apparently, those users weren&#039;t meant to use HTML in the first place. The same &quot;issue&quot; would occur when downtuning the permissions after a while.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 20 Sep 2010 16:01:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,145796#msg-145796</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,145796#msg-145796</link>
            <description><![CDATA[ Hi, <br />
  I have updated our group with &quot;html.proposed.3.0.zip&quot; and it is working fine. Thanks for this excellent module. <br />
Regards,<br />
Sreenadh]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 20 Sep 2010 12:57:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,145637#msg-145637</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,145637#msg-145637</link>
            <description><![CDATA[ @Maurice:<br />
<br />
I wanted to support HTML in messages only for a very narrow set of use cases, and since this module operates in an all-or-nothing mode, I added some enhancements to provide me (administrator) with the ability to control which users or groups have permission to use HTML code in messages.  It has been working great for me and so I want to make it available here.  The core of the module is still &quot;HTML in Messages&quot; so it doesn&#039;t make sense to me to create yet another module that does the same thing but only with optional permissions.  So I have attached it here and feel free to use it as a next release for HTML in Messages.  But if you would rather it be its own module, let me know and I&#039;ll release it that way.<br />
<br />
In a nutshell:<br />
The rules processing of my module is only enabled once the administrator goes into the module&#039;s admin settings and configures the permissions.  Until then, it remains in the legacy mode of &quot;everyone has permission&quot;.  But once my version&#039;s rule processing is enabled, the new default permission is only administrators can enter HTML.  Admins can choose to enable HTML for everyone, or for users with some additional optional conditions like moderators, members of groups, members of a group attached to the active forum, days since registration, and number of posts.  One cool optional condition is tied to the User Tagging module (if it is present):  conditions can be defined that say a user must be tagged by designated user tagging rules in order to be allowed to enter HTML.<br />
<br />
So basically, rather than a forum-centered enabling/disabling of HTML, I took the route of a user/group permission scheme, which might be a little more complicated, but allows admins to control which forums get HTML-ified by configuring groups and user-group memberships, or by tagging users.  I would discourage &quot;anyone&quot; permissions for HTML, although that is an option in my version.<br />
<br />
On the presentation side, I hooked into posting_custom_action and process the conditions for posting HTML, and store an authorization flag true or false in the message meta structure which is now checked in the existing format hook:  if the authorization is false, the HTML is not restored.  If the authorization flag is not present (legacy messages pre-dating my version) then the format hook proceeds just like it did before, so my version is backwards compatible with legacy messages.  As I typed that it just occurred to me that I didn&#039;t account for users editing their legacy messages though...<br />
<br />
Anyway, here it is....]]></description>
            <dc:creator>Phil Connolly</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 10 Sep 2010 13:42:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,144130#msg-144130</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,144130#msg-144130</link>
            <description><![CDATA[ nope.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 18 Apr 2010 16:42:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,144128#msg-144128</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,144128#msg-144128</link>
            <description><![CDATA[ does this module allow for permissions? so that it can be added to a group (admin) or a single user can have HTML posting privs, but not anyone else?]]></description>
            <dc:creator>sazaraki</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 18 Apr 2010 15:28:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142672#msg-142672</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142672#msg-142672</link>
            <description><![CDATA[ Sorry I didn&#039;t make myself clear.  I was referring to this code:<br />
<br />
[code=&quot;javascript&quot;]<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function assign_foreign_url_targets() {<br />
	anchors = document.getElementsByTagName(&quot;a&quot;);<br />
	for (i in anchors) {<br />
		if (anchors<i>.href) {<br />
			ahref = anchors<i>.href;<br />
	if (!ahref.match(&quot;[<a href="http://bluesplayer-shops.hopto.org&quot" target="_blank"  rel="nofollow">bluesplayer-shops.hopto.org&quot</a>];) &amp;&amp; !ahref.match(&quot;[<a href="http://bluesplayer.co.uk&quot" target="_blank"  rel="nofollow">bluesplayer.co.uk&quot</a>];) &amp;&amp; !ahref.match(&quot;[<a href="http://ukshopping-hopto.org&quot" target="_blank"  rel="nofollow">ukshopping-hopto.org&quot</a>];) ) {<br />
			anchors<i>.target = &quot;_blank&quot;;<br />
			}<br />
 <br />
		}<br />
	}<br />
}<br />
 <br />
assign_foreign_url_targets();<br />
 <br />
&lt;/script&gt;<br />
[/code]<br />
<br />
Works really well but like I said I was wondering if a method of bypassing the above for certain links can be had.<br />
<br />
Regards</i></i></i>]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Jan 2010 19:04:52 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142669#msg-142669</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142669#msg-142669</link>
            <description><![CDATA[ By not using a target in the &lt;a href&gt; code? This is the thread for the HTML module. As far as I know, you provide the HTML code here, so you control what the hrefs look like. If the code is adding targets on its own, then you&#039;ll have to dig into the HTML Purifier library to see if it&#039;s configurable or so.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Jan 2010 16:53:08 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142668#msg-142668</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142668#msg-142668</link>
            <description><![CDATA[ This code works perfectly - but!  I am now showing downloadable trial software titles and it would be a heck of a lot neater if the trial download links didn&#039;t open in a new window.  This is a bit messy as the window collapses then for the download to occur.   Anyway for me to stop certain links from opening a new window?<br />
<br />
Regards]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Jan 2010 15:54:39 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142397#msg-142397</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142397#msg-142397</link>
            <description><![CDATA[ Brilliant!  It works!<br />
<br />
Cheers]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 19 Dec 2009 04:13:13 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142396#msg-142396</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142396#msg-142396</link>
            <description><![CDATA[ Try adding:<br />
<pre class="bbcode">
&amp;&amp; !ahref.match(&quot;javascript&quot;)</pre>
to the line:<br />
<pre class="bbcode">
if (!ahref.match(&quot;htt<b></b>p://bluesplayer-shops.hopto.org&quot;) &amp;&amp; !ahref.match(&quot;htt<b></b>p://bluesplayer.co.uk&quot;) &amp;&amp; !ahref.match(&quot;htt<b></b>p://ukshopping-hopto.org&quot;) ) {
</pre>]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 19 Dec 2009 01:34:48 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142395#msg-142395</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142395#msg-142395</link>
            <description><![CDATA[ Hi<br />
<br />
[code=&quot;javascript&quot;]<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function assign_foreign_url_targets() {<br />
	anchors = document.getElementsByTagName(&quot;a&quot;);<br />
	for (i in anchors) {<br />
		if (anchors<i>.href) {<br />
			ahref = anchors<i>.href;<br />
	if (!ahref.match(&quot;[<a href="http://bluesplayer-shops.hopto.org&quot" target="_blank"  rel="nofollow">bluesplayer-shops.hopto.org&quot</a>];) &amp;&amp; !ahref.match(&quot;[<a href="http://bluesplayer.co.uk&quot" target="_blank"  rel="nofollow">bluesplayer.co.uk&quot</a>];) &amp;&amp; !ahref.match(&quot;[<a href="http://ukshopping-hopto.org&quot" target="_blank"  rel="nofollow">ukshopping-hopto.org&quot</a>];) ) {<br />
			anchors<i>.target = &quot;_blank&quot;;<br />
			}<br />
<br />
		}<br />
	}<br />
}<br />
 <br />
assign_foreign_url_targets();<br />
 <br />
&lt;/script&gt;<br />
[/code]<br />
<br />
The above code works great but I have a problem with javascript return to previous page code.  The above code stops it working.  The code I am referring too is this:<br />
<br />
[code=&quot;javascript&quot;]<br />
[&lt;a href=&quot;javascript:history.go(-1)&quot; target=&quot;_self&quot;&gt;Go Back 1&lt;/a&gt;]<br />
[/code]<br />
<br />
You can see this occuring here:<br />
<br />
[<a href="http://bluesplayer.co.uk/forum/read.php?308,986,986#msg-986" target="_blank"  rel="nofollow">bluesplayer.co.uk</a>]<br />
<br />
Is there any way to make the 2 scripts work together?<br />
<br />
Regards</i></i></i>]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 18 Dec 2009 20:16:59 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142363#msg-142363</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142363#msg-142363</link>
            <description><![CDATA[ Hi<br />
<br />
Where &amp; is in an url it is being added too so that it shows as &amp;amp.  This is causing my links to fail.  Any idea how to fix it?<br />
<br />
Regards<br />
<br />
Edit:  I notice this is related to the plugin to embed images.  The urls added to the images are displaying the extra code.]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 16 Dec 2009 17:46:55 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142303#msg-142303</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142303#msg-142303</link>
            <description><![CDATA[ all of the html in a message body is working, irregardless if its in formatted code blocks or not.<br />
The module is global, it can&#039;t be disabled per forum (at least no in the interface, probably with another module).]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 09 Dec 2009 04:33:45 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142302#msg-142302</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142302#msg-142302</link>
            <description><![CDATA[ Does this module affect the fomatted code box as the code I am entering in as examples seems to be running instead of displaying?  If it is can it be disabled for certain forums?]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 09 Dec 2009 04:20:32 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142076#msg-142076</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142076#msg-142076</link>
            <description><![CDATA[ 1st Question: Yes the first site is opening new windows - 2nd site is ok.<br />
<br />
2nd Question: Yes I altered the domain name as the UK Shopping was to be a separate site initially but on reflection I decided to use the same look as my main site and incorporate the shopping into it.  The new name has bluesplayer in it so it doesn&#039;t look so out of place.  The UK Shopping domain still works though. <br />
<br />
UPDATE:  Apparently the UK Shopping domain doesn&#039;t work!  I will sort that out now.<br />
<br />
Working now.  The domains are free ones off no-ip and I hadn&#039;t ticked the box on the software I have on my computer to update the ipaddress of the domain.<br />
<br />
<b>Another UPDATE!</b><br />
<br />
Sorry!  I can see now why you referred to UK Shopping as it was the domain on the first part of the code and not my new domain.  Now I have altered the domain setting the code works!  Doh!  Cheers.]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 08:32:45 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142075#msg-142075</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142075#msg-142075</link>
            <description><![CDATA[ A couple of questions:<br />
First, this if clause is designed to ignore to the listed sites, thus the &quot;and&quot; is necessary (ignore site 1 links and site 2 links and . . .) so can I assume that by &quot;working&quot; for the second site you mean that the links to that site are being ignored by this code and by &quot;ignoring the first site&quot; you mean that links to the first site are actually not being ignored and thus opening in a new window?<br />
<br />
Second, I noticed that in other posts you have changed your sites domain from the ukshopping site to bluesplayer-shops.  Did you change this bit of code to reflect the new domain?]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 08:27:11 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142074#msg-142074</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142074#msg-142074</link>
            <description><![CDATA[ Oops there is a problem with the code.  It seems that only the 2nd site is working.  The code is ignoring the first site now!<br />
<br />
[code=&quot;php&quot;]<br />
if (!ahref.match(&quot;[<a href="http://ukshopping.hopto.org&quot" target="_blank"  rel="nofollow">ukshopping.hopto.org&quot</a>];) &amp;&amp; !ahref.match(&quot;[<a href="http://myothersite.com&quot" target="_blank"  rel="nofollow">myothersite.com&quot</a>];) ) {<br />
[/code]<br />
<br />
Shouldn&#039;t the code be &#039;or&#039; or something?]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 08:16:08 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142072#msg-142072</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142072#msg-142072</link>
            <description><![CDATA[ Works great! Thanks]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 07:22:36 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142071#msg-142071</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142071#msg-142071</link>
            <description><![CDATA[ To skip multiple domains, try:<br />
<pre class="bbcode">
if (!ahref.match(&quot;ht<b></b>tp://ukshopping.hopto.org&quot;) &amp;&amp; !ahref.match(&quot;h<b></b>ttp://myothersite.com&quot;) ) {</pre>
You can add as many<br />
<pre class="bbcode">
&amp;&amp; !ahref.match(&quot;ht<b></b>tp://myothersite.com&quot;)</pre>
as you need.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 07:05:23 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,140066,142070#msg-142070</guid>
            <title>Re: Module: HTML in Messages</title>
            <link>https://www.phorum.org/support/read.php?62,140066,142070#msg-142070</link>
            <description><![CDATA[ Hi<br />
<br />
Is there a way to add an extra domain to this code?<br />
<br />
[code=&quot;php&quot;]<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function assign_foreign_url_targets() {<br />
	anchors = document.getElementsByTagName(&quot;a&quot;);<br />
	for (i in anchors) {<br />
		if (anchors<i>.href) {<br />
			ahref = anchors<i>.href;<br />
			if (!ahref.match(&quot;[<a href="http://ukshopping.hopto.org&quot" target="_blank"  rel="nofollow">ukshopping.hopto.org&quot</a>];)) {<br />
			anchors<i>.target = &quot;_blank&quot;;<br />
			}<br />
		}<br />
	}<br />
}<br />
 <br />
assign_foreign_url_targets();<br />
 <br />
&lt;/script&gt;<br />
[/code]<br />
<br />
I just noticed that my top links are all opening new windows as they are pointing to a different domain when reading the post.<br />
<br />
Regards<br />
Bluesplayer</i></i></i>]]></description>
            <dc:creator>Bluesplayer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 24 Nov 2009 06:46:21 -0600</pubDate>
        </item>
    </channel>
</rss>
