<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Message icons module</title>
        <description>In the message list, this module will append an attachment icon to the subject of those messages that have attachments and prepend an icon which indicates the type of message. The append and prepend strings can be changed in the language files for this module (so you can also use plain text strings if you like). You can use HTML in the language strings.

The module is activated on my development environment: http://phorum-dev.gitaar.net/

Changelog:
[code]
2006-09-01 v1.0.4, the &quot;momo&quot; release

    - French translation completed (some strings were still missing).

    - A new icon for moved threads was added.

    - Closed sticky threads were marked as closed threads before, but
      now they are shown as sticky (same treatment as announcements).

2006-07-26 v1.0.3

    - Messages for which the user is not allowed to post a reply are
      also marked as closed (thanks to Oliver Riesen for the suggestion).

2006-01-30 v1.0.2

    - Added alt=&quot;&quot; and title=&quot;&quot; tags to all images.

2006-01-18 v1.0.1

    - Icons are now also applied in read mode.

    - Updated positioning of the icons a little bit for a better look.

2006-01-16 v1.0.0

    - Initial release
[/code]</description>
        <link>https://www.phorum.org/phorum5/read.php?16,53174,53174#msg-53174</link>
        <lastBuildDate>Mon, 18 May 2026 08:22:33 -0400</lastBuildDate>
        <generator>Phorum 5.2.22</generator>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,124197#msg-124197</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,124197#msg-124197</link>
            <description><![CDATA[ One way to do that is editing the templates. In the upcoming Phorum 5.2 release we have put this functionality in the &quot;emerald&quot; template. Maybe you could download the dev release and take a look at the template files to gain some inspiration?<br />
<br />
The other way would be to change this module&#039;s code to implement more icons. There&#039;s no easy option in the current version that enables the things that you want. For Phorum 5.2, I will do a rewrite of this module. I&#039;ll keep these wishes of yours in mind for it.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 05 Sep 2007 01:40:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,124196#msg-124196</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,124196#msg-124196</link>
            <description><![CDATA[ I like this mod, but how can I alter it so that the parent thread has the regular message icon, and all the child posts have a different icon of my choice?<br />
<br />
Better yet, how could I have a host of images such as...<br />
<br />
Sticky<br />
Announcement<br />
Moved<br />
Closed<br />
Parent Message<br />
Unread Parent Message<br />
Reply<br />
Unread Reply<br />
<br />
The unread portions would be a plus, but would be unnecessary if my board would put that little &quot;new&quot; image next to new posts like it does here.<br />
<br />
- Bob]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 05 Sep 2007 01:10:08 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,117295#msg-117295</guid>
            <title>Re: Hello mmakaay.  I good example of how useful the icons are....</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,117295#msg-117295</link>
            <description><![CDATA[ Also look at the empty bodies module then. That one implements the empty body behaviour that you described.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 09 Oct 2006 09:16:27 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,117293#msg-117293</guid>
            <title>Hello mmakaay.  I good example of how useful the icons are....</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,117293#msg-117293</link>
            <description><![CDATA[ can be seen at warriorsworld.net  I believe they have flags in the db for each message that is set upon creation if it has any image or url links, so the search is quick and doesn&#039;t require searching thru the body every time.  They also have a flag for no content in the body, but that style forum is one that can often NOt have body messages since the subject line is often the tool for communication only.  I was trying to get this kind of functionality in phorum a few years ago when I was using it.  phorum is MUCH better coded, and I&#039;m eager to see it get closer to that example for the benefits that can be seen.  Unfortunately that code (kawf) is hideous and barely supported (which is why I&#039;m eager to move into phorum again, but the interface is really great.<br />
<br />
I think this module will be a great thing for me to look at...]]></description>
            <dc:creator>edp</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 09 Oct 2006 08:39:34 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116390#msg-116390</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116390#msg-116390</link>
            <description><![CDATA[ Only if you get itchy when running this through a validator :-) It&#039;s not allowed, but very convenient and I don&#039;t really know of browsers that ignore style tags outside the header.<br />
<br />
For a couple of other mods, I found a way to add the style to the header (by abusing the {HEAD_TAGS} template variable). I&#039;ll make a note to change this module too on the next update. In the meanwhile, you could take the style out of the body and put it in the css.tpl.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 10 Sep 2006 18:56:42 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116389#msg-116389</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116389#msg-116389</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
great mod, thank you! But I don&#039;t understand, why the style to hide the subject prefix is located in the body section. This is not allowed, the style tag must be located in the head section.<br />
<br />
Eisenherz]]></description>
            <dc:creator>Eisenherz</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sun, 10 Sep 2006 18:41:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116203#msg-116203</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116203#msg-116203</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>mmakaay</strong><br />I only wrote this module, because the default 5.1 template did not have this feature.</div></blockquote>
<br />
In fact, i use the default 5.1.15 template and was interested (only in list page) to this module for icons of &quot;thread closed&quot; and &quot;thread moved&quot;...<br />
<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>mmakaay</strong><br /> To make this module only format the list page, you can add the following code to the start of the module functions:<br />
<pre class="bbcode">
function whatever_function($argument)
{
    <span style="color:#009900">if (phorum_page != &quot;list&quot;) return $argument;</span>

    <span style="color:#999966">...original function code...</span>
}</pre>
If the function has no $argument, you can simply use return; </div></blockquote>
<br />
Thanks... your solution works perfectly!!]]></description>
            <dc:creator>Bludado</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 04 Sep 2006 05:04:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116158#msg-116158</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116158#msg-116158</link>
            <description><![CDATA[ I won&#039;t hit you for that ;-) In fact, the new default template for Phorum 5.2 has icons in the template as well. I only wrote this module, because the default 5.1 template did not have this feature.<br />
<br />
To make this module only format the list page, you can add the following code to the start of the module functions:<br />
<pre class="bbcode">
function whatever_function($argument)
{
    <span style="color:#009900">if (phorum_page != &quot;list&quot;) return $argument;</span>

    <span style="color:#999966">...original function code...</span>
}</pre>
If the function has no $argument, you can simply use return;]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 02 Sep 2006 08:38:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116156#msg-116156</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116156#msg-116156</link>
            <description><![CDATA[ actually I wanted to do the same thing but didn&#039;t get it. so I took it&#039;s system and hacked it into my template on the list page. although I think maurice might want to hit me for that ;)<br />
<br />
so that&#039;s a solution though maybe not a good one<br />
<br />
greets,<br />
<br />
net.]]></description>
            <dc:creator>Netwalker</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 02 Sep 2006 06:50:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116154#msg-116154</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116154#msg-116154</link>
            <description><![CDATA[ Hello,<br />
<br />
how can use this module only in list page and not in read page?<br />
<br />
thanks]]></description>
            <dc:creator>Bludado</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 02 Sep 2006 05:15:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116124#msg-116124</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116124#msg-116124</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />I suggest to change &quot;Message&quot; by &quot;Discussion&quot;.<br />
Message in french is for a post. </div></blockquote>
<br />
Better not do that, since the message icon will also be added in threaded view. Then it really is a message and not a discussion.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />PS : In french we also say &quot;close&quot;. It means &quot;fermé&quot;.<br />
It comes from &quot;Clôturer&quot; verbe. </div></blockquote>
<br />
Vraiment, mais j&#039;ais vu que &quot;fermée&quot; est utilisé dans la fichier &quot;francais.php&quot;.<br />
(don&#039;t know if that was right, but it sure looks like French to me ;-)<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />} elseif ($args[$id][&quot;moved&quot;]) {</div></blockquote>
<br />
I added this, with an additional check to see if &quot;moved&quot; is set in the array (this is not always the case, which would cause undefined index warnings). I took the standard message icon and have drawn a kind of arrow on it. That&#039;s the new icon moved.gif for this feature.<br />
<br />
I moved sticky up the list too, so now it&#039;s in sync with the way in which announcements are handled.<br />
<br />
I&#039;ll upload the new &quot;momo release&quot; (1.0.4) to the start of this thread.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 01 Sep 2006 06:33:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116122#msg-116122</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116122#msg-116122</link>
            <description><![CDATA[ If you want to add moved icon in the module you should change : <br />
<br />
 if ($args[$id][&quot;sort&quot;] == PHORUM_SORT_ANNOUNCEMENT) {<br />
            $marker = &quot;announcement&quot;;<br />
        } elseif ($args[$id][&quot;sort&quot;] == PHORUM_SORT_STICKY) {<br />
            $marker = &quot;sticky&quot;;<br />
        } elseif ($args[$id][&quot;closed&quot;] || (isset($PHORUM[&quot;DATA&quot;][&quot;OPTION_ALLOWED&quot;][&quot;allow_reply&quot;]) &amp;&amp; !$PHORUM[&quot;DATA&quot;][&quot;OPTION_ALLOWED&quot;][&quot;allow_reply&quot;])) {<br />
            $marker = &quot;closed&quot;;<br />
<i>	 <b>} elseif ($args[$id][&quot;moved&quot;]) {<br />
            $marker = &quot;moved&quot;;<br />
        }</b></i> else {<br />
            $marker = &quot;message&quot;;<br />
        }<br />
        $args[$id][&quot;meta&quot;][&quot;mod_message_icons&quot;][&quot;marker&quot;] = $marker;<br />
    }<br />
<br />
    return $args;<br />
<br />
<br />
<br />
I also moved sticky code to the top because if you have a sticky without allowed answer, the icons module add a closed icon and not a sticky icon.]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 01 Sep 2006 05:14:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116121#msg-116121</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116121#msg-116121</link>
            <description><![CDATA[ For the french translation :<br />
I suggest to change &quot;Message&quot; by &quot;Discussion&quot;. <br />
Message in french is for a post.<br />
<br />
<br />
PS : In french we also say &quot;close&quot;. It means &quot;fermé&quot;.<br />
It comes from &quot;Clôturer&quot; verbe.<br />
ex: <br />
&quot;La discussion est close.&quot; <br />
&quot;Les débats sont clos.&quot;]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 01 Sep 2006 05:09:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116120#msg-116120</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116120#msg-116120</link>
            <description><![CDATA[ Oups i forgot to translate close. ;)<br />
<br />
About the problem i put on my header the code from Brian : <br />
[<a href="http://www.phorum.org/phorum5/read.php?21,50517" target="_blank" >www.phorum.org</a>]<br />
<br />
I have : <br />
$TITLE = htmlspecialchars($PHORUM[&quot;DATA&quot;][&quot;MESSAGE&quot;][&quot;subject&quot;]);<br />
<br />
I&#039;ve used $TITLE variable for my title read page.<br />
So you have &lt;img src=&quot;..... before the real title. :(<br />
<br />
I add a strip_tags on the title but it&#039;s not very good for title with &quot;&lt;&quot; or others special characters.]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 01 Sep 2006 04:55:12 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116119#msg-116119</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116119#msg-116119</link>
            <description><![CDATA[ I changed &quot;Discussion close&quot; to &quot;Discussion fermée&quot;. I think that is the correct French wording. Most French I know hate to use English words in their forums ;-)<br />
<br />
About the title problem: I cannot reproduce that on my development server (see the link below). This is the most current Phorum 5.1 with this module installed. Can you reproduce the problem on this Phorum? <br />
<br />
<a href="http://phorum-dev.gitaar.net/phorum_5_1" target="_blank"  rel="nofollow">Phorum 5.1 development server</a>.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 01 Sep 2006 04:36:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116091#msg-116091</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116091#msg-116091</link>
            <description><![CDATA[ Hello Maurice,<br />
<br />
I have a problem with icons module.<br />
With my phorum i see this text in the title of my read page : &lt;img src=&quot;./mods/message_icons/annoucement.gif&quot; ...<br />
<br />
I should see only the subject of the thread and not the html text for icons.<br />
<br />
How can i solve this problem ?<br />
<br />
Thanks]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 31 Aug 2006 09:23:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116049#msg-116049</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116049#msg-116049</link>
            <description><![CDATA[ Cool. :)<br />
<br />
I&#039;ve attached french file.<br />
<br />
<i>Maurice: and I have detached it, since it&#039;s now in the distribution. Thanks.</i>]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 30 Aug 2006 09:07:39 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116043#msg-116043</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116043#msg-116043</link>
            <description><![CDATA[ Please do so. If you place the translation in this thread, I&#039;ll add it to the package.<br />
<br />
I&#039;ll see what I can do for moved threads. Shouldn&#039;t be too hard.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 30 Aug 2006 06:42:39 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,116042#msg-116042</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,116042#msg-116042</link>
            <description><![CDATA[ Hello Maurice,<br />
<br />
Your icons mod is great.<br />
Can you add an icon for deplaced thread (sujet déplacé) ?<br />
<br />
French file for your mod isn&#039;t terminated. Should i fill it and send you the translated file in french ?]]></description>
            <dc:creator>momo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 30 Aug 2006 06:13:30 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,114793#msg-114793</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,114793#msg-114793</link>
            <description><![CDATA[ I uploaded a new release of the message_icons module. You can find it in the first posting of this thread.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 27 Jul 2006 05:08:17 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,112710#msg-112710</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,112710#msg-112710</link>
            <description><![CDATA[ I can&#039;t access that forum. Is there a problem with having the icons clickable? This mod adds the icon to the start of the subject and the full subject is clickable. So there&#039;s no way to keep the icon outside the link.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 06 May 2006 18:53:30 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,112704#msg-112704</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,112704#msg-112704</link>
            <description><![CDATA[ is there any way to remove link on icons ?<br />
<br />
See that : [<a href="http://pocketpcdev.free.fr/Phorum/list.php?9" target="_blank"  rel="nofollow">pocketpcdev.free.fr</a>]<br />
<br />
Maybe you can&#039;t access it...]]></description>
            <dc:creator>PocketPCdev</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 06 May 2006 12:56:28 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,55863#msg-55863</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,55863#msg-55863</link>
            <description><![CDATA[ Thanks mmakaay, was just throwing stuff out there. I got a hack of editor_tools and smileys to do what I wanted to. Removed the carats from my forum, but I did have this module installed and it works well even with headline smileys :)]]></description>
            <dc:creator>sirgrim</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 06 Apr 2006 04:24:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,55814#msg-55814</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,55814#msg-55814</link>
            <description><![CDATA[ Your suggestion is outside the scope of what this mod is trying to accomplish. It&#039;s not one to give users control over settings an icon for their postings. <br />
<br />
How about using the smileys module for adding smileys to the subject line? You could write a mod that displays the radio buttons and smileys in the posting form and adds the selected smiley to the start of the subject, before writing the message to the database. It could use the settings from the smileys mod to determine what smileys are available for use in the subject.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 04 Apr 2006 12:04:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,55813#msg-55813</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,55813#msg-55813</link>
            <description><![CDATA[ Can I make a suggestion?<br />
<br />
I&#039;d really like one that puts a box of (x) # of smileys that the users can select in a check or radio button to put at the front of their subject headline.]]></description>
            <dc:creator>sirgrim</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 04 Apr 2006 11:48:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,54396#msg-54396</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,54396#msg-54396</link>
            <description><![CDATA[ Here is the code from the webbbs conversion script.  This is from the webbs_in.php file.  I added code to detect when a post has an image upload file.  If so then I appended a smiley tag to the end of the subject.  Does not address all issues but it suited my purpose.<br />
<br />
<pre class="bbcode">
&lt;?php
if(!defined(&quot;PHORUM5_CONVERSION&quot;)) return;

// WeBBS - to - Phorum5 Conversion Library
// written by thomas seifert ( <a href="mailto:&#116;&#104;&#111;&#109;&#97;&#115;&#64;&#112;&#104;&#111;&#114;&#117;&#109;&#46;&#111;&#114;&#103;">&#116;&#104;&#111;&#109;&#97;&#115;&#64;&#112;&#104;&#111;&#114;&#117;&#109;&#46;&#111;&#114;&#103;</a> )
// please post comments, enhancements to the thread in the modules-forum:
// [<a href="http://www.phorum.org/phorum5/list.php?16" target="_blank" >www.phorum.org</a>]

function phorum_convert_selectMessages() {
	GLOBAL $CONVERT,$aryFiles,$aryInput,$aryRev;
	// Build an array of numeric files in current directory
	$aryInput[] = array ( &#039;ID&#039; =&gt; 0,
	&#039;PREVIOUS&#039; =&gt; 0,
	&#039;THREAD&#039; =&gt; 0
	) ;

	$aryFiles=array();
	$c = 0;

	$dirCurrent2 = dir($CONVERT[&#039;old_directory&#039;]);
	while($strTemp2 = $dirCurrent2-&gt;read()) {
		if($strTemp2 != &quot;.&quot; &amp;&amp; $strTemp2 != &quot;..&quot; &amp;&amp; is_dir($CONVERT[&#039;old_directory&#039;].&quot;/&quot;.$strTemp2)) { // first level
			$dirCurrent = dir($CONVERT[&#039;old_directory&#039;].&quot;/&quot;.$strTemp2);

			while ($strTemp = $dirCurrent-&gt;read() ) { // subdir with messages
				if($strTemp2 == &quot;bbs28&quot;) {
					print $strTemp.&quot;-&quot;.$strTemp2.&quot;\n&quot;;
				}
				if ( (ereg_replace(&quot;[^0-9]&quot;,&quot;&quot;,$strTemp) == $strTemp) &amp;&amp;
				( !empty ($strTemp) ) &amp;&amp;
				filesize($CONVERT[&#039;old_directory&#039;].&quot;/$strTemp2/$strTemp&quot;) &gt; 1) {
					$aryFiles[$c] = (int) $strTemp;
					$aryRev[(int)$strTemp]   = $strTemp2;
					$c++;
				}
			}
			$dirCurrent-&gt;close();
		}
	}
	$dirCurrent2-&gt;close();

	// sort the array
	sort ($aryFiles);

	return 1;
}

function phorum_convert_getNextMessage($b,$fileid) {
	global $aryFiles, $aryInput, $aryRev, $CONVERT;

	$strFile = $fileid;
	// Set ID to current record counter
	$aryInput[$strFile][&#039;ID&#039;] = $b + 1;
	$body = &quot;&quot;;
	$filename=$CONVERT[&#039;old_directory&#039;].&quot;/&quot;.$aryRev[$fileid].&quot;/&quot;.$strFile;
	$aryCurrFile = file ($filename);

	for ($a = 0; $a &lt; count($aryCurrFile); $a++ ) {
		$strLine = $aryCurrFile[$a];
		// pull lines into either specified tags or the body
		if ( ereg (&quot;^SUBJECT&gt;&quot;,$strLine) ||
		ereg (&quot;^POSTER&gt;&quot;,$strLine) ||
		ereg (&quot;^EMAIL&gt;&quot;,$strLine) ||
		ereg (&quot;^DATE&gt;&quot;,$strLine) ||
		ereg (&quot;^EMAILNOTICES&gt;&quot;,$strLine) ||
		ereg (&quot;^IP_ADDRESS&gt;&quot;,$strLine) ||
		ereg (&quot;^NEXT&gt;&quot;,$strLine) ||
		ereg (&quot;^IMAGE&gt;&quot;,$strLine) ||
		ereg (&quot;^LINKNAME&gt;&quot;,$strLine) ||
		ereg (&quot;^LINKURL&gt;&quot;,$strLine) ||
		ereg (&quot;^PASSWORD&gt;&quot;,$strLine) ) {
			$tag = strtolower(trim(substr($strLine,0,strpos($strLine,&quot;&gt;&quot;))));
			$value = trim(substr($strLine,strpos($strLine,&quot;&gt;&quot;) + 1,strlen($strLine) - 1));
			$$tag = $value;
		} elseif ( ereg (&quot;^PREVIOUS&gt;&quot;,$strLine) ) {
			$value = trim(substr($strLine,strpos($strLine,&quot;&gt;&quot;) + 1,strlen($strLine) - 1));
			$aryInput[$strFile][&#039;PREVIOUS&#039;] = $value;
		} else {
			$body .= trim($strLine);
		}
	}
	// clean up body to format used by phorum
	$body = trim(ereg_replace(&#039;&lt;P&gt;&#039;,&quot;\n&quot;,ereg_replace(&#039;&lt;BR&gt;&#039;,&quot;\n&quot;,$body)));
	// attempt to assign threads
	if (empty ($aryInput[$strFile][&#039;PREVIOUS&#039;])) {
		$aryInput[$strFile][&#039;THREAD&#039;] = $aryInput[$strFile][&#039;ID&#039;];
	} else {
		$aryInput[$strFile][&#039;THREAD&#039;] = $aryInput[($aryInput[$strFile][&#039;PREVIOUS&#039;])][&#039;THREAD&#039;] ;
		$aryInput[$strFile][&#039;PREVIOUS&#039;] = $aryInput[($aryInput[$strFile][&#039;PREVIOUS&#039;])][&#039;ID&#039;] ;
	}
	// trim IP_ADDRESS to actual IP_ADDRESS.
	$ip_address = trim(substr($ip_address,strrpos($ip_address,&quot;:&quot;)+1,strlen($ip_address)));
	// If you care about host names (and don&#039;t mind the slowdown) comment this line in:
	// $ip_address = gethostbyaddress($ip_address);

  $image = &quot;&lt;img src=&quot;.$image.&quot;&gt;&quot;;
	// set up and write insert commands to sql files
	$id = $aryInput[$strFile][&#039;ID&#039;];
	$thread = $aryInput[$strFile][&#039;THREAD&#039;];
	if (empty ($thread)) { $thread = $id; }
	$parent = $aryInput[$strFile][&#039;PREVIOUS&#039;];
	$body = stripslashes($body);
  $subject = preg_replace(&quot;/&lt;img.*?&gt;/i&quot;,&quot;&quot;,$subject);
  if (trim($body) == &#039;&#039;) {
    $body = &quot;n/t&quot;;
  }
  if ($image != &quot;&lt;img src=&gt;&quot;) {
    $body = $body . &quot;&lt;br&gt;&quot; . $image;
    $subject = $subject . &quot; :attach:&quot;;
  }

	// email-replies currently ignored!
	if (empty ($emailnotices) || $emailnotices == &quot;no&quot;) {
		$email_reply = &#039;N&#039;;
	} else {
		$email_reply = &#039;N&#039;;
	}


	$max_id= $CONVERT[&#039;max_id&#039;];

	$mdata[&#039;id&#039;]=$id;

	$closed=0;
	$post_status=PHORUM_STATUS_APPROVED;
	$post_sort=PHORUM_SORT_DEFAULT;

	$parentid=($parent&gt;0)?($parent+$max_id):0;

	$mdata[&#039;author&#039;] =$poster;
	$mdata[&#039;subject&#039;]=$subject;
	$mdata[&#039;body&#039;]   =$body;
	$mdata[&#039;email&#039;]  =$email;
	$mdata[&#039;unixtime&#039;]=$date;
	$mdata[&#039;thread&#039;] =$thread;
	$mdata[&#039;parent&#039;] =$parent;
	$mdata[&#039;host&#039;]   =$ip_address;
	$mdata[&#039;msgid&#039;]  =&quot;&quot;;

	$userid = (isset($mdata[&#039;userid&#039;]) ? $mdata[&#039;userid&#039;] : 0);

	// building the new message
	$newmessage = array(
	&#039;message_id&#039;=&gt; $mdata[&#039;id&#039;]+$max_id,
	&#039;forum_id&#039;  =&gt; $CONVERT[&#039;forum_id&#039;],
	&#039;datestamp&#039; =&gt; $mdata[&#039;unixtime&#039;],
	&#039;thread&#039;    =&gt; ($mdata[&#039;thread&#039;]+$max_id),
	&#039;parent_id&#039; =&gt; $parentid,
	&#039;author&#039;    =&gt; $mdata[&#039;author&#039;],
	&#039;subject&#039;   =&gt; $mdata[&#039;subject&#039;],
	&#039;email&#039;     =&gt; $mdata[&#039;email&#039;],
	&#039;ip&#039;        =&gt; $mdata[&#039;host&#039;],
	&#039;user_id&#039;   =&gt; $userid,
	&#039;moderator_post&#039; =&gt; 0,
	&#039;status&#039;    =&gt; $post_status,
	&#039;sort&#039;      =&gt; $post_sort,
	&#039;msgid&#039;     =&gt; $mdata[&#039;msgid&#039;],
	&#039;closed&#039;    =&gt; $closed,
	&#039;body&#039;      =&gt; $mdata[&#039;body&#039;]
	);
	if(isset($mdata[&#039;viewcount&#039;])) {
		$newmessage[&#039;viewcount&#039;]=$mdata[&#039;viewcount&#039;];
	}
	$newmessage[&#039;viewcount&#039;] = (isset($mdata[&#039;viewcount&#039;]) ? $mdata[&#039;viewcount&#039;] : 0);

	return $newmessage;
}

?&gt;
</pre>]]></description>
            <dc:creator>Durtdawber</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 16 Feb 2006 13:49:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,54395#msg-54395</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,54395#msg-54395</link>
            <description><![CDATA[ Durtdawber, out of interest, can you post the code you use to detect the &quot;img&quot; tag?<br />
<br />
Thanks,<br />
<br />
  /\dam]]></description>
            <dc:creator>sheik</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 16 Feb 2006 11:07:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,54361#msg-54361</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,54361#msg-54361</link>
            <description><![CDATA[ sheik&#039;s suggestion of using a smiley will work for me right now.  I am mainly concerned with the messages that I am importing using the webbbs to phorum5 script.  I just needed a way to mark the files that have a picture embedded in them.  Chances of these files be edited are almost 0.<br />
<br />
I tried the :camera: idea and it worked perfectly.  This will tie me over until some code is created to indicate images versus attachments.<br />
<br />
Thanks all]]></description>
            <dc:creator>Durtdawber</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 14 Feb 2006 12:13:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,54349#msg-54349</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,54349#msg-54349</link>
            <description><![CDATA[ lol, I noticed the H-word. I mainly elaborated for other people interested in module writing ;)]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 14 Feb 2006 09:18:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,53174,54348#msg-54348</guid>
            <title>Re: Message icons module</title>
            <link>https://www.phorum.org/phorum5/read.php?16,53174,54348#msg-54348</link>
            <description><![CDATA[ That&#039;s why I originally said &quot;hacked fairly easily&quot;. :-)<br />
<br />
/\dam]]></description>
            <dc:creator>sheik</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 14 Feb 2006 09:09:39 -0500</pubDate>
        </item>
    </channel>
</rss>
